diff --git a/.fern/metadata.json b/.fern/metadata.json index cb079b8b..fa36150e 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,7 +1,7 @@ { - "cliVersion": "3.38.0", + "cliVersion": "3.98.5", "generatorName": "fernapi/fern-php-sdk", - "generatorVersion": "1.25.2", + "generatorVersion": "2.1.5", "generatorConfig": { "clientName": "SquareClient", "namespace": "Square", @@ -23,5 +23,5 @@ } } }, - "sdkVersion": "44.0.0.20260122" + "sdkVersion": "45.0.0.20260122" } \ No newline at end of file diff --git a/composer.json b/composer.json index aa3049f1..be214567 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "square/square", - "version": "44.0.0.20260122", + "version": "45.0.0.20260122", "description": "Use Square APIs to manage and run business including payment, customer, product, inventory, and employee management.", "keywords": [ "square", @@ -11,7 +11,13 @@ "require": { "php": "^8.1", "ext-json": "*", - "guzzlehttp/guzzle": "^7.4", + "psr/http-client": "^1.0", + "psr/http-client-implementation": "^1.0", + "psr/http-factory": "^1.0", + "psr/http-factory-implementation": "^1.0", + "psr/http-message": "^1.1 || ^2.0", + "php-http/discovery": "^1.0", + "php-http/multipart-stream-builder": "^1.0", "apimatic/unirest-php": "^4.0.0", "apimatic/core-interfaces": "~0.1.5", "apimatic/core": "~0.3.12" @@ -19,7 +25,8 @@ "require-dev": { "phpunit/phpunit": "^9.0", "friendsofphp/php-cs-fixer": "3.5.0", - "phpstan/phpstan": "^1.12" + "phpstan/phpstan": "^1.12", + "guzzlehttp/guzzle": "^7.4" }, "autoload": { "psr-4": { diff --git a/reference.md b/reference.md index 420c0255..324afb89 100644 --- a/reference.md +++ b/reference.md @@ -4898,6 +4898,7 @@ multipart/form-data file uploads in HEIC, HEIF, JPEG, PDF, PNG, and TIFF formats $client->disputes->createEvidenceFile( new CreateEvidenceFileDisputesRequest([ 'disputeId' => 'dispute_id', + 'imageFile' => File::createFromString("example_image_file", "example_image_file"), ]), ); ``` @@ -7489,6 +7490,7 @@ __NOTE:__ When testing in the Sandbox environment, the total file size is limite $client->invoices->createInvoiceAttachment( new CreateInvoiceAttachmentRequest([ 'invoiceId' => 'invoice_id', + 'imageFile' => File::createFromString("example_image_file", "example_image_file"), ]), ); ``` @@ -17436,7 +17438,9 @@ JPEG, PJPEG, PNG, or GIF format. The maximum file size is 15MB. ```php $client->catalog->images->create( - new CreateImagesRequest([]), + new CreateImagesRequest([ + 'imageFile' => File::createFromString("example_image_file", "example_image_file"), + ]), ); ``` @@ -17482,6 +17486,7 @@ JPEG, PJPEG, PNG, or GIF format. The maximum file size is 15MB. $client->catalog->images->update( new UpdateImagesRequest([ 'imageId' => 'image_id', + 'imageFile' => File::createFromString("example_image_file", "example_image_file"), ]), ); ``` @@ -18320,7 +18325,7 @@ $client->customers->customAttributeDefinitions->create( 'customAttributeDefinition' => new CustomAttributeDefinition([ 'key' => 'favoritemovie', 'schema' => [ - '\$ref' => "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String", + '$ref' => "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String", ], 'name' => 'Favorite Movie', 'description' => 'The favorite movie of the customer.', @@ -21932,7 +21937,7 @@ $client->locations->customAttributeDefinitions->create( 'customAttributeDefinition' => new CustomAttributeDefinition([ 'key' => 'bestseller', 'schema' => [ - '\$ref' => "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String", + '$ref' => "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String", ], 'name' => 'Bestseller', 'description' => 'Bestselling item at location', @@ -24642,7 +24647,7 @@ $client->merchants->customAttributeDefinitions->create( 'customAttributeDefinition' => new CustomAttributeDefinition([ 'key' => 'alternative_seller_name', 'schema' => [ - '\$ref' => "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String", + '$ref' => "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.String", ], 'name' => 'Alternative Merchant Name', 'description' => 'This is the other name this merchant goes by.', @@ -25604,7 +25609,7 @@ $client->orders->customAttributeDefinitions->create( 'customAttributeDefinition' => new CustomAttributeDefinition([ 'key' => 'cover-count', 'schema' => [ - '\$ref' => "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.Number", + '$ref' => "https://developer-production-s.squarecdn.com/schemas/v1/common.json#squareup.common.Number", ], 'name' => 'Cover count', 'description' => 'The number of people seated at a table', @@ -28034,3 +28039,4 @@ contained in the list of event types in the [Subscription](entity:WebhookSubscri + diff --git a/src/ApplePay/ApplePayClient.php b/src/ApplePay/ApplePayClient.php index ec987646..e54c2687 100644 --- a/src/ApplePay/ApplePayClient.php +++ b/src/ApplePay/ApplePayClient.php @@ -2,7 +2,7 @@ namespace Square\ApplePay; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\ApplePay\Requests\RegisterDomainRequest; use Square\Types\RegisterDomainResponse; @@ -12,7 +12,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; class ApplePayClient @@ -100,16 +99,6 @@ public function registerDomain(RegisterDomainRequest $request, ?array $options = } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/ApplePay/Requests/RegisterDomainRequest.php b/src/ApplePay/Requests/RegisterDomainRequest.php index 420f29ed..f9d05ce2 100644 --- a/src/ApplePay/Requests/RegisterDomainRequest.php +++ b/src/ApplePay/Requests/RegisterDomainRequest.php @@ -38,6 +38,7 @@ public function getDomainName(): string public function setDomainName(string $value): self { $this->domainName = $value; + $this->_setField('domainName'); return $this; } } diff --git a/src/BankAccounts/BankAccountsClient.php b/src/BankAccounts/BankAccountsClient.php index 8ff2ebfe..f859a4c9 100644 --- a/src/BankAccounts/BankAccountsClient.php +++ b/src/BankAccounts/BankAccountsClient.php @@ -2,7 +2,7 @@ namespace Square\BankAccounts; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\BankAccounts\Requests\ListBankAccountsRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\BankAccounts\Requests\GetByV1IdBankAccountsRequest; use Square\Types\GetBankAccountByV1IdResponse; @@ -127,16 +126,6 @@ public function createBankAccount(CreateBankAccountRequest $request, ?array $opt } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -182,16 +171,6 @@ public function getByV1Id(GetByV1IdBankAccountsRequest $request, ?array $options } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -237,16 +216,6 @@ public function get(GetBankAccountsRequest $request, ?array $options = null): Ge } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -292,16 +261,6 @@ public function disableBankAccount(DisableBankAccountRequest $request, ?array $o } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -361,16 +320,6 @@ private function _list(ListBankAccountsRequest $request = new ListBankAccountsRe } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/BankAccounts/Requests/CreateBankAccountRequest.php b/src/BankAccounts/Requests/CreateBankAccountRequest.php index f88fc6d3..8ec759ba 100644 --- a/src/BankAccounts/Requests/CreateBankAccountRequest.php +++ b/src/BankAccounts/Requests/CreateBankAccountRequest.php @@ -60,6 +60,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -77,6 +78,7 @@ public function getSourceId(): string public function setSourceId(string $value): self { $this->sourceId = $value; + $this->_setField('sourceId'); return $this; } @@ -94,6 +96,7 @@ public function getCustomerId(): ?string public function setCustomerId(?string $value = null): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } } diff --git a/src/BankAccounts/Requests/DisableBankAccountRequest.php b/src/BankAccounts/Requests/DisableBankAccountRequest.php index 3494c50a..82d847e7 100644 --- a/src/BankAccounts/Requests/DisableBankAccountRequest.php +++ b/src/BankAccounts/Requests/DisableBankAccountRequest.php @@ -36,6 +36,7 @@ public function getBankAccountId(): string public function setBankAccountId(string $value): self { $this->bankAccountId = $value; + $this->_setField('bankAccountId'); return $this; } } diff --git a/src/BankAccounts/Requests/GetBankAccountsRequest.php b/src/BankAccounts/Requests/GetBankAccountsRequest.php index e74007da..3bdf4f82 100644 --- a/src/BankAccounts/Requests/GetBankAccountsRequest.php +++ b/src/BankAccounts/Requests/GetBankAccountsRequest.php @@ -36,6 +36,7 @@ public function getBankAccountId(): string public function setBankAccountId(string $value): self { $this->bankAccountId = $value; + $this->_setField('bankAccountId'); return $this; } } diff --git a/src/BankAccounts/Requests/GetByV1IdBankAccountsRequest.php b/src/BankAccounts/Requests/GetByV1IdBankAccountsRequest.php index 1b5e020b..d42cbf9d 100644 --- a/src/BankAccounts/Requests/GetByV1IdBankAccountsRequest.php +++ b/src/BankAccounts/Requests/GetByV1IdBankAccountsRequest.php @@ -39,6 +39,7 @@ public function getV1BankAccountId(): string public function setV1BankAccountId(string $value): self { $this->v1BankAccountId = $value; + $this->_setField('v1BankAccountId'); return $this; } } diff --git a/src/BankAccounts/Requests/ListBankAccountsRequest.php b/src/BankAccounts/Requests/ListBankAccountsRequest.php index d5f18a1d..48c8556d 100644 --- a/src/BankAccounts/Requests/ListBankAccountsRequest.php +++ b/src/BankAccounts/Requests/ListBankAccountsRequest.php @@ -73,6 +73,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -90,6 +91,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -107,6 +109,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -124,6 +127,7 @@ public function getCustomerId(): ?string public function setCustomerId(?string $value = null): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } } diff --git a/src/Bookings/BookingsClient.php b/src/Bookings/BookingsClient.php index 5cb38b2d..5e37c62c 100644 --- a/src/Bookings/BookingsClient.php +++ b/src/Bookings/BookingsClient.php @@ -6,7 +6,7 @@ use Square\Bookings\CustomAttributes\CustomAttributesClient; use Square\Bookings\LocationProfiles\LocationProfilesClient; use Square\Bookings\TeamMemberProfiles\TeamMemberProfilesClient; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Bookings\Requests\ListBookingsRequest; use Square\Core\Pagination\Pager; @@ -21,7 +21,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Bookings\Requests\SearchAvailabilityRequest; use Square\Types\SearchAvailabilityResponse; @@ -180,16 +179,6 @@ public function create(CreateBookingRequest $request, ?array $options = null): C } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -239,16 +228,6 @@ public function searchAvailability(SearchAvailabilityRequest $request, ?array $o } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -298,16 +277,6 @@ public function bulkRetrieveBookings(BulkRetrieveBookingsRequest $request, ?arra } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -352,16 +321,6 @@ public function getBusinessProfile(?array $options = null): GetBusinessBookingPr } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -407,16 +366,6 @@ public function retrieveLocationBookingProfile(RetrieveLocationBookingProfileReq } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -463,16 +412,6 @@ public function bulkRetrieveTeamMemberBookingProfiles(BulkRetrieveTeamMemberBook } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -521,16 +460,6 @@ public function get(GetBookingsRequest $request, ?array $options = null): GetBoo } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -583,16 +512,6 @@ public function update(UpdateBookingRequest $request, ?array $options = null): U } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -645,16 +564,6 @@ public function cancel(CancelBookingRequest $request, ?array $options = null): C } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -726,16 +635,6 @@ private function _list(ListBookingsRequest $request = new ListBookingsRequest(), } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Bookings/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.php b/src/Bookings/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.php index af660c74..05d57359 100644 --- a/src/Bookings/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.php +++ b/src/Bookings/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.php @@ -2,7 +2,7 @@ namespace Square\Bookings\CustomAttributeDefinitions; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Bookings\CustomAttributeDefinitions\Requests\ListCustomAttributeDefinitionsRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Bookings\CustomAttributeDefinitions\Requests\GetCustomAttributeDefinitionsRequest; use Square\Types\RetrieveBookingCustomAttributeDefinitionResponse; @@ -136,16 +135,6 @@ public function create(CreateBookingCustomAttributeDefinitionRequest $request, ? } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -199,16 +188,6 @@ public function get(GetCustomAttributeDefinitionsRequest $request, ?array $optio } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -261,16 +240,6 @@ public function update(UpdateBookingCustomAttributeDefinitionRequest $request, ? } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -322,16 +291,6 @@ public function delete(DeleteCustomAttributeDefinitionsRequest $request, ?array } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -388,16 +347,6 @@ private function _list(ListCustomAttributeDefinitionsRequest $request = new List } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Bookings/CustomAttributeDefinitions/Requests/CreateBookingCustomAttributeDefinitionRequest.php b/src/Bookings/CustomAttributeDefinitions/Requests/CreateBookingCustomAttributeDefinitionRequest.php index 09760d6f..9de9fe18 100644 --- a/src/Bookings/CustomAttributeDefinitions/Requests/CreateBookingCustomAttributeDefinitionRequest.php +++ b/src/Bookings/CustomAttributeDefinitions/Requests/CreateBookingCustomAttributeDefinitionRequest.php @@ -66,6 +66,7 @@ public function getCustomAttributeDefinition(): CustomAttributeDefinition public function setCustomAttributeDefinition(CustomAttributeDefinition $value): self { $this->customAttributeDefinition = $value; + $this->_setField('customAttributeDefinition'); return $this; } @@ -83,6 +84,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } } diff --git a/src/Bookings/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.php b/src/Bookings/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.php index 3e8c7754..e2f14b25 100644 --- a/src/Bookings/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.php +++ b/src/Bookings/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.php @@ -36,6 +36,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } } diff --git a/src/Bookings/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.php b/src/Bookings/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.php index 5040e4d4..88f134ac 100644 --- a/src/Bookings/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.php +++ b/src/Bookings/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.php @@ -51,6 +51,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } @@ -68,6 +69,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } } diff --git a/src/Bookings/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.php b/src/Bookings/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.php index 59c44c9b..2adebb2f 100644 --- a/src/Bookings/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.php +++ b/src/Bookings/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.php @@ -51,6 +51,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -68,6 +69,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } } diff --git a/src/Bookings/CustomAttributeDefinitions/Requests/UpdateBookingCustomAttributeDefinitionRequest.php b/src/Bookings/CustomAttributeDefinitions/Requests/UpdateBookingCustomAttributeDefinitionRequest.php index 66edb7b5..06401fef 100644 --- a/src/Bookings/CustomAttributeDefinitions/Requests/UpdateBookingCustomAttributeDefinitionRequest.php +++ b/src/Bookings/CustomAttributeDefinitions/Requests/UpdateBookingCustomAttributeDefinitionRequest.php @@ -70,6 +70,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } @@ -87,6 +88,7 @@ public function getCustomAttributeDefinition(): CustomAttributeDefinition public function setCustomAttributeDefinition(CustomAttributeDefinition $value): self { $this->customAttributeDefinition = $value; + $this->_setField('customAttributeDefinition'); return $this; } @@ -104,6 +106,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } } diff --git a/src/Bookings/CustomAttributes/CustomAttributesClient.php b/src/Bookings/CustomAttributes/CustomAttributesClient.php index 1e5e4c45..e2b4444a 100644 --- a/src/Bookings/CustomAttributes/CustomAttributesClient.php +++ b/src/Bookings/CustomAttributes/CustomAttributesClient.php @@ -2,7 +2,7 @@ namespace Square\Bookings\CustomAttributes; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Bookings\CustomAttributes\Requests\BulkDeleteBookingCustomAttributesRequest; use Square\Types\BulkDeleteBookingCustomAttributesResponse; @@ -12,7 +12,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Bookings\CustomAttributes\Requests\BulkUpsertBookingCustomAttributesRequest; use Square\Types\BulkUpsertBookingCustomAttributesResponse; @@ -106,16 +105,6 @@ public function batchDelete(BulkDeleteBookingCustomAttributesRequest $request, ? } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -168,16 +157,6 @@ public function batchUpsert(BulkUpsertBookingCustomAttributesRequest $request, ? } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -266,16 +245,6 @@ public function get(GetCustomAttributesRequest $request, ?array $options = null) } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -328,16 +297,6 @@ public function upsert(UpsertBookingCustomAttributeRequest $request, ?array $opt } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -389,16 +348,6 @@ public function delete(DeleteCustomAttributesRequest $request, ?array $options = } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -458,16 +407,6 @@ private function _list(ListCustomAttributesRequest $request, ?array $options = n } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Bookings/CustomAttributes/Requests/BulkDeleteBookingCustomAttributesRequest.php b/src/Bookings/CustomAttributes/Requests/BulkDeleteBookingCustomAttributesRequest.php index 7c07711d..b7b8f37e 100644 --- a/src/Bookings/CustomAttributes/Requests/BulkDeleteBookingCustomAttributesRequest.php +++ b/src/Bookings/CustomAttributes/Requests/BulkDeleteBookingCustomAttributesRequest.php @@ -44,6 +44,7 @@ public function getValues(): array public function setValues(array $value): self { $this->values = $value; + $this->_setField('values'); return $this; } } diff --git a/src/Bookings/CustomAttributes/Requests/BulkUpsertBookingCustomAttributesRequest.php b/src/Bookings/CustomAttributes/Requests/BulkUpsertBookingCustomAttributesRequest.php index 524a8e00..47750d0b 100644 --- a/src/Bookings/CustomAttributes/Requests/BulkUpsertBookingCustomAttributesRequest.php +++ b/src/Bookings/CustomAttributes/Requests/BulkUpsertBookingCustomAttributesRequest.php @@ -44,6 +44,7 @@ public function getValues(): array public function setValues(array $value): self { $this->values = $value; + $this->_setField('values'); return $this; } } diff --git a/src/Bookings/CustomAttributes/Requests/DeleteCustomAttributesRequest.php b/src/Bookings/CustomAttributes/Requests/DeleteCustomAttributesRequest.php index b3568a70..8b7e28df 100644 --- a/src/Bookings/CustomAttributes/Requests/DeleteCustomAttributesRequest.php +++ b/src/Bookings/CustomAttributes/Requests/DeleteCustomAttributesRequest.php @@ -47,6 +47,7 @@ public function getBookingId(): string public function setBookingId(string $value): self { $this->bookingId = $value; + $this->_setField('bookingId'); return $this; } @@ -64,6 +65,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } } diff --git a/src/Bookings/CustomAttributes/Requests/GetCustomAttributesRequest.php b/src/Bookings/CustomAttributes/Requests/GetCustomAttributesRequest.php index a3fe3f1d..32234ab1 100644 --- a/src/Bookings/CustomAttributes/Requests/GetCustomAttributesRequest.php +++ b/src/Bookings/CustomAttributes/Requests/GetCustomAttributesRequest.php @@ -70,6 +70,7 @@ public function getBookingId(): string public function setBookingId(string $value): self { $this->bookingId = $value; + $this->_setField('bookingId'); return $this; } @@ -87,6 +88,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } @@ -104,6 +106,7 @@ public function getWithDefinition(): ?bool public function setWithDefinition(?bool $value = null): self { $this->withDefinition = $value; + $this->_setField('withDefinition'); return $this; } @@ -121,6 +124,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } } diff --git a/src/Bookings/CustomAttributes/Requests/ListCustomAttributesRequest.php b/src/Bookings/CustomAttributes/Requests/ListCustomAttributesRequest.php index 0e514c4f..7978de75 100644 --- a/src/Bookings/CustomAttributes/Requests/ListCustomAttributesRequest.php +++ b/src/Bookings/CustomAttributes/Requests/ListCustomAttributesRequest.php @@ -69,6 +69,7 @@ public function getBookingId(): string public function setBookingId(string $value): self { $this->bookingId = $value; + $this->_setField('bookingId'); return $this; } @@ -86,6 +87,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -103,6 +105,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -120,6 +123,7 @@ public function getWithDefinitions(): ?bool public function setWithDefinitions(?bool $value = null): self { $this->withDefinitions = $value; + $this->_setField('withDefinitions'); return $this; } } diff --git a/src/Bookings/CustomAttributes/Requests/UpsertBookingCustomAttributeRequest.php b/src/Bookings/CustomAttributes/Requests/UpsertBookingCustomAttributeRequest.php index 3d2a4941..7ac597e7 100644 --- a/src/Bookings/CustomAttributes/Requests/UpsertBookingCustomAttributeRequest.php +++ b/src/Bookings/CustomAttributes/Requests/UpsertBookingCustomAttributeRequest.php @@ -77,6 +77,7 @@ public function getBookingId(): string public function setBookingId(string $value): self { $this->bookingId = $value; + $this->_setField('bookingId'); return $this; } @@ -94,6 +95,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } @@ -111,6 +113,7 @@ public function getCustomAttribute(): CustomAttribute public function setCustomAttribute(CustomAttribute $value): self { $this->customAttribute = $value; + $this->_setField('customAttribute'); return $this; } @@ -128,6 +131,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } } diff --git a/src/Bookings/LocationProfiles/LocationProfilesClient.php b/src/Bookings/LocationProfiles/LocationProfilesClient.php index ef0458de..04969650 100644 --- a/src/Bookings/LocationProfiles/LocationProfilesClient.php +++ b/src/Bookings/LocationProfiles/LocationProfilesClient.php @@ -2,7 +2,7 @@ namespace Square\Bookings\LocationProfiles; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Bookings\LocationProfiles\Requests\ListLocationProfilesRequest; use Square\Core\Pagination\Pager; @@ -15,7 +15,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; class LocationProfilesClient @@ -126,16 +125,6 @@ private function _list(ListLocationProfilesRequest $request = new ListLocationPr } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Bookings/LocationProfiles/Requests/ListLocationProfilesRequest.php b/src/Bookings/LocationProfiles/Requests/ListLocationProfilesRequest.php index 560c67af..6ae6b657 100644 --- a/src/Bookings/LocationProfiles/Requests/ListLocationProfilesRequest.php +++ b/src/Bookings/LocationProfiles/Requests/ListLocationProfilesRequest.php @@ -43,6 +43,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -60,6 +61,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } } diff --git a/src/Bookings/Requests/BulkRetrieveBookingsRequest.php b/src/Bookings/Requests/BulkRetrieveBookingsRequest.php index d60b3ad7..33656337 100644 --- a/src/Bookings/Requests/BulkRetrieveBookingsRequest.php +++ b/src/Bookings/Requests/BulkRetrieveBookingsRequest.php @@ -39,6 +39,7 @@ public function getBookingIds(): array public function setBookingIds(array $value): self { $this->bookingIds = $value; + $this->_setField('bookingIds'); return $this; } } diff --git a/src/Bookings/Requests/BulkRetrieveTeamMemberBookingProfilesRequest.php b/src/Bookings/Requests/BulkRetrieveTeamMemberBookingProfilesRequest.php index e953cda6..70b4ee2c 100644 --- a/src/Bookings/Requests/BulkRetrieveTeamMemberBookingProfilesRequest.php +++ b/src/Bookings/Requests/BulkRetrieveTeamMemberBookingProfilesRequest.php @@ -39,6 +39,7 @@ public function getTeamMemberIds(): array public function setTeamMemberIds(array $value): self { $this->teamMemberIds = $value; + $this->_setField('teamMemberIds'); return $this; } } diff --git a/src/Bookings/Requests/CancelBookingRequest.php b/src/Bookings/Requests/CancelBookingRequest.php index 62c29d96..c046c587 100644 --- a/src/Bookings/Requests/CancelBookingRequest.php +++ b/src/Bookings/Requests/CancelBookingRequest.php @@ -53,6 +53,7 @@ public function getBookingId(): string public function setBookingId(string $value): self { $this->bookingId = $value; + $this->_setField('bookingId'); return $this; } @@ -70,6 +71,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -87,6 +89,7 @@ public function getBookingVersion(): ?int public function setBookingVersion(?int $value = null): self { $this->bookingVersion = $value; + $this->_setField('bookingVersion'); return $this; } } diff --git a/src/Bookings/Requests/CreateBookingRequest.php b/src/Bookings/Requests/CreateBookingRequest.php index 8b17d6fe..6f6e7b6b 100644 --- a/src/Bookings/Requests/CreateBookingRequest.php +++ b/src/Bookings/Requests/CreateBookingRequest.php @@ -47,6 +47,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -64,6 +65,7 @@ public function getBooking(): Booking public function setBooking(Booking $value): self { $this->booking = $value; + $this->_setField('booking'); return $this; } } diff --git a/src/Bookings/Requests/GetBookingsRequest.php b/src/Bookings/Requests/GetBookingsRequest.php index 95634c1e..881b07ca 100644 --- a/src/Bookings/Requests/GetBookingsRequest.php +++ b/src/Bookings/Requests/GetBookingsRequest.php @@ -36,6 +36,7 @@ public function getBookingId(): string public function setBookingId(string $value): self { $this->bookingId = $value; + $this->_setField('bookingId'); return $this; } } diff --git a/src/Bookings/Requests/ListBookingsRequest.php b/src/Bookings/Requests/ListBookingsRequest.php index a585b3ed..8ab2bfae 100644 --- a/src/Bookings/Requests/ListBookingsRequest.php +++ b/src/Bookings/Requests/ListBookingsRequest.php @@ -78,6 +78,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -95,6 +96,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -112,6 +114,7 @@ public function getCustomerId(): ?string public function setCustomerId(?string $value = null): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -129,6 +132,7 @@ public function getTeamMemberId(): ?string public function setTeamMemberId(?string $value = null): self { $this->teamMemberId = $value; + $this->_setField('teamMemberId'); return $this; } @@ -146,6 +150,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -163,6 +168,7 @@ public function getStartAtMin(): ?string public function setStartAtMin(?string $value = null): self { $this->startAtMin = $value; + $this->_setField('startAtMin'); return $this; } @@ -180,6 +186,7 @@ public function getStartAtMax(): ?string public function setStartAtMax(?string $value = null): self { $this->startAtMax = $value; + $this->_setField('startAtMax'); return $this; } } diff --git a/src/Bookings/Requests/RetrieveLocationBookingProfileRequest.php b/src/Bookings/Requests/RetrieveLocationBookingProfileRequest.php index ea45b46b..a5f1f076 100644 --- a/src/Bookings/Requests/RetrieveLocationBookingProfileRequest.php +++ b/src/Bookings/Requests/RetrieveLocationBookingProfileRequest.php @@ -36,6 +36,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } } diff --git a/src/Bookings/Requests/SearchAvailabilityRequest.php b/src/Bookings/Requests/SearchAvailabilityRequest.php index f9fba8e6..5eac8b91 100644 --- a/src/Bookings/Requests/SearchAvailabilityRequest.php +++ b/src/Bookings/Requests/SearchAvailabilityRequest.php @@ -39,6 +39,7 @@ public function getQuery(): SearchAvailabilityQuery public function setQuery(SearchAvailabilityQuery $value): self { $this->query = $value; + $this->_setField('query'); return $this; } } diff --git a/src/Bookings/Requests/UpdateBookingRequest.php b/src/Bookings/Requests/UpdateBookingRequest.php index e76b01e3..e4b67100 100644 --- a/src/Bookings/Requests/UpdateBookingRequest.php +++ b/src/Bookings/Requests/UpdateBookingRequest.php @@ -54,6 +54,7 @@ public function getBookingId(): string public function setBookingId(string $value): self { $this->bookingId = $value; + $this->_setField('bookingId'); return $this; } @@ -71,6 +72,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -88,6 +90,7 @@ public function getBooking(): Booking public function setBooking(Booking $value): self { $this->booking = $value; + $this->_setField('booking'); return $this; } } diff --git a/src/Bookings/TeamMemberProfiles/Requests/GetTeamMemberProfilesRequest.php b/src/Bookings/TeamMemberProfiles/Requests/GetTeamMemberProfilesRequest.php index 0525133f..7878d0d6 100644 --- a/src/Bookings/TeamMemberProfiles/Requests/GetTeamMemberProfilesRequest.php +++ b/src/Bookings/TeamMemberProfiles/Requests/GetTeamMemberProfilesRequest.php @@ -36,6 +36,7 @@ public function getTeamMemberId(): string public function setTeamMemberId(string $value): self { $this->teamMemberId = $value; + $this->_setField('teamMemberId'); return $this; } } diff --git a/src/Bookings/TeamMemberProfiles/Requests/ListTeamMemberProfilesRequest.php b/src/Bookings/TeamMemberProfiles/Requests/ListTeamMemberProfilesRequest.php index 012c1f25..4bc10ae3 100644 --- a/src/Bookings/TeamMemberProfiles/Requests/ListTeamMemberProfilesRequest.php +++ b/src/Bookings/TeamMemberProfiles/Requests/ListTeamMemberProfilesRequest.php @@ -57,6 +57,7 @@ public function getBookableOnly(): ?bool public function setBookableOnly(?bool $value = null): self { $this->bookableOnly = $value; + $this->_setField('bookableOnly'); return $this; } @@ -74,6 +75,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -91,6 +93,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -108,6 +111,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } } diff --git a/src/Bookings/TeamMemberProfiles/TeamMemberProfilesClient.php b/src/Bookings/TeamMemberProfiles/TeamMemberProfilesClient.php index 3fb1dd96..5d797e0b 100644 --- a/src/Bookings/TeamMemberProfiles/TeamMemberProfilesClient.php +++ b/src/Bookings/TeamMemberProfiles/TeamMemberProfilesClient.php @@ -2,7 +2,7 @@ namespace Square\Bookings\TeamMemberProfiles; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Bookings\TeamMemberProfiles\Requests\ListTeamMemberProfilesRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; class TeamMemberProfilesClient @@ -120,16 +119,6 @@ public function get(GetTeamMemberProfilesRequest $request, ?array $options = nul } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -189,16 +178,6 @@ private function _list(ListTeamMemberProfilesRequest $request = new ListTeamMemb } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Cards/CardsClient.php b/src/Cards/CardsClient.php index 998a4cc2..eeb216b2 100644 --- a/src/Cards/CardsClient.php +++ b/src/Cards/CardsClient.php @@ -2,7 +2,7 @@ namespace Square\Cards; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Cards\Requests\ListCardsRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Cards\Requests\GetCardsRequest; use Square\Types\GetCardResponse; @@ -126,16 +125,6 @@ public function create(CreateCardRequest $request, ?array $options = null): Crea } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -181,16 +170,6 @@ public function get(GetCardsRequest $request, ?array $options = null): GetCardRe } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -237,16 +216,6 @@ public function disable(DisableCardsRequest $request, ?array $options = null): D } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -310,16 +279,6 @@ private function _list(ListCardsRequest $request = new ListCardsRequest(), ?arra } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Cards/Requests/CreateCardRequest.php b/src/Cards/Requests/CreateCardRequest.php index 835af530..e49b821f 100644 --- a/src/Cards/Requests/CreateCardRequest.php +++ b/src/Cards/Requests/CreateCardRequest.php @@ -76,6 +76,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -93,6 +94,7 @@ public function getSourceId(): string public function setSourceId(string $value): self { $this->sourceId = $value; + $this->_setField('sourceId'); return $this; } @@ -110,6 +112,7 @@ public function getVerificationToken(): ?string public function setVerificationToken(?string $value = null): self { $this->verificationToken = $value; + $this->_setField('verificationToken'); return $this; } @@ -127,6 +130,7 @@ public function getCard(): Card public function setCard(Card $value): self { $this->card = $value; + $this->_setField('card'); return $this; } } diff --git a/src/Cards/Requests/DisableCardsRequest.php b/src/Cards/Requests/DisableCardsRequest.php index a7e29f50..a30ddf86 100644 --- a/src/Cards/Requests/DisableCardsRequest.php +++ b/src/Cards/Requests/DisableCardsRequest.php @@ -36,6 +36,7 @@ public function getCardId(): string public function setCardId(string $value): self { $this->cardId = $value; + $this->_setField('cardId'); return $this; } } diff --git a/src/Cards/Requests/GetCardsRequest.php b/src/Cards/Requests/GetCardsRequest.php index 61110c87..596fa872 100644 --- a/src/Cards/Requests/GetCardsRequest.php +++ b/src/Cards/Requests/GetCardsRequest.php @@ -36,6 +36,7 @@ public function getCardId(): string public function setCardId(string $value): self { $this->cardId = $value; + $this->_setField('cardId'); return $this; } } diff --git a/src/Cards/Requests/ListCardsRequest.php b/src/Cards/Requests/ListCardsRequest.php index 692747d4..1fceb08f 100644 --- a/src/Cards/Requests/ListCardsRequest.php +++ b/src/Cards/Requests/ListCardsRequest.php @@ -79,6 +79,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -96,6 +97,7 @@ public function getCustomerId(): ?string public function setCustomerId(?string $value = null): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -113,6 +115,7 @@ public function getIncludeDisabled(): ?bool public function setIncludeDisabled(?bool $value = null): self { $this->includeDisabled = $value; + $this->_setField('includeDisabled'); return $this; } @@ -130,6 +133,7 @@ public function getReferenceId(): ?string public function setReferenceId(?string $value = null): self { $this->referenceId = $value; + $this->_setField('referenceId'); return $this; } @@ -147,6 +151,7 @@ public function getSortOrder(): ?string public function setSortOrder(?string $value = null): self { $this->sortOrder = $value; + $this->_setField('sortOrder'); return $this; } } diff --git a/src/CashDrawers/CashDrawersClient.php b/src/CashDrawers/CashDrawersClient.php index 98956c4a..78fb3347 100644 --- a/src/CashDrawers/CashDrawersClient.php +++ b/src/CashDrawers/CashDrawersClient.php @@ -3,7 +3,7 @@ namespace Square\CashDrawers; use Square\CashDrawers\Shifts\ShiftsClient; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; class CashDrawersClient diff --git a/src/CashDrawers/Shifts/Requests/GetShiftsRequest.php b/src/CashDrawers/Shifts/Requests/GetShiftsRequest.php index 104cd72e..68d284b4 100644 --- a/src/CashDrawers/Shifts/Requests/GetShiftsRequest.php +++ b/src/CashDrawers/Shifts/Requests/GetShiftsRequest.php @@ -43,6 +43,7 @@ public function getShiftId(): string public function setShiftId(string $value): self { $this->shiftId = $value; + $this->_setField('shiftId'); return $this; } @@ -60,6 +61,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } } diff --git a/src/CashDrawers/Shifts/Requests/ListEventsShiftsRequest.php b/src/CashDrawers/Shifts/Requests/ListEventsShiftsRequest.php index 1b971e0d..a5aefac8 100644 --- a/src/CashDrawers/Shifts/Requests/ListEventsShiftsRequest.php +++ b/src/CashDrawers/Shifts/Requests/ListEventsShiftsRequest.php @@ -60,6 +60,7 @@ public function getShiftId(): string public function setShiftId(string $value): self { $this->shiftId = $value; + $this->_setField('shiftId'); return $this; } @@ -77,6 +78,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -94,6 +96,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -111,6 +114,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } } diff --git a/src/CashDrawers/Shifts/Requests/ListShiftsRequest.php b/src/CashDrawers/Shifts/Requests/ListShiftsRequest.php index 6d37a85d..05229aaf 100644 --- a/src/CashDrawers/Shifts/Requests/ListShiftsRequest.php +++ b/src/CashDrawers/Shifts/Requests/ListShiftsRequest.php @@ -78,6 +78,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -95,6 +96,7 @@ public function getSortOrder(): ?string public function setSortOrder(?string $value = null): self { $this->sortOrder = $value; + $this->_setField('sortOrder'); return $this; } @@ -112,6 +114,7 @@ public function getBeginTime(): ?string public function setBeginTime(?string $value = null): self { $this->beginTime = $value; + $this->_setField('beginTime'); return $this; } @@ -129,6 +132,7 @@ public function getEndTime(): ?string public function setEndTime(?string $value = null): self { $this->endTime = $value; + $this->_setField('endTime'); return $this; } @@ -146,6 +150,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -163,6 +168,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } } diff --git a/src/CashDrawers/Shifts/ShiftsClient.php b/src/CashDrawers/Shifts/ShiftsClient.php index c41546eb..46d5d47b 100644 --- a/src/CashDrawers/Shifts/ShiftsClient.php +++ b/src/CashDrawers/Shifts/ShiftsClient.php @@ -2,7 +2,7 @@ namespace Square\CashDrawers\Shifts; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\CashDrawers\Shifts\Requests\ListShiftsRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\CashDrawers\Shifts\Requests\ListEventsShiftsRequest; use Square\Types\CashDrawerShiftEvent; @@ -128,16 +127,6 @@ public function get(GetShiftsRequest $request, ?array $options = null): GetCashD } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -231,16 +220,6 @@ private function _list(ListShiftsRequest $request, ?array $options = null): List } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -295,16 +274,6 @@ private function _listEvents(ListEventsShiftsRequest $request, ?array $options = } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Catalog/CatalogClient.php b/src/Catalog/CatalogClient.php index 4e7d4cb9..647ce4c0 100644 --- a/src/Catalog/CatalogClient.php +++ b/src/Catalog/CatalogClient.php @@ -4,7 +4,7 @@ use Square\Catalog\Images\ImagesClient; use Square\Catalog\Object\ObjectClient; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Catalog\Requests\BatchDeleteCatalogObjectsRequest; use Square\Types\BatchDeleteCatalogObjectsResponse; @@ -14,7 +14,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Catalog\Requests\BatchGetCatalogObjectsRequest; use Square\Types\BatchGetCatalogObjectsResponse; @@ -132,16 +131,6 @@ public function batchDelete(BatchDeleteCatalogObjectsRequest $request, ?array $o } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -193,16 +182,6 @@ public function batchGet(BatchGetCatalogObjectsRequest $request, ?array $options } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -261,16 +240,6 @@ public function batchUpsert(BatchUpsertCatalogObjectsRequest $request, ?array $o } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -316,16 +285,6 @@ public function info(?array $options = null): CatalogInfoResponse } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -417,16 +376,6 @@ public function search(SearchCatalogObjectsRequest $request = new SearchCatalogO } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -482,16 +431,6 @@ public function searchItems(SearchCatalogItemsRequest $request = new SearchCatal } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -540,16 +479,6 @@ public function updateItemModifierLists(UpdateItemModifierListsRequest $request, } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -598,16 +527,6 @@ public function updateItemTaxes(UpdateItemTaxesRequest $request, ?array $options } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -671,16 +590,6 @@ private function _list(ListCatalogRequest $request = new ListCatalogRequest(), ? } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Catalog/Images/ImagesClient.php b/src/Catalog/Images/ImagesClient.php index 23216a34..8f5e669a 100644 --- a/src/Catalog/Images/ImagesClient.php +++ b/src/Catalog/Images/ImagesClient.php @@ -2,7 +2,7 @@ namespace Square\Catalog\Images; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Catalog\Images\Requests\CreateImagesRequest; use Square\Types\CreateCatalogImageResponse; @@ -13,7 +13,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Catalog\Images\Requests\UpdateImagesRequest; use Square\Types\UpdateCatalogImageResponse; @@ -110,16 +109,6 @@ public function create(CreateImagesRequest $request = new CreateImagesRequest(), } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -184,16 +173,6 @@ public function update(UpdateImagesRequest $request, ?array $options = null): Up } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Catalog/Images/Requests/CreateImagesRequest.php b/src/Catalog/Images/Requests/CreateImagesRequest.php index aeb0fe2f..55a2af4f 100644 --- a/src/Catalog/Images/Requests/CreateImagesRequest.php +++ b/src/Catalog/Images/Requests/CreateImagesRequest.php @@ -47,6 +47,7 @@ public function getRequest(): ?CreateCatalogImageRequest public function setRequest(?CreateCatalogImageRequest $value = null): self { $this->request = $value; + $this->_setField('request'); return $this; } @@ -64,6 +65,7 @@ public function getImageFile(): ?File public function setImageFile(?File $value = null): self { $this->imageFile = $value; + $this->_setField('imageFile'); return $this; } } diff --git a/src/Catalog/Images/Requests/UpdateImagesRequest.php b/src/Catalog/Images/Requests/UpdateImagesRequest.php index 7fc31bbf..25cabc30 100644 --- a/src/Catalog/Images/Requests/UpdateImagesRequest.php +++ b/src/Catalog/Images/Requests/UpdateImagesRequest.php @@ -54,6 +54,7 @@ public function getImageId(): string public function setImageId(string $value): self { $this->imageId = $value; + $this->_setField('imageId'); return $this; } @@ -71,6 +72,7 @@ public function getRequest(): ?UpdateCatalogImageRequest public function setRequest(?UpdateCatalogImageRequest $value = null): self { $this->request = $value; + $this->_setField('request'); return $this; } @@ -88,6 +90,7 @@ public function getImageFile(): ?File public function setImageFile(?File $value = null): self { $this->imageFile = $value; + $this->_setField('imageFile'); return $this; } } diff --git a/src/Catalog/Object/ObjectClient.php b/src/Catalog/Object/ObjectClient.php index 96178406..44669f5b 100644 --- a/src/Catalog/Object/ObjectClient.php +++ b/src/Catalog/Object/ObjectClient.php @@ -2,7 +2,7 @@ namespace Square\Catalog\Object; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Catalog\Object\Requests\UpsertCatalogObjectRequest; use Square\Types\UpsertCatalogObjectResponse; @@ -12,7 +12,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Catalog\Object\Requests\GetObjectRequest; use Square\Types\GetCatalogObjectResponse; @@ -95,16 +94,6 @@ public function upsert(UpsertCatalogObjectRequest $request, ?array $options = nu } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -167,16 +156,6 @@ public function get(GetObjectRequest $request, ?array $options = null): GetCatal } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -231,16 +210,6 @@ public function delete(DeleteObjectRequest $request, ?array $options = null): De } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Catalog/Object/Requests/DeleteObjectRequest.php b/src/Catalog/Object/Requests/DeleteObjectRequest.php index e3ad07ad..9d35e1ef 100644 --- a/src/Catalog/Object/Requests/DeleteObjectRequest.php +++ b/src/Catalog/Object/Requests/DeleteObjectRequest.php @@ -40,6 +40,7 @@ public function getObjectId(): string public function setObjectId(string $value): self { $this->objectId = $value; + $this->_setField('objectId'); return $this; } } diff --git a/src/Catalog/Object/Requests/GetObjectRequest.php b/src/Catalog/Object/Requests/GetObjectRequest.php index 2378bde1..68892541 100644 --- a/src/Catalog/Object/Requests/GetObjectRequest.php +++ b/src/Catalog/Object/Requests/GetObjectRequest.php @@ -82,6 +82,7 @@ public function getObjectId(): string public function setObjectId(string $value): self { $this->objectId = $value; + $this->_setField('objectId'); return $this; } @@ -99,6 +100,7 @@ public function getIncludeRelatedObjects(): ?bool public function setIncludeRelatedObjects(?bool $value = null): self { $this->includeRelatedObjects = $value; + $this->_setField('includeRelatedObjects'); return $this; } @@ -116,6 +118,7 @@ public function getCatalogVersion(): ?int public function setCatalogVersion(?int $value = null): self { $this->catalogVersion = $value; + $this->_setField('catalogVersion'); return $this; } @@ -133,6 +136,7 @@ public function getIncludeCategoryPathToRoot(): ?bool public function setIncludeCategoryPathToRoot(?bool $value = null): self { $this->includeCategoryPathToRoot = $value; + $this->_setField('includeCategoryPathToRoot'); return $this; } } diff --git a/src/Catalog/Object/Requests/UpsertCatalogObjectRequest.php b/src/Catalog/Object/Requests/UpsertCatalogObjectRequest.php index 7cacb706..ba477bfc 100644 --- a/src/Catalog/Object/Requests/UpsertCatalogObjectRequest.php +++ b/src/Catalog/Object/Requests/UpsertCatalogObjectRequest.php @@ -63,6 +63,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -80,6 +81,7 @@ public function getObject(): CatalogObject public function setObject(CatalogObject $value): self { $this->object = $value; + $this->_setField('object'); return $this; } } diff --git a/src/Catalog/Requests/BatchDeleteCatalogObjectsRequest.php b/src/Catalog/Requests/BatchDeleteCatalogObjectsRequest.php index 1ad8ba2f..c86c5239 100644 --- a/src/Catalog/Requests/BatchDeleteCatalogObjectsRequest.php +++ b/src/Catalog/Requests/BatchDeleteCatalogObjectsRequest.php @@ -43,6 +43,7 @@ public function getObjectIds(): array public function setObjectIds(array $value): self { $this->objectIds = $value; + $this->_setField('objectIds'); return $this; } } diff --git a/src/Catalog/Requests/BatchGetCatalogObjectsRequest.php b/src/Catalog/Requests/BatchGetCatalogObjectsRequest.php index f20be120..cc6269d2 100644 --- a/src/Catalog/Requests/BatchGetCatalogObjectsRequest.php +++ b/src/Catalog/Requests/BatchGetCatalogObjectsRequest.php @@ -96,6 +96,7 @@ public function getObjectIds(): array public function setObjectIds(array $value): self { $this->objectIds = $value; + $this->_setField('objectIds'); return $this; } @@ -113,6 +114,7 @@ public function getIncludeRelatedObjects(): ?bool public function setIncludeRelatedObjects(?bool $value = null): self { $this->includeRelatedObjects = $value; + $this->_setField('includeRelatedObjects'); return $this; } @@ -130,6 +132,7 @@ public function getCatalogVersion(): ?int public function setCatalogVersion(?int $value = null): self { $this->catalogVersion = $value; + $this->_setField('catalogVersion'); return $this; } @@ -147,6 +150,7 @@ public function getIncludeDeletedObjects(): ?bool public function setIncludeDeletedObjects(?bool $value = null): self { $this->includeDeletedObjects = $value; + $this->_setField('includeDeletedObjects'); return $this; } @@ -164,6 +168,7 @@ public function getIncludeCategoryPathToRoot(): ?bool public function setIncludeCategoryPathToRoot(?bool $value = null): self { $this->includeCategoryPathToRoot = $value; + $this->_setField('includeCategoryPathToRoot'); return $this; } } diff --git a/src/Catalog/Requests/BatchUpsertCatalogObjectsRequest.php b/src/Catalog/Requests/BatchUpsertCatalogObjectsRequest.php index 91c534c1..9c15b33a 100644 --- a/src/Catalog/Requests/BatchUpsertCatalogObjectsRequest.php +++ b/src/Catalog/Requests/BatchUpsertCatalogObjectsRequest.php @@ -80,6 +80,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -97,6 +98,7 @@ public function getBatches(): array public function setBatches(array $value): self { $this->batches = $value; + $this->_setField('batches'); return $this; } } diff --git a/src/Catalog/Requests/ListCatalogRequest.php b/src/Catalog/Requests/ListCatalogRequest.php index 7fe365b8..892f0d27 100644 --- a/src/Catalog/Requests/ListCatalogRequest.php +++ b/src/Catalog/Requests/ListCatalogRequest.php @@ -74,6 +74,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -91,6 +92,7 @@ public function getTypes(): ?string public function setTypes(?string $value = null): self { $this->types = $value; + $this->_setField('types'); return $this; } @@ -108,6 +110,7 @@ public function getCatalogVersion(): ?int public function setCatalogVersion(?int $value = null): self { $this->catalogVersion = $value; + $this->_setField('catalogVersion'); return $this; } } diff --git a/src/Catalog/Requests/SearchCatalogItemsRequest.php b/src/Catalog/Requests/SearchCatalogItemsRequest.php index 2b827e21..b5c2011b 100644 --- a/src/Catalog/Requests/SearchCatalogItemsRequest.php +++ b/src/Catalog/Requests/SearchCatalogItemsRequest.php @@ -130,6 +130,7 @@ public function getTextFilter(): ?string public function setTextFilter(?string $value = null): self { $this->textFilter = $value; + $this->_setField('textFilter'); return $this; } @@ -147,6 +148,7 @@ public function getCategoryIds(): ?array public function setCategoryIds(?array $value = null): self { $this->categoryIds = $value; + $this->_setField('categoryIds'); return $this; } @@ -164,6 +166,7 @@ public function getStockLevels(): ?array public function setStockLevels(?array $value = null): self { $this->stockLevels = $value; + $this->_setField('stockLevels'); return $this; } @@ -181,6 +184,7 @@ public function getEnabledLocationIds(): ?array public function setEnabledLocationIds(?array $value = null): self { $this->enabledLocationIds = $value; + $this->_setField('enabledLocationIds'); return $this; } @@ -198,6 +202,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -215,6 +220,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -232,6 +238,7 @@ public function getSortOrder(): ?string public function setSortOrder(?string $value = null): self { $this->sortOrder = $value; + $this->_setField('sortOrder'); return $this; } @@ -249,6 +256,7 @@ public function getProductTypes(): ?array public function setProductTypes(?array $value = null): self { $this->productTypes = $value; + $this->_setField('productTypes'); return $this; } @@ -266,6 +274,7 @@ public function getCustomAttributeFilters(): ?array public function setCustomAttributeFilters(?array $value = null): self { $this->customAttributeFilters = $value; + $this->_setField('customAttributeFilters'); return $this; } @@ -283,6 +292,7 @@ public function getArchivedState(): ?string public function setArchivedState(?string $value = null): self { $this->archivedState = $value; + $this->_setField('archivedState'); return $this; } } diff --git a/src/Catalog/Requests/SearchCatalogObjectsRequest.php b/src/Catalog/Requests/SearchCatalogObjectsRequest.php index 7ad892fb..adb28c4d 100644 --- a/src/Catalog/Requests/SearchCatalogObjectsRequest.php +++ b/src/Catalog/Requests/SearchCatalogObjectsRequest.php @@ -138,6 +138,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -155,6 +156,7 @@ public function getObjectTypes(): ?array public function setObjectTypes(?array $value = null): self { $this->objectTypes = $value; + $this->_setField('objectTypes'); return $this; } @@ -172,6 +174,7 @@ public function getIncludeDeletedObjects(): ?bool public function setIncludeDeletedObjects(?bool $value = null): self { $this->includeDeletedObjects = $value; + $this->_setField('includeDeletedObjects'); return $this; } @@ -189,6 +192,7 @@ public function getIncludeRelatedObjects(): ?bool public function setIncludeRelatedObjects(?bool $value = null): self { $this->includeRelatedObjects = $value; + $this->_setField('includeRelatedObjects'); return $this; } @@ -206,6 +210,7 @@ public function getBeginTime(): ?string public function setBeginTime(?string $value = null): self { $this->beginTime = $value; + $this->_setField('beginTime'); return $this; } @@ -223,6 +228,7 @@ public function getQuery(): ?CatalogQuery public function setQuery(?CatalogQuery $value = null): self { $this->query = $value; + $this->_setField('query'); return $this; } @@ -240,6 +246,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -257,6 +264,7 @@ public function getIncludeCategoryPathToRoot(): ?bool public function setIncludeCategoryPathToRoot(?bool $value = null): self { $this->includeCategoryPathToRoot = $value; + $this->_setField('includeCategoryPathToRoot'); return $this; } } diff --git a/src/Catalog/Requests/UpdateItemModifierListsRequest.php b/src/Catalog/Requests/UpdateItemModifierListsRequest.php index 39aaaeb0..f178943b 100644 --- a/src/Catalog/Requests/UpdateItemModifierListsRequest.php +++ b/src/Catalog/Requests/UpdateItemModifierListsRequest.php @@ -61,6 +61,7 @@ public function getItemIds(): array public function setItemIds(array $value): self { $this->itemIds = $value; + $this->_setField('itemIds'); return $this; } @@ -78,6 +79,7 @@ public function getModifierListsToEnable(): ?array public function setModifierListsToEnable(?array $value = null): self { $this->modifierListsToEnable = $value; + $this->_setField('modifierListsToEnable'); return $this; } @@ -95,6 +97,7 @@ public function getModifierListsToDisable(): ?array public function setModifierListsToDisable(?array $value = null): self { $this->modifierListsToDisable = $value; + $this->_setField('modifierListsToDisable'); return $this; } } diff --git a/src/Catalog/Requests/UpdateItemTaxesRequest.php b/src/Catalog/Requests/UpdateItemTaxesRequest.php index d5227420..4cbca8ff 100644 --- a/src/Catalog/Requests/UpdateItemTaxesRequest.php +++ b/src/Catalog/Requests/UpdateItemTaxesRequest.php @@ -64,6 +64,7 @@ public function getItemIds(): array public function setItemIds(array $value): self { $this->itemIds = $value; + $this->_setField('itemIds'); return $this; } @@ -81,6 +82,7 @@ public function getTaxesToEnable(): ?array public function setTaxesToEnable(?array $value = null): self { $this->taxesToEnable = $value; + $this->_setField('taxesToEnable'); return $this; } @@ -98,6 +100,7 @@ public function getTaxesToDisable(): ?array public function setTaxesToDisable(?array $value = null): self { $this->taxesToDisable = $value; + $this->_setField('taxesToDisable'); return $this; } } diff --git a/src/Channels/ChannelsClient.php b/src/Channels/ChannelsClient.php index 60e2b86f..ecbfb570 100644 --- a/src/Channels/ChannelsClient.php +++ b/src/Channels/ChannelsClient.php @@ -2,7 +2,7 @@ namespace Square\Channels; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Channels\Requests\ListChannelsRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Channels\Requests\GetChannelsRequest; use Square\Types\RetrieveChannelResponse; @@ -123,16 +122,6 @@ public function bulkRetrieve(BulkRetrieveChannelsRequest $request, ?array $optio } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -178,16 +167,6 @@ public function get(GetChannelsRequest $request, ?array $options = null): Retrie } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -250,16 +229,6 @@ private function _list(ListChannelsRequest $request = new ListChannelsRequest(), } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Channels/Requests/BulkRetrieveChannelsRequest.php b/src/Channels/Requests/BulkRetrieveChannelsRequest.php index 218380ee..f24503ce 100644 --- a/src/Channels/Requests/BulkRetrieveChannelsRequest.php +++ b/src/Channels/Requests/BulkRetrieveChannelsRequest.php @@ -39,6 +39,7 @@ public function getChannelIds(): array public function setChannelIds(array $value): self { $this->channelIds = $value; + $this->_setField('channelIds'); return $this; } } diff --git a/src/Channels/Requests/GetChannelsRequest.php b/src/Channels/Requests/GetChannelsRequest.php index f8ebf409..c8166e15 100644 --- a/src/Channels/Requests/GetChannelsRequest.php +++ b/src/Channels/Requests/GetChannelsRequest.php @@ -36,6 +36,7 @@ public function getChannelId(): string public function setChannelId(string $value): self { $this->channelId = $value; + $this->_setField('channelId'); return $this; } } diff --git a/src/Channels/Requests/ListChannelsRequest.php b/src/Channels/Requests/ListChannelsRequest.php index 9aa23de0..107c0a42 100644 --- a/src/Channels/Requests/ListChannelsRequest.php +++ b/src/Channels/Requests/ListChannelsRequest.php @@ -69,6 +69,7 @@ public function getReferenceType(): ?string public function setReferenceType(?string $value = null): self { $this->referenceType = $value; + $this->_setField('referenceType'); return $this; } @@ -86,6 +87,7 @@ public function getReferenceId(): ?string public function setReferenceId(?string $value = null): self { $this->referenceId = $value; + $this->_setField('referenceId'); return $this; } @@ -103,6 +105,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -120,6 +123,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -137,6 +141,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } } diff --git a/src/Checkout/CheckoutClient.php b/src/Checkout/CheckoutClient.php index 99c8941f..c56a5b34 100644 --- a/src/Checkout/CheckoutClient.php +++ b/src/Checkout/CheckoutClient.php @@ -3,7 +3,7 @@ namespace Square\Checkout; use Square\Checkout\PaymentLinks\PaymentLinksClient; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Checkout\Requests\RetrieveLocationSettingsRequest; use Square\Types\RetrieveLocationSettingsResponse; @@ -13,7 +13,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Checkout\Requests\UpdateLocationSettingsRequest; use Square\Types\UpdateLocationSettingsResponse; @@ -98,16 +97,6 @@ public function retrieveLocationSettings(RetrieveLocationSettingsRequest $reques } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -154,16 +143,6 @@ public function updateLocationSettings(UpdateLocationSettingsRequest $request, ? } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -208,16 +187,6 @@ public function retrieveMerchantSettings(?array $options = null): RetrieveMercha } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -264,16 +233,6 @@ public function updateMerchantSettings(UpdateMerchantSettingsRequest $request, ? } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Checkout/PaymentLinks/PaymentLinksClient.php b/src/Checkout/PaymentLinks/PaymentLinksClient.php index b58ca58d..e7cdf8ef 100644 --- a/src/Checkout/PaymentLinks/PaymentLinksClient.php +++ b/src/Checkout/PaymentLinks/PaymentLinksClient.php @@ -2,7 +2,7 @@ namespace Square\Checkout\PaymentLinks; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Checkout\PaymentLinks\Requests\ListPaymentLinksRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Checkout\PaymentLinks\Requests\GetPaymentLinksRequest; use Square\Types\GetPaymentLinkResponse; @@ -127,16 +126,6 @@ public function create(CreatePaymentLinkRequest $request = new CreatePaymentLink } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -182,16 +171,6 @@ public function get(GetPaymentLinksRequest $request, ?array $options = null): Ge } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -240,16 +219,6 @@ public function update(UpdatePaymentLinkRequest $request, ?array $options = null } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -295,16 +264,6 @@ public function delete(DeletePaymentLinksRequest $request, ?array $options = nul } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -358,16 +317,6 @@ private function _list(ListPaymentLinksRequest $request = new ListPaymentLinksRe } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Checkout/PaymentLinks/Requests/CreatePaymentLinkRequest.php b/src/Checkout/PaymentLinks/Requests/CreatePaymentLinkRequest.php index d1e0f5df..ad129a73 100644 --- a/src/Checkout/PaymentLinks/Requests/CreatePaymentLinkRequest.php +++ b/src/Checkout/PaymentLinks/Requests/CreatePaymentLinkRequest.php @@ -114,6 +114,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -131,6 +132,7 @@ public function getDescription(): ?string public function setDescription(?string $value = null): self { $this->description = $value; + $this->_setField('description'); return $this; } @@ -148,6 +150,7 @@ public function getQuickPay(): ?QuickPay public function setQuickPay(?QuickPay $value = null): self { $this->quickPay = $value; + $this->_setField('quickPay'); return $this; } @@ -165,6 +168,7 @@ public function getOrder(): ?Order public function setOrder(?Order $value = null): self { $this->order = $value; + $this->_setField('order'); return $this; } @@ -182,6 +186,7 @@ public function getCheckoutOptions(): ?CheckoutOptions public function setCheckoutOptions(?CheckoutOptions $value = null): self { $this->checkoutOptions = $value; + $this->_setField('checkoutOptions'); return $this; } @@ -199,6 +204,7 @@ public function getPrePopulatedData(): ?PrePopulatedData public function setPrePopulatedData(?PrePopulatedData $value = null): self { $this->prePopulatedData = $value; + $this->_setField('prePopulatedData'); return $this; } @@ -216,6 +222,7 @@ public function getPaymentNote(): ?string public function setPaymentNote(?string $value = null): self { $this->paymentNote = $value; + $this->_setField('paymentNote'); return $this; } } diff --git a/src/Checkout/PaymentLinks/Requests/DeletePaymentLinksRequest.php b/src/Checkout/PaymentLinks/Requests/DeletePaymentLinksRequest.php index 89233ab9..ed2f7404 100644 --- a/src/Checkout/PaymentLinks/Requests/DeletePaymentLinksRequest.php +++ b/src/Checkout/PaymentLinks/Requests/DeletePaymentLinksRequest.php @@ -36,6 +36,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } } diff --git a/src/Checkout/PaymentLinks/Requests/GetPaymentLinksRequest.php b/src/Checkout/PaymentLinks/Requests/GetPaymentLinksRequest.php index fc5beb73..06e8f018 100644 --- a/src/Checkout/PaymentLinks/Requests/GetPaymentLinksRequest.php +++ b/src/Checkout/PaymentLinks/Requests/GetPaymentLinksRequest.php @@ -36,6 +36,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } } diff --git a/src/Checkout/PaymentLinks/Requests/ListPaymentLinksRequest.php b/src/Checkout/PaymentLinks/Requests/ListPaymentLinksRequest.php index b502ed9b..a919f164 100644 --- a/src/Checkout/PaymentLinks/Requests/ListPaymentLinksRequest.php +++ b/src/Checkout/PaymentLinks/Requests/ListPaymentLinksRequest.php @@ -54,6 +54,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -71,6 +72,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } } diff --git a/src/Checkout/PaymentLinks/Requests/UpdatePaymentLinkRequest.php b/src/Checkout/PaymentLinks/Requests/UpdatePaymentLinkRequest.php index 3c613f4b..a18331c9 100644 --- a/src/Checkout/PaymentLinks/Requests/UpdatePaymentLinkRequest.php +++ b/src/Checkout/PaymentLinks/Requests/UpdatePaymentLinkRequest.php @@ -49,6 +49,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -66,6 +67,7 @@ public function getPaymentLink(): PaymentLink public function setPaymentLink(PaymentLink $value): self { $this->paymentLink = $value; + $this->_setField('paymentLink'); return $this; } } diff --git a/src/Checkout/Requests/RetrieveLocationSettingsRequest.php b/src/Checkout/Requests/RetrieveLocationSettingsRequest.php index dba7104f..12208e18 100644 --- a/src/Checkout/Requests/RetrieveLocationSettingsRequest.php +++ b/src/Checkout/Requests/RetrieveLocationSettingsRequest.php @@ -36,6 +36,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } } diff --git a/src/Checkout/Requests/UpdateLocationSettingsRequest.php b/src/Checkout/Requests/UpdateLocationSettingsRequest.php index 57fbfe8b..feb5387d 100644 --- a/src/Checkout/Requests/UpdateLocationSettingsRequest.php +++ b/src/Checkout/Requests/UpdateLocationSettingsRequest.php @@ -46,6 +46,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -63,6 +64,7 @@ public function getLocationSettings(): CheckoutLocationSettings public function setLocationSettings(CheckoutLocationSettings $value): self { $this->locationSettings = $value; + $this->_setField('locationSettings'); return $this; } } diff --git a/src/Checkout/Requests/UpdateMerchantSettingsRequest.php b/src/Checkout/Requests/UpdateMerchantSettingsRequest.php index 565bd997..ebee10a6 100644 --- a/src/Checkout/Requests/UpdateMerchantSettingsRequest.php +++ b/src/Checkout/Requests/UpdateMerchantSettingsRequest.php @@ -39,6 +39,7 @@ public function getMerchantSettings(): CheckoutMerchantSettings public function setMerchantSettings(CheckoutMerchantSettings $value): self { $this->merchantSettings = $value; + $this->_setField('merchantSettings'); return $this; } } diff --git a/src/Core/Client/HttpClientBuilder.php b/src/Core/Client/HttpClientBuilder.php new file mode 100644 index 00000000..b8afb796 --- /dev/null +++ b/src/Core/Client/HttpClientBuilder.php @@ -0,0 +1,56 @@ + + */ + private array $responses = []; + + /** + * @var array + */ + private array $requests = []; + + /** + * @param ResponseInterface ...$responses + */ + public function append(ResponseInterface ...$responses): void + { + foreach ($responses as $response) { + $this->responses[] = $response; + } + } + + /** + * @param RequestInterface $request + * @return ResponseInterface + */ + public function sendRequest(RequestInterface $request): ResponseInterface + { + $this->requests[] = $request; + + if (empty($this->responses)) { + throw new RuntimeException('No more responses in the queue. Add responses using append().'); + } + + return array_shift($this->responses); + } + + /** + * @return ?RequestInterface + */ + public function getLastRequest(): ?RequestInterface + { + if (empty($this->requests)) { + return null; + } + return $this->requests[count($this->requests) - 1]; + } + + /** + * @return int + */ + public function getRequestCount(): int + { + return count($this->requests); + } + + /** + * Returns the number of remaining responses in the queue. + * + * @return int + */ + public function count(): int + { + return count($this->responses); + } +} diff --git a/src/Core/Client/RawClient.php b/src/Core/Client/RawClient.php index d5672cc2..3faaaef9 100644 --- a/src/Core/Client/RawClient.php +++ b/src/Core/Client/RawClient.php @@ -3,25 +3,35 @@ namespace Square\Core\Client; use JsonSerializable; -use GuzzleHttp\Client; -use GuzzleHttp\ClientInterface; -use GuzzleHttp\HandlerStack; -use GuzzleHttp\Psr7\MultipartStream; -use GuzzleHttp\Psr7\Request; -use GuzzleHttp\Psr7\Utils; use InvalidArgumentException; use Psr\Http\Client\ClientExceptionInterface; +use Psr\Http\Client\ClientInterface; +use Psr\Http\Message\RequestFactoryInterface; +use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; +use Http\Message\MultipartStream\MultipartStreamBuilder; +use Psr\Http\Message\StreamFactoryInterface; use Psr\Http\Message\StreamInterface; use Square\Core\Json\JsonApiRequest; +use Square\Core\Json\JsonEncoder; use Square\Core\Multipart\MultipartApiRequest; class RawClient { /** - * @var ClientInterface $client + * @var RetryDecoratingClient $client */ - private ClientInterface $client; + private RetryDecoratingClient $client; + + /** + * @var RequestFactoryInterface $requestFactory + */ + private RequestFactoryInterface $requestFactory; + + /** + * @var StreamFactoryInterface $streamFactory + */ + private StreamFactoryInterface $streamFactory; /** * @var array $headers @@ -37,6 +47,8 @@ class RawClient * @param ?array{ * baseUrl?: string, * client?: ClientInterface, + * maxRetries?: int, + * timeout?: float, * headers?: array, * getAuthHeaders?: callable(): array, * } $options @@ -44,22 +56,16 @@ class RawClient public function __construct( public readonly ?array $options = null, ) { - $this->client = $this->options['client'] - ?? $this->createDefaultClient(); + $this->client = HttpClientBuilder::build( + $this->options['client'] ?? null, + $this->options['maxRetries'] ?? 2, + ); + $this->requestFactory = HttpClientBuilder::requestFactory(); + $this->streamFactory = HttpClientBuilder::streamFactory(); $this->headers = $this->options['headers'] ?? []; $this->getAuthHeaders = $this->options['getAuthHeaders'] ?? null; } - /** - * @return Client - */ - private function createDefaultClient(): Client - { - $handler = HandlerStack::create(); - $handler->push(RetryMiddleware::create()); - return new Client(['handler' => $handler]); - } - /** * @param BaseApiRequest $request * @param ?array{ @@ -78,26 +84,11 @@ public function sendRequest( ): ResponseInterface { $opts = $options ?? []; $httpRequest = $this->buildRequest($request, $opts); - return $this->client->send($httpRequest, $this->toGuzzleOptions($opts)); - } - /** - * @param array{ - * maxRetries?: int, - * timeout?: float, - * } $options - * @return array - */ - private function toGuzzleOptions(array $options): array - { - $guzzleOptions = []; - if (isset($options['maxRetries'])) { - $guzzleOptions['maxRetries'] = $options['maxRetries']; - } - if (isset($options['timeout'])) { - $guzzleOptions['timeout'] = $options['timeout']; - } - return $guzzleOptions; + $timeout = $opts['timeout'] ?? $this->options['timeout'] ?? null; + $maxRetries = $opts['maxRetries'] ?? null; + + return $this->client->send($httpRequest, $timeout, $maxRetries); } /** @@ -107,21 +98,38 @@ private function toGuzzleOptions(array $options): array * queryParameters?: array, * bodyProperties?: array, * } $options - * @return Request + * @return RequestInterface */ private function buildRequest( BaseApiRequest $request, array $options - ): Request { + ): RequestInterface { $url = $this->buildUrl($request, $options); $headers = $this->encodeHeaders($request, $options); - $body = $this->encodeRequestBody($request, $options); - return new Request( + + $httpRequest = $this->requestFactory->createRequest( $request->method->name, $url, - $headers, - $body, ); + + // Encode body and, for multipart, capture the Content-Type with boundary. + if ($request instanceof MultipartApiRequest && $request->body !== null) { + $builder = new MultipartStreamBuilder($this->streamFactory); + $request->body->addToBuilder($builder); + $httpRequest = $httpRequest->withBody($builder->build()); + $headers['Content-Type'] = "multipart/form-data; boundary={$builder->getBoundary()}"; + } else { + $body = $this->encodeRequestBody($request, $options); + if ($body !== null) { + $httpRequest = $httpRequest->withBody($body); + } + } + + foreach ($headers as $name => $value) { + $httpRequest = $httpRequest->withHeader($name, $value); + } + + return $httpRequest; } /** @@ -168,18 +176,22 @@ private function encodeRequestBody( BaseApiRequest $request, array $options, ): ?StreamInterface { - return match (get_class($request)) { - JsonApiRequest::class => $request->body === null ? null : Utils::streamFor( - json_encode( + if ($request instanceof JsonApiRequest) { + return $request->body === null ? null : $this->streamFactory->createStream( + JsonEncoder::encode( $this->buildJsonBody( $request->body, $options, ), ) - ), - MultipartApiRequest::class => $request->body != null ? new MultipartStream($request->body->toArray()) : null, - default => throw new InvalidArgumentException('Unsupported request type: ' . get_class($request)), - }; + ); + } + + if ($request instanceof MultipartApiRequest) { + return null; + } + + throw new InvalidArgumentException('Unsupported request type: ' . get_class($request)); } /** @@ -273,7 +285,7 @@ private function encodeQueryValue(mixed $value): string return 'null'; } // Unreachable, but included for a best effort. - return urlencode(strval(json_encode($value))); + return urlencode(JsonEncoder::encode($value)); } /** diff --git a/src/Core/Client/RetryDecoratingClient.php b/src/Core/Client/RetryDecoratingClient.php new file mode 100644 index 00000000..0ca582cf --- /dev/null +++ b/src/Core/Client/RetryDecoratingClient.php @@ -0,0 +1,241 @@ +client = $client; + $this->maxRetries = $maxRetries; + $this->baseDelay = $baseDelay; + $this->sleepFunction = $sleepFunction ?? 'usleep'; + } + + /** + * @param RequestInterface $request + * @return ResponseInterface + * @throws ClientExceptionInterface + */ + public function sendRequest(RequestInterface $request): ResponseInterface + { + return $this->send($request); + } + + /** + * Sends a request with optional per-request timeout and retry overrides. + * + * When a Guzzle or Symfony PSR-18 client is detected, the timeout is + * forwarded via the client's native API. For other PSR-18 clients the + * timeout value is silently ignored. + * + * @param RequestInterface $request + * @param ?float $timeout Timeout in seconds, or null to use the client default. + * @param ?int $maxRetries Maximum retry attempts, or null to use the client default. + * @return ResponseInterface + * @throws ClientExceptionInterface + */ + public function send( + RequestInterface $request, + ?float $timeout = null, + ?int $maxRetries = null, + ): ResponseInterface { + $maxRetries = $maxRetries ?? $this->maxRetries; + $retryAttempt = 0; + $lastResponse = null; + + while (true) { + try { + $lastResponse = $this->doSend($request, $timeout); + if (!$this->shouldRetry($retryAttempt, $maxRetries, $lastResponse)) { + return $lastResponse; + } + } catch (ClientExceptionInterface $e) { + if ($retryAttempt >= $maxRetries) { + throw $e; + } + } + + $retryAttempt++; + $delay = $this->getRetryDelay($retryAttempt, $lastResponse); + ($this->sleepFunction)($delay * 1000); // Convert milliseconds to microseconds + + // Rewind the request body so retries don't send an empty body. + $request->getBody()->rewind(); + } + } + + /** + * Dispatches the request to the underlying client, forwarding the timeout + * option to Guzzle or Symfony when available. + * + * @param RequestInterface $request + * @param ?float $timeout + * @return ResponseInterface + * @throws ClientExceptionInterface + */ + private function doSend(RequestInterface $request, ?float $timeout): ResponseInterface + { + static $warned = false; + + if ($timeout === null) { + return $this->client->sendRequest($request); + } + + if (class_exists('GuzzleHttp\ClientInterface') + && $this->client instanceof \GuzzleHttp\ClientInterface + ) { + return $this->client->send($request, ['timeout' => $timeout]); + } + if (class_exists('Symfony\Component\HttpClient\Psr18Client') + && $this->client instanceof \Symfony\Component\HttpClient\Psr18Client + ) { + /** @var ClientInterface $clientWithTimeout */ + $clientWithTimeout = $this->client->withOptions(['timeout' => $timeout]); + return $clientWithTimeout->sendRequest($request); + } + + if ($warned) { + return $this->client->sendRequest($request); + } + $warned = true; + trigger_error( + 'Timeout option is not supported for the current PSR-18 client (' + . get_class($this->client) + . '). Use Guzzle or Symfony HttpClient for timeout support.', + E_USER_WARNING, + ); + return $this->client->sendRequest($request); + } + + /** + * @param int $retryAttempt + * @param int $maxRetries + * @param ?ResponseInterface $response + * @return bool + */ + private function shouldRetry( + int $retryAttempt, + int $maxRetries, + ?ResponseInterface $response = null, + ): bool { + if ($retryAttempt >= $maxRetries) { + return false; + } + + if ($response !== null) { + return $response->getStatusCode() >= 500 || + in_array($response->getStatusCode(), self::RETRY_STATUS_CODES); + } + + return false; + } + + /** + * Calculate the retry delay based on response headers or exponential backoff. + * + * @param int $retryAttempt + * @param ?ResponseInterface $response + * @return int milliseconds + */ + private function getRetryDelay(int $retryAttempt, ?ResponseInterface $response): int + { + if ($response !== null) { + // Check Retry-After header + $retryAfter = $response->getHeaderLine('Retry-After'); + if ($retryAfter !== '') { + // Try parsing as integer (seconds) + if (is_numeric($retryAfter)) { + $retryAfterSeconds = (int)$retryAfter; + if ($retryAfterSeconds > 0) { + return min($retryAfterSeconds * 1000, self::MAX_RETRY_DELAY); + } + } + + // Try parsing as HTTP date + $retryAfterDate = strtotime($retryAfter); + if ($retryAfterDate !== false) { + $delay = ($retryAfterDate - time()) * 1000; + if ($delay > 0) { + return min(max($delay, 0), self::MAX_RETRY_DELAY); + } + } + } + + // Check X-RateLimit-Reset header + $rateLimitReset = $response->getHeaderLine('X-RateLimit-Reset'); + if ($rateLimitReset !== '' && is_numeric($rateLimitReset)) { + $resetTime = (int)$rateLimitReset; + $delay = ($resetTime * 1000) - (int)(microtime(true) * 1000); + if ($delay > 0) { + return $this->addPositiveJitter(min($delay, self::MAX_RETRY_DELAY)); + } + } + } + + // Fall back to exponential backoff with symmetric jitter + return $this->addSymmetricJitter( + min($this->exponentialDelay($retryAttempt), self::MAX_RETRY_DELAY) + ); + } + + /** + * Add positive jitter (0% to +20%) to the delay. + * + * @param int $delay + * @return int + */ + private function addPositiveJitter(int $delay): int + { + $jitterMultiplier = 1 + (mt_rand() / mt_getrandmax()) * self::JITTER_FACTOR; + return (int)($delay * $jitterMultiplier); + } + + /** + * Add symmetric jitter (-10% to +10%) to the delay. + * + * @param int $delay + * @return int + */ + private function addSymmetricJitter(int $delay): int + { + $jitterMultiplier = 1 + ((mt_rand() / mt_getrandmax()) - 0.5) * self::JITTER_FACTOR; + return (int)($delay * $jitterMultiplier); + } + + /** + * Default exponential backoff delay function. + * + * @return int milliseconds. + */ + private function exponentialDelay(int $retryAttempt): int + { + return 2 ** ($retryAttempt - 1) * $this->baseDelay; + } +} diff --git a/src/Core/Client/RetryMiddleware.php b/src/Core/Client/RetryMiddleware.php deleted file mode 100644 index adb3dcb2..00000000 --- a/src/Core/Client/RetryMiddleware.php +++ /dev/null @@ -1,266 +0,0 @@ - 2, - 'baseDelay' => 1000 - ]; - private const RETRY_STATUS_CODES = [408, 429]; - private const MAX_RETRY_DELAY = 60000; // 60 seconds in milliseconds - private const JITTER_FACTOR = 0.2; // 20% random jitter - - /** - * @var callable(RequestInterface, array): PromiseInterface - * @phpstan-ignore missingType.iterableValue - */ - private $nextHandler; - - /** - * @var array{ - * maxRetries: int, - * baseDelay: int, - * } - */ - private array $options; - - /** - * @param callable $nextHandler - * @param ?array{ - * maxRetries?: int, - * } $options - */ - public function __construct( - callable $nextHandler, - ?array $options = null, - ) { - $this->nextHandler = $nextHandler; - $this->options = array_merge(self::DEFAULT_RETRY_OPTIONS, $options ?? []); - } - - /** - * @param ?array{ - * maxRetries?: int, - * baseDelay?: int, - * } $options - * @return callable - */ - public static function create(?array $options = null): callable - { - return static function (callable $handler) use ($options): RetryMiddleware { - return new RetryMiddleware($handler, $options); - }; - } - - /** - * @param RequestInterface $request - * @param array{ - * retryAttempt?: int, - * delay: int, - * maxRetries?: int, - * } $options - * @return PromiseInterface - */ - public function __invoke(RequestInterface $request, array $options): PromiseInterface - { - $options = array_merge($this->options, $options); - if (!isset($options['retryAttempt'])) { - $options['retryAttempt'] = 0; - } - - $fn = $this->nextHandler; - - return $fn($request, $options) - ->then( - $this->onFulfilled($request, $options), - $this->onRejected($request, $options) - ); - } - - /** - * @param int $retryAttempt - * @param int $maxRetries - * @param ?ResponseInterface $response - * @param ?Throwable $exception - * @return bool - */ - private function shouldRetry( - int $retryAttempt, - int $maxRetries, - ?ResponseInterface $response = null, - ?Throwable $exception = null - ): bool { - if ($retryAttempt >= $maxRetries) { - return false; - } - - if ($exception instanceof ConnectException) { - return true; - } - - if ($response) { - return $response->getStatusCode() >= 500 || - in_array($response->getStatusCode(), self::RETRY_STATUS_CODES); - } - return false; - } - - /** - * Execute fulfilled closure - * @param array{ - * retryAttempt: int, - * delay: int, - * maxRetries: int, - * } $options - */ - private function onFulfilled(RequestInterface $request, array $options): callable - { - $retryAttempt = $options['retryAttempt']; - $maxRetries = $options['maxRetries']; - return function ($value) use ($request, $options, $retryAttempt, $maxRetries) { - if (!$this->shouldRetry( - $retryAttempt, - $maxRetries, - $value - )) { - return $value; - } - - return $this->doRetry($request, $options, $value); - }; - } - - /** - * Execute rejected closure - * @param RequestInterface $req - * @param array{ - * retryAttempt: int, - * delay: int, - * maxRetries: int, - * } $options - * @return callable - */ - private function onRejected(RequestInterface $req, array $options): callable - { - $retryAttempt = $options['retryAttempt']; - $maxRetries = $options['maxRetries']; - return function ($reason) use ($req, $options, $retryAttempt, $maxRetries) { - if (!$this->shouldRetry( - $retryAttempt, - $maxRetries, - null, - $reason - )) { - return P\Create::rejectionFor($reason); - } - - return $this->doRetry($req, $options); - }; - } - - /** - * @param RequestInterface $request - * @param array{ - * delay: int, - * retryAttempt: int, - * } $options - * @param ?ResponseInterface $response - * @return PromiseInterface - */ - private function doRetry(RequestInterface $request, array $options, ?ResponseInterface $response = null): PromiseInterface - { - $options['delay'] = $this->getRetryDelay(++$options['retryAttempt'], $response); - return $this($request, $options); - } - - /** - * Calculate the retry delay based on response headers or exponential backoff. - * - * @param int $retryAttempt - * @param ?ResponseInterface $response - * @return int milliseconds - */ - private function getRetryDelay(int $retryAttempt, ?ResponseInterface $response): int - { - if ($response !== null) { - // Check Retry-After header - $retryAfter = $response->getHeaderLine('Retry-After'); - if ($retryAfter !== '') { - // Try parsing as integer (seconds) - if (is_numeric($retryAfter)) { - $retryAfterSeconds = (int)$retryAfter; - if ($retryAfterSeconds > 0) { - return min($retryAfterSeconds * 1000, self::MAX_RETRY_DELAY); - } - } - - // Try parsing as HTTP date - $retryAfterDate = strtotime($retryAfter); - if ($retryAfterDate !== false) { - $delay = ($retryAfterDate - time()) * 1000; - if ($delay > 0) { - return min(max($delay, 0), self::MAX_RETRY_DELAY); - } - } - } - - // Check X-RateLimit-Reset header - $rateLimitReset = $response->getHeaderLine('X-RateLimit-Reset'); - if ($rateLimitReset !== '' && is_numeric($rateLimitReset)) { - $resetTime = (int)$rateLimitReset; - $delay = ($resetTime * 1000) - (int)(microtime(true) * 1000); - if ($delay > 0) { - return $this->addPositiveJitter(min($delay, self::MAX_RETRY_DELAY)); - } - } - } - - // Fall back to exponential backoff with symmetric jitter - return $this->addSymmetricJitter( - min($this->exponentialDelay($retryAttempt), self::MAX_RETRY_DELAY) - ); - } - - /** - * Add positive jitter (0% to +20%) to the delay. - * - * @param int $delay - * @return int - */ - private function addPositiveJitter(int $delay): int - { - $jitterMultiplier = 1 + (mt_rand() / mt_getrandmax()) * self::JITTER_FACTOR; - return (int)($delay * $jitterMultiplier); - } - - /** - * Add symmetric jitter (-10% to +10%) to the delay. - * - * @param int $delay - * @return int - */ - private function addSymmetricJitter(int $delay): int - { - $jitterMultiplier = 1 + ((mt_rand() / mt_getrandmax()) - 0.5) * self::JITTER_FACTOR; - return (int)($delay * $jitterMultiplier); - } - - /** - * Default exponential backoff delay function. - * - * @return int milliseconds. - */ - private function exponentialDelay(int $retryAttempt): int - { - return 2 ** ($retryAttempt - 1) * $this->options['baseDelay']; - } -} diff --git a/src/Core/Json/JsonDeserializer.php b/src/Core/Json/JsonDeserializer.php index 16b3a87b..a7411df1 100644 --- a/src/Core/Json/JsonDeserializer.php +++ b/src/Core/Json/JsonDeserializer.php @@ -45,9 +45,9 @@ public static function deserializeDate(string $date): DateTime /** * Deserializes an array based on type annotations (either a list or a map). * - * @param mixed[]|array $data The array to be deserialized. - * @param mixed[]|array $type The type definition from the annotation. - * @return mixed[]|array The deserialized array. + * @param array $data The array to be deserialized. + * @param array $type The type definition from the annotation. + * @return array The deserialized array. * @throws JsonException If deserialization fails. */ public static function deserializeArray(array $data, array $type): array @@ -75,7 +75,7 @@ private static function deserializeValue(mixed $data, mixed $type): mixed return self::deserializeArray((array)$data, $type); } - if (gettype($type) != "string") { + if (gettype($type) !== "string") { throw new JsonException("Unexpected non-string type."); } @@ -134,6 +134,7 @@ private static function deserializeSingleValue(mixed $data, string $type): mixed } if (class_exists($type) && is_array($data)) { + /** @var array $data */ return self::deserializeObject($data, $type); } @@ -171,19 +172,24 @@ public static function deserializeObject(array $data, string $type): object /** * Deserializes a map (associative array) with defined key and value types. * - * @param array $data The associative array to deserialize. - * @param array $type The type definition for the map. + * @param array $data The associative array to deserialize. + * @param array $type The type definition for the map. * @return array The deserialized map. * @throws JsonException If deserialization fails. */ private static function deserializeMap(array $data, array $type): array { $keyType = array_key_first($type); + if ($keyType === null) { + throw new JsonException("Unexpected no key in ArrayType."); + } + $keyType = (string) $keyType; $valueType = $type[$keyType]; + /** @var array $result */ $result = []; foreach ($data as $key => $item) { - $key = Utils::castKey($key, (string)$keyType); + $key = (string) Utils::castKey($key, $keyType); $result[$key] = self::deserializeValue($item, $valueType); } @@ -193,14 +199,15 @@ private static function deserializeMap(array $data, array $type): array /** * Deserializes a list (indexed array) with a defined value type. * - * @param array $data The list to deserialize. - * @param array $type The type definition for the list. + * @param array $data The list to deserialize. + * @param array $type The type definition for the list. * @return array The deserialized list. * @throws JsonException If deserialization fails. */ private static function deserializeList(array $data, array $type): array { $valueType = $type[0]; + /** @var array */ return array_map(fn ($item) => self::deserializeValue($item, $valueType), $data); } } diff --git a/src/Core/Json/JsonSerializableType.php b/src/Core/Json/JsonSerializableType.php index e4b33fa9..81b51456 100644 --- a/src/Core/Json/JsonSerializableType.php +++ b/src/Core/Json/JsonSerializableType.php @@ -19,6 +19,9 @@ abstract class JsonSerializableType implements \JsonSerializable /** @var array Extra properties from JSON that don't map to class properties */ private array $__additionalProperties = []; + /** @var array Properties that have been explicitly set via setter methods */ + private array $__explicitlySetProperties = []; + /** * Serializes the object to a JSON string. * @@ -47,7 +50,7 @@ public function jsonSerialize(): array $reflectionClass = new \ReflectionClass($this); foreach ($reflectionClass->getProperties() as $property) { $jsonKey = self::getJsonKey($property); - if ($jsonKey == null) { + if ($jsonKey === null) { continue; } $value = $property->getValue($this); @@ -80,7 +83,8 @@ public function jsonSerialize(): array $value = JsonSerializer::serializeObject($value); } - if ($value !== null) { + // Include the value if it's not null, OR if it was explicitly set (even to null) + if ($value !== null || array_key_exists($property->getName(), $this->__explicitlySetProperties)) { $result[$jsonKey] = $value; } } @@ -101,6 +105,7 @@ public static function fromJson(string $json): static if (!is_array($decodedJson)) { throw new JsonException("Unexpected non-array decoded type: " . gettype($decodedJson)); } + /** @var array $decodedJson */ return self::jsonDeserialize($decodedJson); } @@ -165,7 +170,9 @@ public static function jsonDeserialize(array $data): static // Handle object $type = $property->getType(); if (is_array($value) && $type instanceof ReflectionNamedType && !$type->isBuiltin()) { - $value = JsonDeserializer::deserializeObject($value, $type->getName()); + /** @var array $arrayValue */ + $arrayValue = $value; + $value = JsonDeserializer::deserializeObject($arrayValue, $type->getName()); } $args[$property->getName()] = $value; @@ -174,7 +181,7 @@ public static function jsonDeserialize(array $data): static // Fill in any missing properties with defaults foreach ($properties as $property) { if (!isset($args[$property->getName()])) { - $args[$property->getName()] = $property->getDefaultValue() ?? null; + $args[$property->getName()] = $property->hasDefaultValue() ? $property->getDefaultValue() : null; } } @@ -193,6 +200,17 @@ public function getAdditionalProperties(): array return $this->__additionalProperties; } + /** + * Mark a property as explicitly set. + * This ensures the property will be included in JSON serialization even if null. + * + * @param string $propertyName The name of the property to mark as explicitly set. + */ + protected function _setField(string $propertyName): void + { + $this->__explicitlySetProperties[$propertyName] = true; + } + /** * Retrieves the JSON key associated with a property. * diff --git a/src/Core/Json/JsonSerializer.php b/src/Core/Json/JsonSerializer.php index 0a31ab9e..dfcdec8e 100644 --- a/src/Core/Json/JsonSerializer.php +++ b/src/Core/Json/JsonSerializer.php @@ -41,9 +41,9 @@ public static function serializeDateTime(DateTime $date): string /** * Serializes an array based on type annotations (either a list or map). * - * @param mixed[]|array $data The array to be serialized. - * @param mixed[]|array $type The type definition from the annotation. - * @return mixed[]|array The serialized array. + * @param array $data The array to be serialized. + * @param array $type The type definition from the annotation. + * @return array The serialized array. * @throws JsonException If serialization fails. */ public static function serializeArray(array $data, array $type): array @@ -71,7 +71,7 @@ private static function serializeValue(mixed $data, mixed $type): mixed return self::serializeArray((array)$data, $type); } - if (gettype($type) != "string") { + if (gettype($type) !== "string") { throw new JsonException("Unexpected non-string type."); } @@ -159,8 +159,8 @@ public static function serializeObject(object $data): mixed /** * Serializes a map (associative array) with defined key and value types. * - * @param array $data The associative array to serialize. - * @param array $type The type definition for the map. + * @param array $data The associative array to serialize. + * @param array $type The type definition for the map. * @return array The serialized map. * @throws JsonException If serialization fails. */ @@ -170,11 +170,13 @@ private static function serializeMap(array $data, array $type): array if ($keyType === null) { throw new JsonException("Unexpected no key in ArrayType."); } + $keyType = (string) $keyType; $valueType = $type[$keyType]; + /** @var array $result */ $result = []; foreach ($data as $key => $item) { - $key = Utils::castKey($key, $keyType); + $key = (string) Utils::castKey($key, $keyType); $result[$key] = self::serializeValue($item, $valueType); } @@ -184,14 +186,15 @@ private static function serializeMap(array $data, array $type): array /** * Serializes a list (indexed array) where only the value type is defined. * - * @param array $data The list to serialize. - * @param array $type The type definition for the list. + * @param array $data The list to serialize. + * @param array $type The type definition for the list. * @return array The serialized list. * @throws JsonException If serialization fails. */ private static function serializeList(array $data, array $type): array { $valueType = $type[0]; + /** @var array */ return array_map(fn ($item) => self::serializeValue($item, $valueType), $data); } } diff --git a/src/Core/Json/Utils.php b/src/Core/Json/Utils.php index db7fa658..bf47e1d9 100644 --- a/src/Core/Json/Utils.php +++ b/src/Core/Json/Utils.php @@ -11,7 +11,7 @@ class Utils /** * Determines if the given type represents a map. * - * @param mixed[]|array $type The type definition from the annotation. + * @param array $type The type definition from the annotation. * @return bool True if the type is a map, false if it's a list. */ public static function isMapType(array $type): bool @@ -24,19 +24,20 @@ public static function isMapType(array $type): bool * * @param mixed $key The key to be cast. * @param string $keyType The type to cast the key to ('string', 'integer', 'float'). - * @return mixed The casted key. + * @return int|string The casted key. * @throws JsonException */ - public static function castKey(mixed $key, string $keyType): mixed + public static function castKey(mixed $key, string $keyType): int|string { if (!is_scalar($key)) { throw new JsonException("Key must be a scalar type."); } return match ($keyType) { 'integer' => (int)$key, - 'float' => (float)$key, + // PHP arrays don't support float keys; truncate to int + 'float' => (int)$key, 'string' => (string)$key, - default => $key, + default => is_int($key) ? $key : (string)$key, }; } diff --git a/src/Core/Multipart/MultipartFormData.php b/src/Core/Multipart/MultipartFormData.php index 1b83c496..c7e7b5dd 100644 --- a/src/Core/Multipart/MultipartFormData.php +++ b/src/Core/Multipart/MultipartFormData.php @@ -2,6 +2,7 @@ namespace Square\Core\Multipart; +use Http\Message\MultipartStream\MultipartStreamBuilder; use Psr\Http\Message\StreamInterface; class MultipartFormData @@ -23,8 +24,8 @@ public function add( string|int|bool|float|StreamInterface $value, ?string $contentType = null, ): void { - $headers = $contentType != null ? ['Content-Type' => $contentType] : null; - self::addPart( + $headers = $contentType !== null ? ['Content-Type' => $contentType] : null; + $this->addPart( new MultipartFormDataPart( name: $name, value: $value, @@ -44,18 +45,14 @@ public function addPart(MultipartFormDataPart $part): void } /** - * Converts the multipart form data into an array suitable - * for Guzzle's multipart form data. + * Adds all parts to a MultipartStreamBuilder. * - * @return array - * }> + * @param MultipartStreamBuilder $builder */ - public function toArray(): array + public function addToBuilder(MultipartStreamBuilder $builder): void { - return array_map(fn ($part) => $part->toArray(), $this->parts); + foreach ($this->parts as $part) { + $part->addToBuilder($builder); + } } } diff --git a/src/Core/Multipart/MultipartFormDataPart.php b/src/Core/Multipart/MultipartFormDataPart.php index 8a55cc9c..37aafbb6 100644 --- a/src/Core/Multipart/MultipartFormDataPart.php +++ b/src/Core/Multipart/MultipartFormDataPart.php @@ -2,7 +2,7 @@ namespace Square\Core\Multipart; -use GuzzleHttp\Psr7\Utils; +use Http\Message\MultipartStream\MultipartStreamBuilder; use Psr\Http\Message\StreamInterface; class MultipartFormDataPart @@ -13,9 +13,9 @@ class MultipartFormDataPart private string $name; /** - * @var StreamInterface + * @var StreamInterface|string */ - private StreamInterface $contents; + private StreamInterface|string $contents; /** * @var ?string @@ -40,37 +40,23 @@ public function __construct( ?array $headers = null ) { $this->name = $name; - $this->contents = Utils::streamFor($value); + $this->contents = $value instanceof StreamInterface ? $value : (string)$value; $this->filename = $filename; $this->headers = $headers; } /** - * Converts the multipart form data part into an array suitable - * for Guzzle's multipart form data. + * Adds this part to a MultipartStreamBuilder. * - * @return array{ - * name: string, - * contents: StreamInterface, - * filename?: string, - * headers?: array - * } + * @param MultipartStreamBuilder $builder */ - public function toArray(): array + public function addToBuilder(MultipartStreamBuilder $builder): void { - $formData = [ - 'name' => $this->name, - 'contents' => $this->contents, - ]; + $options = array_filter([ + 'filename' => $this->filename, + 'headers' => $this->headers, + ], fn ($value) => $value !== null); - if ($this->filename != null) { - $formData['filename'] = $this->filename; - } - - if ($this->headers != null) { - $formData['headers'] = $this->headers; - } - - return $formData; + $builder->addResource($this->name, $this->contents, $options); } } diff --git a/src/Core/Pagination/CursorPager.php b/src/Core/Pagination/CursorPager.php index d029fdc0..c5220215 100644 --- a/src/Core/Pagination/CursorPager.php +++ b/src/Core/Pagination/CursorPager.php @@ -5,7 +5,7 @@ use Generator; /** - * @template TRequest + * @template TRequest of object * @template TResponse * @template TItem * @template TCursor diff --git a/src/Core/Pagination/OffsetPager.php b/src/Core/Pagination/OffsetPager.php index 9653a636..df6d6b20 100644 --- a/src/Core/Pagination/OffsetPager.php +++ b/src/Core/Pagination/OffsetPager.php @@ -5,7 +5,7 @@ use Generator; /** - * @template TRequest + * @template TRequest of object * @template TResponse * @template TItem * @extends Pager diff --git a/src/Customers/Cards/CardsClient.php b/src/Customers/Cards/CardsClient.php index 6e9cca3e..c953428b 100644 --- a/src/Customers/Cards/CardsClient.php +++ b/src/Customers/Cards/CardsClient.php @@ -2,7 +2,7 @@ namespace Square\Customers\Cards; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Customers\Cards\Requests\CreateCustomerCardRequest; use Square\Types\CreateCustomerCardResponse; @@ -12,7 +12,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Customers\Cards\Requests\DeleteCardsRequest; use Square\Types\DeleteCustomerCardResponse; @@ -93,16 +92,6 @@ public function create(CreateCustomerCardRequest $request, ?array $options = nul } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -148,16 +137,6 @@ public function delete(DeleteCardsRequest $request, ?array $options = null): Del } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Customers/Cards/Requests/CreateCustomerCardRequest.php b/src/Customers/Cards/Requests/CreateCustomerCardRequest.php index 94715a37..9f5a232f 100644 --- a/src/Customers/Cards/Requests/CreateCustomerCardRequest.php +++ b/src/Customers/Cards/Requests/CreateCustomerCardRequest.php @@ -89,6 +89,7 @@ public function getCustomerId(): string public function setCustomerId(string $value): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -106,6 +107,7 @@ public function getCardNonce(): string public function setCardNonce(string $value): self { $this->cardNonce = $value; + $this->_setField('cardNonce'); return $this; } @@ -123,6 +125,7 @@ public function getBillingAddress(): ?Address public function setBillingAddress(?Address $value = null): self { $this->billingAddress = $value; + $this->_setField('billingAddress'); return $this; } @@ -140,6 +143,7 @@ public function getCardholderName(): ?string public function setCardholderName(?string $value = null): self { $this->cardholderName = $value; + $this->_setField('cardholderName'); return $this; } @@ -157,6 +161,7 @@ public function getVerificationToken(): ?string public function setVerificationToken(?string $value = null): self { $this->verificationToken = $value; + $this->_setField('verificationToken'); return $this; } } diff --git a/src/Customers/Cards/Requests/DeleteCardsRequest.php b/src/Customers/Cards/Requests/DeleteCardsRequest.php index ee4b1476..5ce3d75a 100644 --- a/src/Customers/Cards/Requests/DeleteCardsRequest.php +++ b/src/Customers/Cards/Requests/DeleteCardsRequest.php @@ -43,6 +43,7 @@ public function getCustomerId(): string public function setCustomerId(string $value): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -60,6 +61,7 @@ public function getCardId(): string public function setCardId(string $value): self { $this->cardId = $value; + $this->_setField('cardId'); return $this; } } diff --git a/src/Customers/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.php b/src/Customers/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.php index fa339b57..0bf567ab 100644 --- a/src/Customers/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.php +++ b/src/Customers/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.php @@ -2,7 +2,7 @@ namespace Square\Customers\CustomAttributeDefinitions; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Customers\CustomAttributeDefinitions\Requests\ListCustomAttributeDefinitionsRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Customers\CustomAttributeDefinitions\Requests\GetCustomAttributeDefinitionsRequest; use Square\Types\GetCustomerCustomAttributeDefinitionResponse; @@ -144,16 +143,6 @@ public function create(CreateCustomerCustomAttributeDefinitionRequest $request, } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -208,16 +197,6 @@ public function get(GetCustomAttributeDefinitionsRequest $request, ?array $optio } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -270,16 +249,6 @@ public function update(UpdateCustomerCustomAttributeDefinitionRequest $request, } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -330,16 +299,6 @@ public function delete(DeleteCustomAttributeDefinitionsRequest $request, ?array } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -399,16 +358,6 @@ public function batchUpsert(BatchUpsertCustomerCustomAttributesRequest $request, } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -467,16 +416,6 @@ private function _list(ListCustomAttributeDefinitionsRequest $request = new List } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Customers/CustomAttributeDefinitions/Requests/BatchUpsertCustomerCustomAttributesRequest.php b/src/Customers/CustomAttributeDefinitions/Requests/BatchUpsertCustomerCustomAttributesRequest.php index 28e236b8..4c301d29 100644 --- a/src/Customers/CustomAttributeDefinitions/Requests/BatchUpsertCustomerCustomAttributesRequest.php +++ b/src/Customers/CustomAttributeDefinitions/Requests/BatchUpsertCustomerCustomAttributesRequest.php @@ -44,6 +44,7 @@ public function getValues(): array public function setValues(array $value): self { $this->values = $value; + $this->_setField('values'); return $this; } } diff --git a/src/Customers/CustomAttributeDefinitions/Requests/CreateCustomerCustomAttributeDefinitionRequest.php b/src/Customers/CustomAttributeDefinitions/Requests/CreateCustomerCustomAttributeDefinitionRequest.php index 066f3e38..ea2ecc8a 100644 --- a/src/Customers/CustomAttributeDefinitions/Requests/CreateCustomerCustomAttributeDefinitionRequest.php +++ b/src/Customers/CustomAttributeDefinitions/Requests/CreateCustomerCustomAttributeDefinitionRequest.php @@ -57,6 +57,7 @@ public function getCustomAttributeDefinition(): CustomAttributeDefinition public function setCustomAttributeDefinition(CustomAttributeDefinition $value): self { $this->customAttributeDefinition = $value; + $this->_setField('customAttributeDefinition'); return $this; } @@ -74,6 +75,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } } diff --git a/src/Customers/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.php b/src/Customers/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.php index f3293557..11c8a235 100644 --- a/src/Customers/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.php +++ b/src/Customers/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.php @@ -36,6 +36,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } } diff --git a/src/Customers/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.php b/src/Customers/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.php index 4ad11c4d..1c0699ba 100644 --- a/src/Customers/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.php +++ b/src/Customers/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.php @@ -51,6 +51,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } @@ -68,6 +69,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } } diff --git a/src/Customers/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.php b/src/Customers/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.php index 8a59f09f..aa946a79 100644 --- a/src/Customers/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.php +++ b/src/Customers/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.php @@ -51,6 +51,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -68,6 +69,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } } diff --git a/src/Customers/CustomAttributeDefinitions/Requests/UpdateCustomerCustomAttributeDefinitionRequest.php b/src/Customers/CustomAttributeDefinitions/Requests/UpdateCustomerCustomAttributeDefinitionRequest.php index fe7bb45c..18bdd33b 100644 --- a/src/Customers/CustomAttributeDefinitions/Requests/UpdateCustomerCustomAttributeDefinitionRequest.php +++ b/src/Customers/CustomAttributeDefinitions/Requests/UpdateCustomerCustomAttributeDefinitionRequest.php @@ -73,6 +73,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } @@ -90,6 +91,7 @@ public function getCustomAttributeDefinition(): CustomAttributeDefinition public function setCustomAttributeDefinition(CustomAttributeDefinition $value): self { $this->customAttributeDefinition = $value; + $this->_setField('customAttributeDefinition'); return $this; } @@ -107,6 +109,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } } diff --git a/src/Customers/CustomAttributes/CustomAttributesClient.php b/src/Customers/CustomAttributes/CustomAttributesClient.php index fd76884f..905b7db9 100644 --- a/src/Customers/CustomAttributes/CustomAttributesClient.php +++ b/src/Customers/CustomAttributes/CustomAttributesClient.php @@ -2,7 +2,7 @@ namespace Square\Customers\CustomAttributes; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Customers\CustomAttributes\Requests\ListCustomAttributesRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Customers\CustomAttributes\Requests\UpsertCustomerCustomAttributeRequest; use Square\Types\UpsertCustomerCustomAttributeResponse; @@ -146,16 +145,6 @@ public function get(GetCustomAttributesRequest $request, ?array $options = null) } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -210,16 +199,6 @@ public function upsert(UpsertCustomerCustomAttributeRequest $request, ?array $op } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -269,16 +248,6 @@ public function delete(DeleteCustomAttributesRequest $request, ?array $options = } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -342,16 +311,6 @@ private function _list(ListCustomAttributesRequest $request, ?array $options = n } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Customers/CustomAttributes/Requests/DeleteCustomAttributesRequest.php b/src/Customers/CustomAttributes/Requests/DeleteCustomAttributesRequest.php index 1cfa9043..67c43060 100644 --- a/src/Customers/CustomAttributes/Requests/DeleteCustomAttributesRequest.php +++ b/src/Customers/CustomAttributes/Requests/DeleteCustomAttributesRequest.php @@ -47,6 +47,7 @@ public function getCustomerId(): string public function setCustomerId(string $value): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -64,6 +65,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } } diff --git a/src/Customers/CustomAttributes/Requests/GetCustomAttributesRequest.php b/src/Customers/CustomAttributes/Requests/GetCustomAttributesRequest.php index ed72937a..bc417635 100644 --- a/src/Customers/CustomAttributes/Requests/GetCustomAttributesRequest.php +++ b/src/Customers/CustomAttributes/Requests/GetCustomAttributesRequest.php @@ -70,6 +70,7 @@ public function getCustomerId(): string public function setCustomerId(string $value): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -87,6 +88,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } @@ -104,6 +106,7 @@ public function getWithDefinition(): ?bool public function setWithDefinition(?bool $value = null): self { $this->withDefinition = $value; + $this->_setField('withDefinition'); return $this; } @@ -121,6 +124,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } } diff --git a/src/Customers/CustomAttributes/Requests/ListCustomAttributesRequest.php b/src/Customers/CustomAttributes/Requests/ListCustomAttributesRequest.php index 56395b93..4a5d85a1 100644 --- a/src/Customers/CustomAttributes/Requests/ListCustomAttributesRequest.php +++ b/src/Customers/CustomAttributes/Requests/ListCustomAttributesRequest.php @@ -69,6 +69,7 @@ public function getCustomerId(): string public function setCustomerId(string $value): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -86,6 +87,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -103,6 +105,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -120,6 +123,7 @@ public function getWithDefinitions(): ?bool public function setWithDefinitions(?bool $value = null): self { $this->withDefinitions = $value; + $this->_setField('withDefinitions'); return $this; } } diff --git a/src/Customers/CustomAttributes/Requests/UpsertCustomerCustomAttributeRequest.php b/src/Customers/CustomAttributes/Requests/UpsertCustomerCustomAttributeRequest.php index 69db23bf..2417791f 100644 --- a/src/Customers/CustomAttributes/Requests/UpsertCustomerCustomAttributeRequest.php +++ b/src/Customers/CustomAttributes/Requests/UpsertCustomerCustomAttributeRequest.php @@ -77,6 +77,7 @@ public function getCustomerId(): string public function setCustomerId(string $value): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -94,6 +95,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } @@ -111,6 +113,7 @@ public function getCustomAttribute(): CustomAttribute public function setCustomAttribute(CustomAttribute $value): self { $this->customAttribute = $value; + $this->_setField('customAttribute'); return $this; } @@ -128,6 +131,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } } diff --git a/src/Customers/CustomersClient.php b/src/Customers/CustomersClient.php index a984980e..a3c88aa3 100644 --- a/src/Customers/CustomersClient.php +++ b/src/Customers/CustomersClient.php @@ -7,7 +7,7 @@ use Square\Customers\Segments\SegmentsClient; use Square\Customers\Cards\CardsClient; use Square\Customers\CustomAttributes\CustomAttributesClient; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Customers\Requests\ListCustomersRequest; use Square\Core\Pagination\Pager; @@ -22,7 +22,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Customers\Requests\BulkCreateCustomersRequest; use Square\Types\BulkCreateCustomersResponse; @@ -185,16 +184,6 @@ public function create(CreateCustomerRequest $request = new CreateCustomerReques } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -251,16 +240,6 @@ public function batchCreate(BulkCreateCustomersRequest $request, ?array $options } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -309,16 +288,6 @@ public function bulkDeleteCustomers(BulkDeleteCustomersRequest $request, ?array } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -367,16 +336,6 @@ public function bulkRetrieveCustomers(BulkRetrieveCustomersRequest $request, ?ar } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -425,16 +384,6 @@ public function bulkUpdateCustomers(BulkUpdateCustomersRequest $request, ?array } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -489,16 +438,6 @@ public function search(SearchCustomersRequest $request = new SearchCustomersRequ } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -544,16 +483,6 @@ public function get(GetCustomersRequest $request, ?array $options = null): GetCu } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -603,16 +532,6 @@ public function update(UpdateCustomerRequest $request, ?array $options = null): } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -665,16 +584,6 @@ public function delete(DeleteCustomersRequest $request, ?array $options = null): } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -741,16 +650,6 @@ private function _list(ListCustomersRequest $request = new ListCustomersRequest( } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Customers/Groups/GroupsClient.php b/src/Customers/Groups/GroupsClient.php index a3c4f356..ba70e06e 100644 --- a/src/Customers/Groups/GroupsClient.php +++ b/src/Customers/Groups/GroupsClient.php @@ -2,7 +2,7 @@ namespace Square\Customers\Groups; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Customers\Groups\Requests\ListGroupsRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Customers\Groups\Requests\GetGroupsRequest; use Square\Types\GetCustomerGroupResponse; @@ -133,16 +132,6 @@ public function create(CreateCustomerGroupRequest $request, ?array $options = nu } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -188,16 +177,6 @@ public function get(GetGroupsRequest $request, ?array $options = null): GetCusto } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -244,16 +223,6 @@ public function update(UpdateCustomerGroupRequest $request, ?array $options = nu } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -299,16 +268,6 @@ public function delete(DeleteGroupsRequest $request, ?array $options = null): De } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -357,16 +316,6 @@ public function add(AddGroupsRequest $request, ?array $options = null): AddGroup } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -415,16 +364,6 @@ public function remove(RemoveGroupsRequest $request, ?array $options = null): Re } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -478,16 +417,6 @@ private function _list(ListGroupsRequest $request = new ListGroupsRequest(), ?ar } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Customers/Groups/Requests/AddGroupsRequest.php b/src/Customers/Groups/Requests/AddGroupsRequest.php index b622c8f8..8337f056 100644 --- a/src/Customers/Groups/Requests/AddGroupsRequest.php +++ b/src/Customers/Groups/Requests/AddGroupsRequest.php @@ -43,6 +43,7 @@ public function getCustomerId(): string public function setCustomerId(string $value): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -60,6 +61,7 @@ public function getGroupId(): string public function setGroupId(string $value): self { $this->groupId = $value; + $this->_setField('groupId'); return $this; } } diff --git a/src/Customers/Groups/Requests/CreateCustomerGroupRequest.php b/src/Customers/Groups/Requests/CreateCustomerGroupRequest.php index eb238519..58e108b1 100644 --- a/src/Customers/Groups/Requests/CreateCustomerGroupRequest.php +++ b/src/Customers/Groups/Requests/CreateCustomerGroupRequest.php @@ -47,6 +47,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -64,6 +65,7 @@ public function getGroup(): CustomerGroup public function setGroup(CustomerGroup $value): self { $this->group = $value; + $this->_setField('group'); return $this; } } diff --git a/src/Customers/Groups/Requests/DeleteGroupsRequest.php b/src/Customers/Groups/Requests/DeleteGroupsRequest.php index aa05f0ae..c12faaa2 100644 --- a/src/Customers/Groups/Requests/DeleteGroupsRequest.php +++ b/src/Customers/Groups/Requests/DeleteGroupsRequest.php @@ -36,6 +36,7 @@ public function getGroupId(): string public function setGroupId(string $value): self { $this->groupId = $value; + $this->_setField('groupId'); return $this; } } diff --git a/src/Customers/Groups/Requests/GetGroupsRequest.php b/src/Customers/Groups/Requests/GetGroupsRequest.php index 8b6ac868..3394fd86 100644 --- a/src/Customers/Groups/Requests/GetGroupsRequest.php +++ b/src/Customers/Groups/Requests/GetGroupsRequest.php @@ -36,6 +36,7 @@ public function getGroupId(): string public function setGroupId(string $value): self { $this->groupId = $value; + $this->_setField('groupId'); return $this; } } diff --git a/src/Customers/Groups/Requests/ListGroupsRequest.php b/src/Customers/Groups/Requests/ListGroupsRequest.php index 9dff5e0a..fce5d415 100644 --- a/src/Customers/Groups/Requests/ListGroupsRequest.php +++ b/src/Customers/Groups/Requests/ListGroupsRequest.php @@ -53,6 +53,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -70,6 +71,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } } diff --git a/src/Customers/Groups/Requests/RemoveGroupsRequest.php b/src/Customers/Groups/Requests/RemoveGroupsRequest.php index 344bf015..80e17c44 100644 --- a/src/Customers/Groups/Requests/RemoveGroupsRequest.php +++ b/src/Customers/Groups/Requests/RemoveGroupsRequest.php @@ -43,6 +43,7 @@ public function getCustomerId(): string public function setCustomerId(string $value): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -60,6 +61,7 @@ public function getGroupId(): string public function setGroupId(string $value): self { $this->groupId = $value; + $this->_setField('groupId'); return $this; } } diff --git a/src/Customers/Groups/Requests/UpdateCustomerGroupRequest.php b/src/Customers/Groups/Requests/UpdateCustomerGroupRequest.php index 37cb3896..d360ecd9 100644 --- a/src/Customers/Groups/Requests/UpdateCustomerGroupRequest.php +++ b/src/Customers/Groups/Requests/UpdateCustomerGroupRequest.php @@ -46,6 +46,7 @@ public function getGroupId(): string public function setGroupId(string $value): self { $this->groupId = $value; + $this->_setField('groupId'); return $this; } @@ -63,6 +64,7 @@ public function getGroup(): CustomerGroup public function setGroup(CustomerGroup $value): self { $this->group = $value; + $this->_setField('group'); return $this; } } diff --git a/src/Customers/Requests/BulkCreateCustomersRequest.php b/src/Customers/Requests/BulkCreateCustomersRequest.php index 06c914f8..0e8a7e7d 100644 --- a/src/Customers/Requests/BulkCreateCustomersRequest.php +++ b/src/Customers/Requests/BulkCreateCustomersRequest.php @@ -47,6 +47,7 @@ public function getCustomers(): array public function setCustomers(array $value): self { $this->customers = $value; + $this->_setField('customers'); return $this; } } diff --git a/src/Customers/Requests/BulkDeleteCustomersRequest.php b/src/Customers/Requests/BulkDeleteCustomersRequest.php index fdf1ae70..a8f2f13f 100644 --- a/src/Customers/Requests/BulkDeleteCustomersRequest.php +++ b/src/Customers/Requests/BulkDeleteCustomersRequest.php @@ -39,6 +39,7 @@ public function getCustomerIds(): array public function setCustomerIds(array $value): self { $this->customerIds = $value; + $this->_setField('customerIds'); return $this; } } diff --git a/src/Customers/Requests/BulkRetrieveCustomersRequest.php b/src/Customers/Requests/BulkRetrieveCustomersRequest.php index b245e610..2ea41165 100644 --- a/src/Customers/Requests/BulkRetrieveCustomersRequest.php +++ b/src/Customers/Requests/BulkRetrieveCustomersRequest.php @@ -39,6 +39,7 @@ public function getCustomerIds(): array public function setCustomerIds(array $value): self { $this->customerIds = $value; + $this->_setField('customerIds'); return $this; } } diff --git a/src/Customers/Requests/BulkUpdateCustomersRequest.php b/src/Customers/Requests/BulkUpdateCustomersRequest.php index 2efae9c4..cac1f78d 100644 --- a/src/Customers/Requests/BulkUpdateCustomersRequest.php +++ b/src/Customers/Requests/BulkUpdateCustomersRequest.php @@ -49,6 +49,7 @@ public function getCustomers(): array public function setCustomers(array $value): self { $this->customers = $value; + $this->_setField('customers'); return $this; } } diff --git a/src/Customers/Requests/CreateCustomerRequest.php b/src/Customers/Requests/CreateCustomerRequest.php index 03d17a4c..e539d2df 100644 --- a/src/Customers/Requests/CreateCustomerRequest.php +++ b/src/Customers/Requests/CreateCustomerRequest.php @@ -172,6 +172,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -189,6 +190,7 @@ public function getGivenName(): ?string public function setGivenName(?string $value = null): self { $this->givenName = $value; + $this->_setField('givenName'); return $this; } @@ -206,6 +208,7 @@ public function getFamilyName(): ?string public function setFamilyName(?string $value = null): self { $this->familyName = $value; + $this->_setField('familyName'); return $this; } @@ -223,6 +226,7 @@ public function getCompanyName(): ?string public function setCompanyName(?string $value = null): self { $this->companyName = $value; + $this->_setField('companyName'); return $this; } @@ -240,6 +244,7 @@ public function getNickname(): ?string public function setNickname(?string $value = null): self { $this->nickname = $value; + $this->_setField('nickname'); return $this; } @@ -257,6 +262,7 @@ public function getEmailAddress(): ?string public function setEmailAddress(?string $value = null): self { $this->emailAddress = $value; + $this->_setField('emailAddress'); return $this; } @@ -274,6 +280,7 @@ public function getAddress(): ?Address public function setAddress(?Address $value = null): self { $this->address = $value; + $this->_setField('address'); return $this; } @@ -291,6 +298,7 @@ public function getPhoneNumber(): ?string public function setPhoneNumber(?string $value = null): self { $this->phoneNumber = $value; + $this->_setField('phoneNumber'); return $this; } @@ -308,6 +316,7 @@ public function getReferenceId(): ?string public function setReferenceId(?string $value = null): self { $this->referenceId = $value; + $this->_setField('referenceId'); return $this; } @@ -325,6 +334,7 @@ public function getNote(): ?string public function setNote(?string $value = null): self { $this->note = $value; + $this->_setField('note'); return $this; } @@ -342,6 +352,7 @@ public function getBirthday(): ?string public function setBirthday(?string $value = null): self { $this->birthday = $value; + $this->_setField('birthday'); return $this; } @@ -359,6 +370,7 @@ public function getTaxIds(): ?CustomerTaxIds public function setTaxIds(?CustomerTaxIds $value = null): self { $this->taxIds = $value; + $this->_setField('taxIds'); return $this; } } diff --git a/src/Customers/Requests/DeleteCustomersRequest.php b/src/Customers/Requests/DeleteCustomersRequest.php index 3031d46d..88605930 100644 --- a/src/Customers/Requests/DeleteCustomersRequest.php +++ b/src/Customers/Requests/DeleteCustomersRequest.php @@ -47,6 +47,7 @@ public function getCustomerId(): string public function setCustomerId(string $value): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -64,6 +65,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } } diff --git a/src/Customers/Requests/GetCustomersRequest.php b/src/Customers/Requests/GetCustomersRequest.php index 7a427bed..b22eaccd 100644 --- a/src/Customers/Requests/GetCustomersRequest.php +++ b/src/Customers/Requests/GetCustomersRequest.php @@ -36,6 +36,7 @@ public function getCustomerId(): string public function setCustomerId(string $value): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } } diff --git a/src/Customers/Requests/ListCustomersRequest.php b/src/Customers/Requests/ListCustomersRequest.php index 8750e4a4..3d4581d4 100644 --- a/src/Customers/Requests/ListCustomersRequest.php +++ b/src/Customers/Requests/ListCustomersRequest.php @@ -89,6 +89,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -106,6 +107,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -123,6 +125,7 @@ public function getSortField(): ?string public function setSortField(?string $value = null): self { $this->sortField = $value; + $this->_setField('sortField'); return $this; } @@ -140,6 +143,7 @@ public function getSortOrder(): ?string public function setSortOrder(?string $value = null): self { $this->sortOrder = $value; + $this->_setField('sortOrder'); return $this; } @@ -157,6 +161,7 @@ public function getCount(): ?bool public function setCount(?bool $value = null): self { $this->count = $value; + $this->_setField('count'); return $this; } } diff --git a/src/Customers/Requests/SearchCustomersRequest.php b/src/Customers/Requests/SearchCustomersRequest.php index 856cbcbe..ccf30036 100644 --- a/src/Customers/Requests/SearchCustomersRequest.php +++ b/src/Customers/Requests/SearchCustomersRequest.php @@ -80,6 +80,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -97,6 +98,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -114,6 +116,7 @@ public function getQuery(): ?CustomerQuery public function setQuery(?CustomerQuery $value = null): self { $this->query = $value; + $this->_setField('query'); return $this; } @@ -131,6 +134,7 @@ public function getCount(): ?bool public function setCount(?bool $value = null): self { $this->count = $value; + $this->_setField('count'); return $this; } } diff --git a/src/Customers/Requests/UpdateCustomerRequest.php b/src/Customers/Requests/UpdateCustomerRequest.php index 00269b1a..4aefc633 100644 --- a/src/Customers/Requests/UpdateCustomerRequest.php +++ b/src/Customers/Requests/UpdateCustomerRequest.php @@ -181,6 +181,7 @@ public function getCustomerId(): string public function setCustomerId(string $value): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -198,6 +199,7 @@ public function getGivenName(): ?string public function setGivenName(?string $value = null): self { $this->givenName = $value; + $this->_setField('givenName'); return $this; } @@ -215,6 +217,7 @@ public function getFamilyName(): ?string public function setFamilyName(?string $value = null): self { $this->familyName = $value; + $this->_setField('familyName'); return $this; } @@ -232,6 +235,7 @@ public function getCompanyName(): ?string public function setCompanyName(?string $value = null): self { $this->companyName = $value; + $this->_setField('companyName'); return $this; } @@ -249,6 +253,7 @@ public function getNickname(): ?string public function setNickname(?string $value = null): self { $this->nickname = $value; + $this->_setField('nickname'); return $this; } @@ -266,6 +271,7 @@ public function getEmailAddress(): ?string public function setEmailAddress(?string $value = null): self { $this->emailAddress = $value; + $this->_setField('emailAddress'); return $this; } @@ -283,6 +289,7 @@ public function getAddress(): ?Address public function setAddress(?Address $value = null): self { $this->address = $value; + $this->_setField('address'); return $this; } @@ -300,6 +307,7 @@ public function getPhoneNumber(): ?string public function setPhoneNumber(?string $value = null): self { $this->phoneNumber = $value; + $this->_setField('phoneNumber'); return $this; } @@ -317,6 +325,7 @@ public function getReferenceId(): ?string public function setReferenceId(?string $value = null): self { $this->referenceId = $value; + $this->_setField('referenceId'); return $this; } @@ -334,6 +343,7 @@ public function getNote(): ?string public function setNote(?string $value = null): self { $this->note = $value; + $this->_setField('note'); return $this; } @@ -351,6 +361,7 @@ public function getBirthday(): ?string public function setBirthday(?string $value = null): self { $this->birthday = $value; + $this->_setField('birthday'); return $this; } @@ -368,6 +379,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -385,6 +397,7 @@ public function getTaxIds(): ?CustomerTaxIds public function setTaxIds(?CustomerTaxIds $value = null): self { $this->taxIds = $value; + $this->_setField('taxIds'); return $this; } } diff --git a/src/Customers/Segments/Requests/GetSegmentsRequest.php b/src/Customers/Segments/Requests/GetSegmentsRequest.php index 2ddc4378..e7b81020 100644 --- a/src/Customers/Segments/Requests/GetSegmentsRequest.php +++ b/src/Customers/Segments/Requests/GetSegmentsRequest.php @@ -36,6 +36,7 @@ public function getSegmentId(): string public function setSegmentId(string $value): self { $this->segmentId = $value; + $this->_setField('segmentId'); return $this; } } diff --git a/src/Customers/Segments/Requests/ListSegmentsRequest.php b/src/Customers/Segments/Requests/ListSegmentsRequest.php index bff69246..ef12689b 100644 --- a/src/Customers/Segments/Requests/ListSegmentsRequest.php +++ b/src/Customers/Segments/Requests/ListSegmentsRequest.php @@ -53,6 +53,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -70,6 +71,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } } diff --git a/src/Customers/Segments/SegmentsClient.php b/src/Customers/Segments/SegmentsClient.php index a332846f..c40fbede 100644 --- a/src/Customers/Segments/SegmentsClient.php +++ b/src/Customers/Segments/SegmentsClient.php @@ -2,7 +2,7 @@ namespace Square\Customers\Segments; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Customers\Segments\Requests\ListSegmentsRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; class SegmentsClient @@ -120,16 +119,6 @@ public function get(GetSegmentsRequest $request, ?array $options = null): GetCus } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -183,16 +172,6 @@ private function _list(ListSegmentsRequest $request = new ListSegmentsRequest(), } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Devices/Codes/CodesClient.php b/src/Devices/Codes/CodesClient.php index d0a42dc3..ea42bdbc 100644 --- a/src/Devices/Codes/CodesClient.php +++ b/src/Devices/Codes/CodesClient.php @@ -2,7 +2,7 @@ namespace Square\Devices\Codes; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Devices\Codes\Requests\ListCodesRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Devices\Codes\Requests\GetCodesRequest; use Square\Types\GetDeviceCodeResponse; @@ -124,16 +123,6 @@ public function create(CreateDeviceCodeRequest $request, ?array $options = null) } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -179,16 +168,6 @@ public function get(GetCodesRequest $request, ?array $options = null): GetDevice } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -248,16 +227,6 @@ private function _list(ListCodesRequest $request = new ListCodesRequest(), ?arra } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Devices/Codes/Requests/CreateDeviceCodeRequest.php b/src/Devices/Codes/Requests/CreateDeviceCodeRequest.php index 6868a336..b25c4bca 100644 --- a/src/Devices/Codes/Requests/CreateDeviceCodeRequest.php +++ b/src/Devices/Codes/Requests/CreateDeviceCodeRequest.php @@ -52,6 +52,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -69,6 +70,7 @@ public function getDeviceCode(): DeviceCode public function setDeviceCode(DeviceCode $value): self { $this->deviceCode = $value; + $this->_setField('deviceCode'); return $this; } } diff --git a/src/Devices/Codes/Requests/GetCodesRequest.php b/src/Devices/Codes/Requests/GetCodesRequest.php index 4ddb4f5c..f62ca49d 100644 --- a/src/Devices/Codes/Requests/GetCodesRequest.php +++ b/src/Devices/Codes/Requests/GetCodesRequest.php @@ -36,6 +36,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } } diff --git a/src/Devices/Codes/Requests/ListCodesRequest.php b/src/Devices/Codes/Requests/ListCodesRequest.php index d43314e3..5089fa9a 100644 --- a/src/Devices/Codes/Requests/ListCodesRequest.php +++ b/src/Devices/Codes/Requests/ListCodesRequest.php @@ -72,6 +72,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -89,6 +90,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -106,6 +108,7 @@ public function getProductType(): ?string public function setProductType(?string $value = null): self { $this->productType = $value; + $this->_setField('productType'); return $this; } @@ -123,6 +126,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } } diff --git a/src/Devices/DevicesClient.php b/src/Devices/DevicesClient.php index 3a1880fb..3d03eb18 100644 --- a/src/Devices/DevicesClient.php +++ b/src/Devices/DevicesClient.php @@ -3,7 +3,7 @@ namespace Square\Devices; use Square\Devices\Codes\CodesClient; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Devices\Requests\ListDevicesRequest; use Square\Core\Pagination\Pager; @@ -18,7 +18,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; class DevicesClient @@ -128,16 +127,6 @@ public function get(GetDevicesRequest $request, ?array $options = null): GetDevi } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -198,16 +187,6 @@ private function _list(ListDevicesRequest $request = new ListDevicesRequest(), ? } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Devices/Requests/GetDevicesRequest.php b/src/Devices/Requests/GetDevicesRequest.php index 3f5bc37d..d0752996 100644 --- a/src/Devices/Requests/GetDevicesRequest.php +++ b/src/Devices/Requests/GetDevicesRequest.php @@ -36,6 +36,7 @@ public function getDeviceId(): string public function setDeviceId(string $value): self { $this->deviceId = $value; + $this->_setField('deviceId'); return $this; } } diff --git a/src/Devices/Requests/ListDevicesRequest.php b/src/Devices/Requests/ListDevicesRequest.php index cf9c74c7..b58afe42 100644 --- a/src/Devices/Requests/ListDevicesRequest.php +++ b/src/Devices/Requests/ListDevicesRequest.php @@ -66,6 +66,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -83,6 +84,7 @@ public function getSortOrder(): ?string public function setSortOrder(?string $value = null): self { $this->sortOrder = $value; + $this->_setField('sortOrder'); return $this; } @@ -100,6 +102,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -117,6 +120,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } } diff --git a/src/Disputes/DisputesClient.php b/src/Disputes/DisputesClient.php index c816ddcb..d58ce0e1 100644 --- a/src/Disputes/DisputesClient.php +++ b/src/Disputes/DisputesClient.php @@ -3,7 +3,7 @@ namespace Square\Disputes; use Square\Disputes\Evidence\EvidenceClient; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Disputes\Requests\ListDisputesRequest; use Square\Core\Pagination\Pager; @@ -18,7 +18,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Disputes\Requests\AcceptDisputesRequest; use Square\Types\AcceptDisputeResponse; @@ -137,16 +136,6 @@ public function get(GetDisputesRequest $request, ?array $options = null): GetDis } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -196,16 +185,6 @@ public function accept(AcceptDisputesRequest $request, ?array $options = null): } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -268,16 +247,6 @@ public function createEvidenceFile(CreateEvidenceFileDisputesRequest $request, ? } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -324,16 +293,6 @@ public function createEvidenceText(CreateDisputeEvidenceTextRequest $request, ?a } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -385,16 +344,6 @@ public function submitEvidence(SubmitEvidenceDisputesRequest $request, ?array $o } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -451,16 +400,6 @@ private function _list(ListDisputesRequest $request = new ListDisputesRequest(), } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Disputes/Evidence/EvidenceClient.php b/src/Disputes/Evidence/EvidenceClient.php index fe64cc1f..2ea2af1e 100644 --- a/src/Disputes/Evidence/EvidenceClient.php +++ b/src/Disputes/Evidence/EvidenceClient.php @@ -2,7 +2,7 @@ namespace Square\Disputes\Evidence; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Disputes\Evidence\Requests\ListEvidenceRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Disputes\Evidence\Requests\DeleteEvidenceRequest; use Square\Types\DeleteDisputeEvidenceResponse; @@ -124,16 +123,6 @@ public function get(GetEvidenceRequest $request, ?array $options = null): GetDis } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -180,16 +169,6 @@ public function delete(DeleteEvidenceRequest $request, ?array $options = null): } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -240,16 +219,6 @@ private function _list(ListEvidenceRequest $request, ?array $options = null): Li } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Disputes/Evidence/Requests/DeleteEvidenceRequest.php b/src/Disputes/Evidence/Requests/DeleteEvidenceRequest.php index eaee90bd..fcc91b38 100644 --- a/src/Disputes/Evidence/Requests/DeleteEvidenceRequest.php +++ b/src/Disputes/Evidence/Requests/DeleteEvidenceRequest.php @@ -43,6 +43,7 @@ public function getDisputeId(): string public function setDisputeId(string $value): self { $this->disputeId = $value; + $this->_setField('disputeId'); return $this; } @@ -60,6 +61,7 @@ public function getEvidenceId(): string public function setEvidenceId(string $value): self { $this->evidenceId = $value; + $this->_setField('evidenceId'); return $this; } } diff --git a/src/Disputes/Evidence/Requests/GetEvidenceRequest.php b/src/Disputes/Evidence/Requests/GetEvidenceRequest.php index e54023a3..deb843db 100644 --- a/src/Disputes/Evidence/Requests/GetEvidenceRequest.php +++ b/src/Disputes/Evidence/Requests/GetEvidenceRequest.php @@ -43,6 +43,7 @@ public function getDisputeId(): string public function setDisputeId(string $value): self { $this->disputeId = $value; + $this->_setField('disputeId'); return $this; } @@ -60,6 +61,7 @@ public function getEvidenceId(): string public function setEvidenceId(string $value): self { $this->evidenceId = $value; + $this->_setField('evidenceId'); return $this; } } diff --git a/src/Disputes/Evidence/Requests/ListEvidenceRequest.php b/src/Disputes/Evidence/Requests/ListEvidenceRequest.php index d2bd4f08..3d080b0a 100644 --- a/src/Disputes/Evidence/Requests/ListEvidenceRequest.php +++ b/src/Disputes/Evidence/Requests/ListEvidenceRequest.php @@ -47,6 +47,7 @@ public function getDisputeId(): string public function setDisputeId(string $value): self { $this->disputeId = $value; + $this->_setField('disputeId'); return $this; } @@ -64,6 +65,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } } diff --git a/src/Disputes/Requests/AcceptDisputesRequest.php b/src/Disputes/Requests/AcceptDisputesRequest.php index eb2339e9..6538a697 100644 --- a/src/Disputes/Requests/AcceptDisputesRequest.php +++ b/src/Disputes/Requests/AcceptDisputesRequest.php @@ -36,6 +36,7 @@ public function getDisputeId(): string public function setDisputeId(string $value): self { $this->disputeId = $value; + $this->_setField('disputeId'); return $this; } } diff --git a/src/Disputes/Requests/CreateDisputeEvidenceTextRequest.php b/src/Disputes/Requests/CreateDisputeEvidenceTextRequest.php index e460629a..54d8f92b 100644 --- a/src/Disputes/Requests/CreateDisputeEvidenceTextRequest.php +++ b/src/Disputes/Requests/CreateDisputeEvidenceTextRequest.php @@ -65,6 +65,7 @@ public function getDisputeId(): string public function setDisputeId(string $value): self { $this->disputeId = $value; + $this->_setField('disputeId'); return $this; } @@ -82,6 +83,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -99,6 +101,7 @@ public function getEvidenceType(): ?string public function setEvidenceType(?string $value = null): self { $this->evidenceType = $value; + $this->_setField('evidenceType'); return $this; } @@ -116,6 +119,7 @@ public function getEvidenceText(): string public function setEvidenceText(string $value): self { $this->evidenceText = $value; + $this->_setField('evidenceText'); return $this; } } diff --git a/src/Disputes/Requests/CreateEvidenceFileDisputesRequest.php b/src/Disputes/Requests/CreateEvidenceFileDisputesRequest.php index ee838973..83602847 100644 --- a/src/Disputes/Requests/CreateEvidenceFileDisputesRequest.php +++ b/src/Disputes/Requests/CreateEvidenceFileDisputesRequest.php @@ -54,6 +54,7 @@ public function getDisputeId(): string public function setDisputeId(string $value): self { $this->disputeId = $value; + $this->_setField('disputeId'); return $this; } @@ -71,6 +72,7 @@ public function getRequest(): ?CreateDisputeEvidenceFileRequest public function setRequest(?CreateDisputeEvidenceFileRequest $value = null): self { $this->request = $value; + $this->_setField('request'); return $this; } @@ -88,6 +90,7 @@ public function getImageFile(): ?File public function setImageFile(?File $value = null): self { $this->imageFile = $value; + $this->_setField('imageFile'); return $this; } } diff --git a/src/Disputes/Requests/GetDisputesRequest.php b/src/Disputes/Requests/GetDisputesRequest.php index 8cd12927..21a0bd31 100644 --- a/src/Disputes/Requests/GetDisputesRequest.php +++ b/src/Disputes/Requests/GetDisputesRequest.php @@ -36,6 +36,7 @@ public function getDisputeId(): string public function setDisputeId(string $value): self { $this->disputeId = $value; + $this->_setField('disputeId'); return $this; } } diff --git a/src/Disputes/Requests/ListDisputesRequest.php b/src/Disputes/Requests/ListDisputesRequest.php index a2287b66..ea0acff8 100644 --- a/src/Disputes/Requests/ListDisputesRequest.php +++ b/src/Disputes/Requests/ListDisputesRequest.php @@ -58,6 +58,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -75,6 +76,7 @@ public function getStates(): ?string public function setStates(?string $value = null): self { $this->states = $value; + $this->_setField('states'); return $this; } @@ -92,6 +94,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } } diff --git a/src/Disputes/Requests/SubmitEvidenceDisputesRequest.php b/src/Disputes/Requests/SubmitEvidenceDisputesRequest.php index 4de64887..7c1714dd 100644 --- a/src/Disputes/Requests/SubmitEvidenceDisputesRequest.php +++ b/src/Disputes/Requests/SubmitEvidenceDisputesRequest.php @@ -36,6 +36,7 @@ public function getDisputeId(): string public function setDisputeId(string $value): self { $this->disputeId = $value; + $this->_setField('disputeId'); return $this; } } diff --git a/src/Employees/EmployeesClient.php b/src/Employees/EmployeesClient.php index b4ab48bd..903ca8d7 100644 --- a/src/Employees/EmployeesClient.php +++ b/src/Employees/EmployeesClient.php @@ -2,7 +2,7 @@ namespace Square\Employees; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Employees\Requests\ListEmployeesRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; class EmployeesClient @@ -120,16 +119,6 @@ public function get(GetEmployeesRequest $request, ?array $options = null): GetEm } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -189,16 +178,6 @@ private function _list(ListEmployeesRequest $request = new ListEmployeesRequest( } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Employees/Requests/GetEmployeesRequest.php b/src/Employees/Requests/GetEmployeesRequest.php index 53f8a9e7..a4f891bd 100644 --- a/src/Employees/Requests/GetEmployeesRequest.php +++ b/src/Employees/Requests/GetEmployeesRequest.php @@ -36,6 +36,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } } diff --git a/src/Employees/Requests/ListEmployeesRequest.php b/src/Employees/Requests/ListEmployeesRequest.php index a41afeec..ac39494d 100644 --- a/src/Employees/Requests/ListEmployeesRequest.php +++ b/src/Employees/Requests/ListEmployeesRequest.php @@ -58,6 +58,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -75,6 +76,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -92,6 +94,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -109,6 +112,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } } diff --git a/src/Events/EventsClient.php b/src/Events/EventsClient.php index 635a67e5..b6d86893 100644 --- a/src/Events/EventsClient.php +++ b/src/Events/EventsClient.php @@ -2,7 +2,7 @@ namespace Square\Events; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Events\Requests\SearchEventsRequest; use Square\Types\SearchEventsResponse; @@ -12,7 +12,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Types\DisableEventsResponse; use Square\Types\EnableEventsResponse; @@ -91,16 +90,6 @@ public function searchEvents(SearchEventsRequest $request = new SearchEventsRequ } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -147,16 +136,6 @@ public function disableEvents(?array $options = null): DisableEventsResponse } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -201,16 +180,6 @@ public function enableEvents(?array $options = null): EnableEventsResponse } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -261,16 +230,6 @@ public function listEventTypes(ListEventTypesRequest $request = new ListEventTyp } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Events/Requests/ListEventTypesRequest.php b/src/Events/Requests/ListEventTypesRequest.php index 431b6018..2f793df5 100644 --- a/src/Events/Requests/ListEventTypesRequest.php +++ b/src/Events/Requests/ListEventTypesRequest.php @@ -36,6 +36,7 @@ public function getApiVersion(): ?string public function setApiVersion(?string $value = null): self { $this->apiVersion = $value; + $this->_setField('apiVersion'); return $this; } } diff --git a/src/Events/Requests/SearchEventsRequest.php b/src/Events/Requests/SearchEventsRequest.php index a62fccd0..8766b295 100644 --- a/src/Events/Requests/SearchEventsRequest.php +++ b/src/Events/Requests/SearchEventsRequest.php @@ -65,6 +65,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -82,6 +83,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -99,6 +101,7 @@ public function getQuery(): ?SearchEventsQuery public function setQuery(?SearchEventsQuery $value = null): self { $this->query = $value; + $this->_setField('query'); return $this; } } diff --git a/src/GiftCards/Activities/ActivitiesClient.php b/src/GiftCards/Activities/ActivitiesClient.php index 556138de..2efb2756 100644 --- a/src/GiftCards/Activities/ActivitiesClient.php +++ b/src/GiftCards/Activities/ActivitiesClient.php @@ -2,7 +2,7 @@ namespace Square\GiftCards\Activities; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\GiftCards\Activities\Requests\ListActivitiesRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; class ActivitiesClient @@ -125,16 +124,6 @@ public function create(CreateGiftCardActivityRequest $request, ?array $options = } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -209,16 +198,6 @@ private function _list(ListActivitiesRequest $request = new ListActivitiesReques } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/GiftCards/Activities/Requests/CreateGiftCardActivityRequest.php b/src/GiftCards/Activities/Requests/CreateGiftCardActivityRequest.php index c222ef54..0f1fc305 100644 --- a/src/GiftCards/Activities/Requests/CreateGiftCardActivityRequest.php +++ b/src/GiftCards/Activities/Requests/CreateGiftCardActivityRequest.php @@ -50,6 +50,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -67,6 +68,7 @@ public function getGiftCardActivity(): GiftCardActivity public function setGiftCardActivity(GiftCardActivity $value): self { $this->giftCardActivity = $value; + $this->_setField('giftCardActivity'); return $this; } } diff --git a/src/GiftCards/Activities/Requests/ListActivitiesRequest.php b/src/GiftCards/Activities/Requests/ListActivitiesRequest.php index 122d4cad..bf6e976f 100644 --- a/src/GiftCards/Activities/Requests/ListActivitiesRequest.php +++ b/src/GiftCards/Activities/Requests/ListActivitiesRequest.php @@ -114,6 +114,7 @@ public function getGiftCardId(): ?string public function setGiftCardId(?string $value = null): self { $this->giftCardId = $value; + $this->_setField('giftCardId'); return $this; } @@ -131,6 +132,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -148,6 +150,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -165,6 +168,7 @@ public function getBeginTime(): ?string public function setBeginTime(?string $value = null): self { $this->beginTime = $value; + $this->_setField('beginTime'); return $this; } @@ -182,6 +186,7 @@ public function getEndTime(): ?string public function setEndTime(?string $value = null): self { $this->endTime = $value; + $this->_setField('endTime'); return $this; } @@ -199,6 +204,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -216,6 +222,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -233,6 +240,7 @@ public function getSortOrder(): ?string public function setSortOrder(?string $value = null): self { $this->sortOrder = $value; + $this->_setField('sortOrder'); return $this; } } diff --git a/src/GiftCards/GiftCardsClient.php b/src/GiftCards/GiftCardsClient.php index 0c4467f5..ce8bfe5b 100644 --- a/src/GiftCards/GiftCardsClient.php +++ b/src/GiftCards/GiftCardsClient.php @@ -3,7 +3,7 @@ namespace Square\GiftCards; use Square\GiftCards\Activities\ActivitiesClient; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\GiftCards\Requests\ListGiftCardsRequest; use Square\Core\Pagination\Pager; @@ -18,7 +18,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\GiftCards\Requests\GetGiftCardFromGanRequest; use Square\Types\GetGiftCardFromGanResponse; @@ -143,16 +142,6 @@ public function create(CreateGiftCardRequest $request, ?array $options = null): } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -199,16 +188,6 @@ public function getFromGan(GetGiftCardFromGanRequest $request, ?array $options = } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -255,16 +234,6 @@ public function getFromNonce(GetGiftCardFromNonceRequest $request, ?array $optio } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -311,16 +280,6 @@ public function linkCustomer(LinkCustomerToGiftCardRequest $request, ?array $opt } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -367,16 +326,6 @@ public function unlinkCustomer(UnlinkCustomerFromGiftCardRequest $request, ?arra } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -422,16 +371,6 @@ public function get(GetGiftCardsRequest $request, ?array $options = null): GetGi } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -495,16 +434,6 @@ private function _list(ListGiftCardsRequest $request = new ListGiftCardsRequest( } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/GiftCards/Requests/CreateGiftCardRequest.php b/src/GiftCards/Requests/CreateGiftCardRequest.php index e2812474..92ad13a3 100644 --- a/src/GiftCards/Requests/CreateGiftCardRequest.php +++ b/src/GiftCards/Requests/CreateGiftCardRequest.php @@ -78,6 +78,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -95,6 +96,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -112,6 +114,7 @@ public function getGiftCard(): GiftCard public function setGiftCard(GiftCard $value): self { $this->giftCard = $value; + $this->_setField('giftCard'); return $this; } } diff --git a/src/GiftCards/Requests/GetGiftCardFromGanRequest.php b/src/GiftCards/Requests/GetGiftCardFromGanRequest.php index 62a31179..afaa85d1 100644 --- a/src/GiftCards/Requests/GetGiftCardFromGanRequest.php +++ b/src/GiftCards/Requests/GetGiftCardFromGanRequest.php @@ -42,6 +42,7 @@ public function getGan(): string public function setGan(string $value): self { $this->gan = $value; + $this->_setField('gan'); return $this; } } diff --git a/src/GiftCards/Requests/GetGiftCardFromNonceRequest.php b/src/GiftCards/Requests/GetGiftCardFromNonceRequest.php index 971da114..ce60b210 100644 --- a/src/GiftCards/Requests/GetGiftCardFromNonceRequest.php +++ b/src/GiftCards/Requests/GetGiftCardFromNonceRequest.php @@ -41,6 +41,7 @@ public function getNonce(): string public function setNonce(string $value): self { $this->nonce = $value; + $this->_setField('nonce'); return $this; } } diff --git a/src/GiftCards/Requests/GetGiftCardsRequest.php b/src/GiftCards/Requests/GetGiftCardsRequest.php index 63e6778b..5677933c 100644 --- a/src/GiftCards/Requests/GetGiftCardsRequest.php +++ b/src/GiftCards/Requests/GetGiftCardsRequest.php @@ -36,6 +36,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } } diff --git a/src/GiftCards/Requests/LinkCustomerToGiftCardRequest.php b/src/GiftCards/Requests/LinkCustomerToGiftCardRequest.php index 9c4572d9..e5afc330 100644 --- a/src/GiftCards/Requests/LinkCustomerToGiftCardRequest.php +++ b/src/GiftCards/Requests/LinkCustomerToGiftCardRequest.php @@ -45,6 +45,7 @@ public function getGiftCardId(): string public function setGiftCardId(string $value): self { $this->giftCardId = $value; + $this->_setField('giftCardId'); return $this; } @@ -62,6 +63,7 @@ public function getCustomerId(): string public function setCustomerId(string $value): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } } diff --git a/src/GiftCards/Requests/ListGiftCardsRequest.php b/src/GiftCards/Requests/ListGiftCardsRequest.php index 108b9e5a..a7a84c18 100644 --- a/src/GiftCards/Requests/ListGiftCardsRequest.php +++ b/src/GiftCards/Requests/ListGiftCardsRequest.php @@ -79,6 +79,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -96,6 +97,7 @@ public function getState(): ?string public function setState(?string $value = null): self { $this->state = $value; + $this->_setField('state'); return $this; } @@ -113,6 +115,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -130,6 +133,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -147,6 +151,7 @@ public function getCustomerId(): ?string public function setCustomerId(?string $value = null): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } } diff --git a/src/GiftCards/Requests/UnlinkCustomerFromGiftCardRequest.php b/src/GiftCards/Requests/UnlinkCustomerFromGiftCardRequest.php index f06e5d71..8931ae09 100644 --- a/src/GiftCards/Requests/UnlinkCustomerFromGiftCardRequest.php +++ b/src/GiftCards/Requests/UnlinkCustomerFromGiftCardRequest.php @@ -45,6 +45,7 @@ public function getGiftCardId(): string public function setGiftCardId(string $value): self { $this->giftCardId = $value; + $this->_setField('giftCardId'); return $this; } @@ -62,6 +63,7 @@ public function getCustomerId(): string public function setCustomerId(string $value): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } } diff --git a/src/Inventory/InventoryClient.php b/src/Inventory/InventoryClient.php index 9b481af5..a194f717 100644 --- a/src/Inventory/InventoryClient.php +++ b/src/Inventory/InventoryClient.php @@ -2,7 +2,7 @@ namespace Square\Inventory; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Inventory\Requests\DeprecatedGetAdjustmentInventoryRequest; use Square\Types\GetInventoryAdjustmentResponse; @@ -12,7 +12,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Inventory\Requests\GetAdjustmentInventoryRequest; use Square\Types\BatchChangeInventoryRequest; @@ -107,16 +106,6 @@ public function deprecatedGetAdjustment(DeprecatedGetAdjustmentInventoryRequest } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -163,16 +152,6 @@ public function getAdjustment(GetAdjustmentInventoryRequest $request, ?array $op } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -220,16 +199,6 @@ public function deprecatedBatchChange(BatchChangeInventoryRequest $request, ?arr } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -277,16 +246,6 @@ public function deprecatedBatchGetChanges(BatchRetrieveInventoryChangesRequest $ } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -334,16 +293,6 @@ public function deprecatedBatchGetCounts(BatchGetInventoryCountsRequest $request } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -394,16 +343,6 @@ public function batchCreateChanges(BatchChangeInventoryRequest $request, ?array } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -525,16 +464,6 @@ public function deprecatedGetPhysicalCount(DeprecatedGetPhysicalCountInventoryRe } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -581,16 +510,6 @@ public function getPhysicalCount(GetPhysicalCountInventoryRequest $request, ?arr } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -637,16 +556,6 @@ public function getTransfer(GetTransferInventoryRequest $request, ?array $option } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -773,16 +682,6 @@ private function _batchGetChanges(BatchRetrieveInventoryChangesRequest $request, } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -839,16 +738,6 @@ private function _batchGetCounts(BatchGetInventoryCountsRequest $request, ?array } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -905,16 +794,6 @@ private function _get(GetInventoryRequest $request, ?array $options = null): Get } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -980,16 +859,6 @@ private function _changes(ChangesInventoryRequest $request, ?array $options = nu } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Inventory/Requests/ChangesInventoryRequest.php b/src/Inventory/Requests/ChangesInventoryRequest.php index b6b18835..512c9594 100644 --- a/src/Inventory/Requests/ChangesInventoryRequest.php +++ b/src/Inventory/Requests/ChangesInventoryRequest.php @@ -58,6 +58,7 @@ public function getCatalogObjectId(): string public function setCatalogObjectId(string $value): self { $this->catalogObjectId = $value; + $this->_setField('catalogObjectId'); return $this; } @@ -75,6 +76,7 @@ public function getLocationIds(): ?string public function setLocationIds(?string $value = null): self { $this->locationIds = $value; + $this->_setField('locationIds'); return $this; } @@ -92,6 +94,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } } diff --git a/src/Inventory/Requests/DeprecatedGetAdjustmentInventoryRequest.php b/src/Inventory/Requests/DeprecatedGetAdjustmentInventoryRequest.php index 137cbfe4..dd429d67 100644 --- a/src/Inventory/Requests/DeprecatedGetAdjustmentInventoryRequest.php +++ b/src/Inventory/Requests/DeprecatedGetAdjustmentInventoryRequest.php @@ -36,6 +36,7 @@ public function getAdjustmentId(): string public function setAdjustmentId(string $value): self { $this->adjustmentId = $value; + $this->_setField('adjustmentId'); return $this; } } diff --git a/src/Inventory/Requests/DeprecatedGetPhysicalCountInventoryRequest.php b/src/Inventory/Requests/DeprecatedGetPhysicalCountInventoryRequest.php index b793f3bf..068501ee 100644 --- a/src/Inventory/Requests/DeprecatedGetPhysicalCountInventoryRequest.php +++ b/src/Inventory/Requests/DeprecatedGetPhysicalCountInventoryRequest.php @@ -39,6 +39,7 @@ public function getPhysicalCountId(): string public function setPhysicalCountId(string $value): self { $this->physicalCountId = $value; + $this->_setField('physicalCountId'); return $this; } } diff --git a/src/Inventory/Requests/GetAdjustmentInventoryRequest.php b/src/Inventory/Requests/GetAdjustmentInventoryRequest.php index 52d91287..64feb2cd 100644 --- a/src/Inventory/Requests/GetAdjustmentInventoryRequest.php +++ b/src/Inventory/Requests/GetAdjustmentInventoryRequest.php @@ -36,6 +36,7 @@ public function getAdjustmentId(): string public function setAdjustmentId(string $value): self { $this->adjustmentId = $value; + $this->_setField('adjustmentId'); return $this; } } diff --git a/src/Inventory/Requests/GetInventoryRequest.php b/src/Inventory/Requests/GetInventoryRequest.php index 5c40f0c7..63118aca 100644 --- a/src/Inventory/Requests/GetInventoryRequest.php +++ b/src/Inventory/Requests/GetInventoryRequest.php @@ -58,6 +58,7 @@ public function getCatalogObjectId(): string public function setCatalogObjectId(string $value): self { $this->catalogObjectId = $value; + $this->_setField('catalogObjectId'); return $this; } @@ -75,6 +76,7 @@ public function getLocationIds(): ?string public function setLocationIds(?string $value = null): self { $this->locationIds = $value; + $this->_setField('locationIds'); return $this; } @@ -92,6 +94,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } } diff --git a/src/Inventory/Requests/GetPhysicalCountInventoryRequest.php b/src/Inventory/Requests/GetPhysicalCountInventoryRequest.php index d22ae995..04ebe0df 100644 --- a/src/Inventory/Requests/GetPhysicalCountInventoryRequest.php +++ b/src/Inventory/Requests/GetPhysicalCountInventoryRequest.php @@ -39,6 +39,7 @@ public function getPhysicalCountId(): string public function setPhysicalCountId(string $value): self { $this->physicalCountId = $value; + $this->_setField('physicalCountId'); return $this; } } diff --git a/src/Inventory/Requests/GetTransferInventoryRequest.php b/src/Inventory/Requests/GetTransferInventoryRequest.php index 82d073d7..cf862992 100644 --- a/src/Inventory/Requests/GetTransferInventoryRequest.php +++ b/src/Inventory/Requests/GetTransferInventoryRequest.php @@ -36,6 +36,7 @@ public function getTransferId(): string public function setTransferId(string $value): self { $this->transferId = $value; + $this->_setField('transferId'); return $this; } } diff --git a/src/Invoices/InvoicesClient.php b/src/Invoices/InvoicesClient.php index 6f82d10d..38eaacb2 100644 --- a/src/Invoices/InvoicesClient.php +++ b/src/Invoices/InvoicesClient.php @@ -2,7 +2,7 @@ namespace Square\Invoices; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Invoices\Requests\ListInvoicesRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Invoices\Requests\SearchInvoicesRequest; use Square\Types\SearchInvoicesResponse; @@ -145,16 +144,6 @@ public function create(CreateInvoiceRequest $request, ?array $options = null): C } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -207,16 +196,6 @@ public function search(SearchInvoicesRequest $request, ?array $options = null): } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -262,16 +241,6 @@ public function get(GetInvoicesRequest $request, ?array $options = null): GetInv } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -321,16 +290,6 @@ public function update(UpdateInvoiceRequest $request, ?array $options = null): U } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -383,16 +342,6 @@ public function delete(DeleteInvoicesRequest $request, ?array $options = null): } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -461,16 +410,6 @@ public function createInvoiceAttachment(CreateInvoiceAttachmentRequest $request, } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -517,16 +456,6 @@ public function deleteInvoiceAttachment(DeleteInvoiceAttachmentRequest $request, } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -576,16 +505,6 @@ public function cancel(CancelInvoiceRequest $request, ?array $options = null): C } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -645,16 +564,6 @@ public function publish(PublishInvoiceRequest $request, ?array $options = null): } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -711,16 +620,6 @@ private function _list(ListInvoicesRequest $request, ?array $options = null): Li } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Invoices/Requests/CancelInvoiceRequest.php b/src/Invoices/Requests/CancelInvoiceRequest.php index f80729ab..bd4db977 100644 --- a/src/Invoices/Requests/CancelInvoiceRequest.php +++ b/src/Invoices/Requests/CancelInvoiceRequest.php @@ -49,6 +49,7 @@ public function getInvoiceId(): string public function setInvoiceId(string $value): self { $this->invoiceId = $value; + $this->_setField('invoiceId'); return $this; } @@ -66,6 +67,7 @@ public function getVersion(): int public function setVersion(int $value): self { $this->version = $value; + $this->_setField('version'); return $this; } } diff --git a/src/Invoices/Requests/CreateInvoiceAttachmentRequest.php b/src/Invoices/Requests/CreateInvoiceAttachmentRequest.php index 3162415f..4b9716c7 100644 --- a/src/Invoices/Requests/CreateInvoiceAttachmentRequest.php +++ b/src/Invoices/Requests/CreateInvoiceAttachmentRequest.php @@ -54,6 +54,7 @@ public function getInvoiceId(): string public function setInvoiceId(string $value): self { $this->invoiceId = $value; + $this->_setField('invoiceId'); return $this; } @@ -71,6 +72,7 @@ public function getRequest(): ?CreateInvoiceAttachmentRequestData public function setRequest(?CreateInvoiceAttachmentRequestData $value = null): self { $this->request = $value; + $this->_setField('request'); return $this; } @@ -88,6 +90,7 @@ public function getImageFile(): ?File public function setImageFile(?File $value = null): self { $this->imageFile = $value; + $this->_setField('imageFile'); return $this; } } diff --git a/src/Invoices/Requests/CreateInvoiceRequest.php b/src/Invoices/Requests/CreateInvoiceRequest.php index f6bbacce..a6759b61 100644 --- a/src/Invoices/Requests/CreateInvoiceRequest.php +++ b/src/Invoices/Requests/CreateInvoiceRequest.php @@ -53,6 +53,7 @@ public function getInvoice(): Invoice public function setInvoice(Invoice $value): self { $this->invoice = $value; + $this->_setField('invoice'); return $this; } @@ -70,6 +71,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } } diff --git a/src/Invoices/Requests/DeleteInvoiceAttachmentRequest.php b/src/Invoices/Requests/DeleteInvoiceAttachmentRequest.php index 177320ef..9b2007eb 100644 --- a/src/Invoices/Requests/DeleteInvoiceAttachmentRequest.php +++ b/src/Invoices/Requests/DeleteInvoiceAttachmentRequest.php @@ -43,6 +43,7 @@ public function getInvoiceId(): string public function setInvoiceId(string $value): self { $this->invoiceId = $value; + $this->_setField('invoiceId'); return $this; } @@ -60,6 +61,7 @@ public function getAttachmentId(): string public function setAttachmentId(string $value): self { $this->attachmentId = $value; + $this->_setField('attachmentId'); return $this; } } diff --git a/src/Invoices/Requests/DeleteInvoicesRequest.php b/src/Invoices/Requests/DeleteInvoicesRequest.php index 2fad2a85..16999f79 100644 --- a/src/Invoices/Requests/DeleteInvoicesRequest.php +++ b/src/Invoices/Requests/DeleteInvoicesRequest.php @@ -47,6 +47,7 @@ public function getInvoiceId(): string public function setInvoiceId(string $value): self { $this->invoiceId = $value; + $this->_setField('invoiceId'); return $this; } @@ -64,6 +65,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } } diff --git a/src/Invoices/Requests/GetInvoicesRequest.php b/src/Invoices/Requests/GetInvoicesRequest.php index 90ae5b57..3c0134e4 100644 --- a/src/Invoices/Requests/GetInvoicesRequest.php +++ b/src/Invoices/Requests/GetInvoicesRequest.php @@ -36,6 +36,7 @@ public function getInvoiceId(): string public function setInvoiceId(string $value): self { $this->invoiceId = $value; + $this->_setField('invoiceId'); return $this; } } diff --git a/src/Invoices/Requests/ListInvoicesRequest.php b/src/Invoices/Requests/ListInvoicesRequest.php index 5590e506..c72d9804 100644 --- a/src/Invoices/Requests/ListInvoicesRequest.php +++ b/src/Invoices/Requests/ListInvoicesRequest.php @@ -58,6 +58,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -75,6 +76,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -92,6 +94,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } } diff --git a/src/Invoices/Requests/PublishInvoiceRequest.php b/src/Invoices/Requests/PublishInvoiceRequest.php index b1cfeba0..56ba20e2 100644 --- a/src/Invoices/Requests/PublishInvoiceRequest.php +++ b/src/Invoices/Requests/PublishInvoiceRequest.php @@ -62,6 +62,7 @@ public function getInvoiceId(): string public function setInvoiceId(string $value): self { $this->invoiceId = $value; + $this->_setField('invoiceId'); return $this; } @@ -79,6 +80,7 @@ public function getVersion(): int public function setVersion(int $value): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -96,6 +98,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } } diff --git a/src/Invoices/Requests/SearchInvoicesRequest.php b/src/Invoices/Requests/SearchInvoicesRequest.php index d5d51dcb..c57fadc6 100644 --- a/src/Invoices/Requests/SearchInvoicesRequest.php +++ b/src/Invoices/Requests/SearchInvoicesRequest.php @@ -63,6 +63,7 @@ public function getQuery(): InvoiceQuery public function setQuery(InvoiceQuery $value): self { $this->query = $value; + $this->_setField('query'); return $this; } @@ -80,6 +81,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -97,6 +99,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } } diff --git a/src/Invoices/Requests/UpdateInvoiceRequest.php b/src/Invoices/Requests/UpdateInvoiceRequest.php index 107ab757..849d0c7e 100644 --- a/src/Invoices/Requests/UpdateInvoiceRequest.php +++ b/src/Invoices/Requests/UpdateInvoiceRequest.php @@ -78,6 +78,7 @@ public function getInvoiceId(): string public function setInvoiceId(string $value): self { $this->invoiceId = $value; + $this->_setField('invoiceId'); return $this; } @@ -95,6 +96,7 @@ public function getInvoice(): Invoice public function setInvoice(Invoice $value): self { $this->invoice = $value; + $this->_setField('invoice'); return $this; } @@ -112,6 +114,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -129,6 +132,7 @@ public function getFieldsToClear(): ?array public function setFieldsToClear(?array $value = null): self { $this->fieldsToClear = $value; + $this->_setField('fieldsToClear'); return $this; } } diff --git a/src/Labor/BreakTypes/BreakTypesClient.php b/src/Labor/BreakTypes/BreakTypesClient.php index 35a8c5ee..f2ae5727 100644 --- a/src/Labor/BreakTypes/BreakTypesClient.php +++ b/src/Labor/BreakTypes/BreakTypesClient.php @@ -2,7 +2,7 @@ namespace Square\Labor\BreakTypes; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Labor\BreakTypes\Requests\ListBreakTypesRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Labor\BreakTypes\Requests\GetBreakTypesRequest; use Square\Types\GetBreakTypeResponse; @@ -140,16 +139,6 @@ public function create(CreateBreakTypeRequest $request, ?array $options = null): } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -195,16 +184,6 @@ public function get(GetBreakTypesRequest $request, ?array $options = null): GetB } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -251,16 +230,6 @@ public function update(UpdateBreakTypeRequest $request, ?array $options = null): } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -308,16 +277,6 @@ public function delete(DeleteBreakTypesRequest $request, ?array $options = null) } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -374,16 +333,6 @@ private function _list(ListBreakTypesRequest $request = new ListBreakTypesReques } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Labor/BreakTypes/Requests/CreateBreakTypeRequest.php b/src/Labor/BreakTypes/Requests/CreateBreakTypeRequest.php index 273e1cad..f4e0653f 100644 --- a/src/Labor/BreakTypes/Requests/CreateBreakTypeRequest.php +++ b/src/Labor/BreakTypes/Requests/CreateBreakTypeRequest.php @@ -47,6 +47,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -64,6 +65,7 @@ public function getBreakType(): BreakType public function setBreakType(BreakType $value): self { $this->breakType = $value; + $this->_setField('breakType'); return $this; } } diff --git a/src/Labor/BreakTypes/Requests/DeleteBreakTypesRequest.php b/src/Labor/BreakTypes/Requests/DeleteBreakTypesRequest.php index d60bb6f5..47279f6e 100644 --- a/src/Labor/BreakTypes/Requests/DeleteBreakTypesRequest.php +++ b/src/Labor/BreakTypes/Requests/DeleteBreakTypesRequest.php @@ -36,6 +36,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } } diff --git a/src/Labor/BreakTypes/Requests/GetBreakTypesRequest.php b/src/Labor/BreakTypes/Requests/GetBreakTypesRequest.php index ae1482bd..3df81aaa 100644 --- a/src/Labor/BreakTypes/Requests/GetBreakTypesRequest.php +++ b/src/Labor/BreakTypes/Requests/GetBreakTypesRequest.php @@ -36,6 +36,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } } diff --git a/src/Labor/BreakTypes/Requests/ListBreakTypesRequest.php b/src/Labor/BreakTypes/Requests/ListBreakTypesRequest.php index 01cf3c7e..df9f6ae3 100644 --- a/src/Labor/BreakTypes/Requests/ListBreakTypesRequest.php +++ b/src/Labor/BreakTypes/Requests/ListBreakTypesRequest.php @@ -56,6 +56,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -73,6 +74,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -90,6 +92,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } } diff --git a/src/Labor/BreakTypes/Requests/UpdateBreakTypeRequest.php b/src/Labor/BreakTypes/Requests/UpdateBreakTypeRequest.php index 41b4d7f1..7439f3cb 100644 --- a/src/Labor/BreakTypes/Requests/UpdateBreakTypeRequest.php +++ b/src/Labor/BreakTypes/Requests/UpdateBreakTypeRequest.php @@ -46,6 +46,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -63,6 +64,7 @@ public function getBreakType(): BreakType public function setBreakType(BreakType $value): self { $this->breakType = $value; + $this->_setField('breakType'); return $this; } } diff --git a/src/Labor/EmployeeWages/EmployeeWagesClient.php b/src/Labor/EmployeeWages/EmployeeWagesClient.php index 2108dd9d..27f15960 100644 --- a/src/Labor/EmployeeWages/EmployeeWagesClient.php +++ b/src/Labor/EmployeeWages/EmployeeWagesClient.php @@ -2,7 +2,7 @@ namespace Square\Labor\EmployeeWages; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Labor\EmployeeWages\Requests\ListEmployeeWagesRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; class EmployeeWagesClient @@ -120,16 +119,6 @@ public function get(GetEmployeeWagesRequest $request, ?array $options = null): G } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -186,16 +175,6 @@ private function _list(ListEmployeeWagesRequest $request = new ListEmployeeWages } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Labor/EmployeeWages/Requests/GetEmployeeWagesRequest.php b/src/Labor/EmployeeWages/Requests/GetEmployeeWagesRequest.php index d997ba7c..87dadb28 100644 --- a/src/Labor/EmployeeWages/Requests/GetEmployeeWagesRequest.php +++ b/src/Labor/EmployeeWages/Requests/GetEmployeeWagesRequest.php @@ -36,6 +36,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } } diff --git a/src/Labor/EmployeeWages/Requests/ListEmployeeWagesRequest.php b/src/Labor/EmployeeWages/Requests/ListEmployeeWagesRequest.php index 1d024671..0d3de64c 100644 --- a/src/Labor/EmployeeWages/Requests/ListEmployeeWagesRequest.php +++ b/src/Labor/EmployeeWages/Requests/ListEmployeeWagesRequest.php @@ -53,6 +53,7 @@ public function getEmployeeId(): ?string public function setEmployeeId(?string $value = null): self { $this->employeeId = $value; + $this->_setField('employeeId'); return $this; } @@ -70,6 +71,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -87,6 +89,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } } diff --git a/src/Labor/LaborClient.php b/src/Labor/LaborClient.php index f95d92bd..ea314774 100644 --- a/src/Labor/LaborClient.php +++ b/src/Labor/LaborClient.php @@ -7,7 +7,7 @@ use Square\Labor\Shifts\ShiftsClient; use Square\Labor\TeamMemberWages\TeamMemberWagesClient; use Square\Labor\WorkweekConfigs\WorkweekConfigsClient; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Labor\Requests\CreateScheduledShiftRequest; use Square\Types\CreateScheduledShiftResponse; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Labor\Requests\BulkPublishScheduledShiftsRequest; use Square\Types\BulkPublishScheduledShiftsResponse; @@ -149,16 +148,6 @@ public function createScheduledShift(CreateScheduledShiftRequest $request, ?arra } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -210,16 +199,6 @@ public function bulkPublishScheduledShifts(BulkPublishScheduledShiftsRequest $re } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -267,16 +246,6 @@ public function searchScheduledShifts(SearchScheduledShiftsRequest $request = ne } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -322,16 +291,6 @@ public function retrieveScheduledShift(RetrieveScheduledShiftRequest $request, ? } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -387,16 +346,6 @@ public function updateScheduledShift(UpdateScheduledShiftRequest $request, ?arra } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -444,16 +393,6 @@ public function publishScheduledShift(PublishScheduledShiftRequest $request, ?ar } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -517,16 +456,6 @@ public function createTimecard(CreateTimecardRequest $request, ?array $options = } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -586,16 +515,6 @@ public function searchTimecards(SearchTimecardsRequest $request = new SearchTime } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -641,16 +560,6 @@ public function retrieveTimecard(RetrieveTimecardRequest $request, ?array $optio } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -703,16 +612,6 @@ public function updateTimecard(UpdateTimecardRequest $request, ?array $options = } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -758,16 +657,6 @@ public function deleteTimecard(DeleteTimecardRequest $request, ?array $options = } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Labor/Requests/BulkPublishScheduledShiftsRequest.php b/src/Labor/Requests/BulkPublishScheduledShiftsRequest.php index 1640d668..bae78d98 100644 --- a/src/Labor/Requests/BulkPublishScheduledShiftsRequest.php +++ b/src/Labor/Requests/BulkPublishScheduledShiftsRequest.php @@ -60,6 +60,7 @@ public function getScheduledShifts(): array public function setScheduledShifts(array $value): self { $this->scheduledShifts = $value; + $this->_setField('scheduledShifts'); return $this; } @@ -77,6 +78,7 @@ public function getScheduledShiftNotificationAudience(): ?string public function setScheduledShiftNotificationAudience(?string $value = null): self { $this->scheduledShiftNotificationAudience = $value; + $this->_setField('scheduledShiftNotificationAudience'); return $this; } } diff --git a/src/Labor/Requests/CreateScheduledShiftRequest.php b/src/Labor/Requests/CreateScheduledShiftRequest.php index b1547a42..3b44f8f1 100644 --- a/src/Labor/Requests/CreateScheduledShiftRequest.php +++ b/src/Labor/Requests/CreateScheduledShiftRequest.php @@ -59,6 +59,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -76,6 +77,7 @@ public function getScheduledShift(): ScheduledShift public function setScheduledShift(ScheduledShift $value): self { $this->scheduledShift = $value; + $this->_setField('scheduledShift'); return $this; } } diff --git a/src/Labor/Requests/CreateTimecardRequest.php b/src/Labor/Requests/CreateTimecardRequest.php index 674bbb84..5712db51 100644 --- a/src/Labor/Requests/CreateTimecardRequest.php +++ b/src/Labor/Requests/CreateTimecardRequest.php @@ -47,6 +47,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -64,6 +65,7 @@ public function getTimecard(): Timecard public function setTimecard(Timecard $value): self { $this->timecard = $value; + $this->_setField('timecard'); return $this; } } diff --git a/src/Labor/Requests/DeleteTimecardRequest.php b/src/Labor/Requests/DeleteTimecardRequest.php index 0bca6773..68ae4cc0 100644 --- a/src/Labor/Requests/DeleteTimecardRequest.php +++ b/src/Labor/Requests/DeleteTimecardRequest.php @@ -36,6 +36,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } } diff --git a/src/Labor/Requests/PublishScheduledShiftRequest.php b/src/Labor/Requests/PublishScheduledShiftRequest.php index 2e09512b..5c5e9109 100644 --- a/src/Labor/Requests/PublishScheduledShiftRequest.php +++ b/src/Labor/Requests/PublishScheduledShiftRequest.php @@ -74,6 +74,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -91,6 +92,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -108,6 +110,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -125,6 +128,7 @@ public function getScheduledShiftNotificationAudience(): ?string public function setScheduledShiftNotificationAudience(?string $value = null): self { $this->scheduledShiftNotificationAudience = $value; + $this->_setField('scheduledShiftNotificationAudience'); return $this; } } diff --git a/src/Labor/Requests/RetrieveScheduledShiftRequest.php b/src/Labor/Requests/RetrieveScheduledShiftRequest.php index abce2348..519bfcbd 100644 --- a/src/Labor/Requests/RetrieveScheduledShiftRequest.php +++ b/src/Labor/Requests/RetrieveScheduledShiftRequest.php @@ -36,6 +36,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } } diff --git a/src/Labor/Requests/RetrieveTimecardRequest.php b/src/Labor/Requests/RetrieveTimecardRequest.php index da53e128..347aaa5b 100644 --- a/src/Labor/Requests/RetrieveTimecardRequest.php +++ b/src/Labor/Requests/RetrieveTimecardRequest.php @@ -36,6 +36,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } } diff --git a/src/Labor/Requests/SearchScheduledShiftsRequest.php b/src/Labor/Requests/SearchScheduledShiftsRequest.php index 8ce7e0c8..28d10d01 100644 --- a/src/Labor/Requests/SearchScheduledShiftsRequest.php +++ b/src/Labor/Requests/SearchScheduledShiftsRequest.php @@ -59,6 +59,7 @@ public function getQuery(): ?ScheduledShiftQuery public function setQuery(?ScheduledShiftQuery $value = null): self { $this->query = $value; + $this->_setField('query'); return $this; } @@ -76,6 +77,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -93,6 +95,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } } diff --git a/src/Labor/Requests/SearchTimecardsRequest.php b/src/Labor/Requests/SearchTimecardsRequest.php index e2513552..5093d6d9 100644 --- a/src/Labor/Requests/SearchTimecardsRequest.php +++ b/src/Labor/Requests/SearchTimecardsRequest.php @@ -55,6 +55,7 @@ public function getQuery(): ?TimecardQuery public function setQuery(?TimecardQuery $value = null): self { $this->query = $value; + $this->_setField('query'); return $this; } @@ -72,6 +73,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -89,6 +91,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } } diff --git a/src/Labor/Requests/UpdateScheduledShiftRequest.php b/src/Labor/Requests/UpdateScheduledShiftRequest.php index 3b6147b0..42aee9c4 100644 --- a/src/Labor/Requests/UpdateScheduledShiftRequest.php +++ b/src/Labor/Requests/UpdateScheduledShiftRequest.php @@ -60,6 +60,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -77,6 +78,7 @@ public function getScheduledShift(): ScheduledShift public function setScheduledShift(ScheduledShift $value): self { $this->scheduledShift = $value; + $this->_setField('scheduledShift'); return $this; } } diff --git a/src/Labor/Requests/UpdateTimecardRequest.php b/src/Labor/Requests/UpdateTimecardRequest.php index 1d212579..fc882d12 100644 --- a/src/Labor/Requests/UpdateTimecardRequest.php +++ b/src/Labor/Requests/UpdateTimecardRequest.php @@ -46,6 +46,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -63,6 +64,7 @@ public function getTimecard(): Timecard public function setTimecard(Timecard $value): self { $this->timecard = $value; + $this->_setField('timecard'); return $this; } } diff --git a/src/Labor/Shifts/Requests/CreateShiftRequest.php b/src/Labor/Shifts/Requests/CreateShiftRequest.php index dd882682..6fb04961 100644 --- a/src/Labor/Shifts/Requests/CreateShiftRequest.php +++ b/src/Labor/Shifts/Requests/CreateShiftRequest.php @@ -47,6 +47,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -64,6 +65,7 @@ public function getShift(): Shift public function setShift(Shift $value): self { $this->shift = $value; + $this->_setField('shift'); return $this; } } diff --git a/src/Labor/Shifts/Requests/DeleteShiftsRequest.php b/src/Labor/Shifts/Requests/DeleteShiftsRequest.php index 4f44a5af..e1bccf07 100644 --- a/src/Labor/Shifts/Requests/DeleteShiftsRequest.php +++ b/src/Labor/Shifts/Requests/DeleteShiftsRequest.php @@ -36,6 +36,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } } diff --git a/src/Labor/Shifts/Requests/GetShiftsRequest.php b/src/Labor/Shifts/Requests/GetShiftsRequest.php index 698bce55..3dad4e82 100644 --- a/src/Labor/Shifts/Requests/GetShiftsRequest.php +++ b/src/Labor/Shifts/Requests/GetShiftsRequest.php @@ -36,6 +36,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } } diff --git a/src/Labor/Shifts/Requests/SearchShiftsRequest.php b/src/Labor/Shifts/Requests/SearchShiftsRequest.php index 2cae5f5a..a89ce099 100644 --- a/src/Labor/Shifts/Requests/SearchShiftsRequest.php +++ b/src/Labor/Shifts/Requests/SearchShiftsRequest.php @@ -55,6 +55,7 @@ public function getQuery(): ?ShiftQuery public function setQuery(?ShiftQuery $value = null): self { $this->query = $value; + $this->_setField('query'); return $this; } @@ -72,6 +73,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -89,6 +91,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } } diff --git a/src/Labor/Shifts/Requests/UpdateShiftRequest.php b/src/Labor/Shifts/Requests/UpdateShiftRequest.php index 3382313a..3a7095d8 100644 --- a/src/Labor/Shifts/Requests/UpdateShiftRequest.php +++ b/src/Labor/Shifts/Requests/UpdateShiftRequest.php @@ -46,6 +46,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -63,6 +64,7 @@ public function getShift(): Shift public function setShift(Shift $value): self { $this->shift = $value; + $this->_setField('shift'); return $this; } } diff --git a/src/Labor/Shifts/ShiftsClient.php b/src/Labor/Shifts/ShiftsClient.php index b61e429c..8eaf7ca0 100644 --- a/src/Labor/Shifts/ShiftsClient.php +++ b/src/Labor/Shifts/ShiftsClient.php @@ -2,7 +2,7 @@ namespace Square\Labor\Shifts; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Labor\Shifts\Requests\CreateShiftRequest; use Square\Types\CreateShiftResponse; @@ -12,7 +12,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Labor\Shifts\Requests\SearchShiftsRequest; use Square\Types\SearchShiftsResponse; @@ -112,16 +111,6 @@ public function create(CreateShiftRequest $request, ?array $options = null): Cre } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -181,16 +170,6 @@ public function search(SearchShiftsRequest $request = new SearchShiftsRequest(), } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -236,16 +215,6 @@ public function get(GetShiftsRequest $request, ?array $options = null): GetShift } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -298,16 +267,6 @@ public function update(UpdateShiftRequest $request, ?array $options = null): Upd } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -353,16 +312,6 @@ public function delete(DeleteShiftsRequest $request, ?array $options = null): De } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Labor/TeamMemberWages/Requests/GetTeamMemberWagesRequest.php b/src/Labor/TeamMemberWages/Requests/GetTeamMemberWagesRequest.php index 43a034c5..4901eb87 100644 --- a/src/Labor/TeamMemberWages/Requests/GetTeamMemberWagesRequest.php +++ b/src/Labor/TeamMemberWages/Requests/GetTeamMemberWagesRequest.php @@ -36,6 +36,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } } diff --git a/src/Labor/TeamMemberWages/Requests/ListTeamMemberWagesRequest.php b/src/Labor/TeamMemberWages/Requests/ListTeamMemberWagesRequest.php index c40f4c3e..87918726 100644 --- a/src/Labor/TeamMemberWages/Requests/ListTeamMemberWagesRequest.php +++ b/src/Labor/TeamMemberWages/Requests/ListTeamMemberWagesRequest.php @@ -56,6 +56,7 @@ public function getTeamMemberId(): ?string public function setTeamMemberId(?string $value = null): self { $this->teamMemberId = $value; + $this->_setField('teamMemberId'); return $this; } @@ -73,6 +74,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -90,6 +92,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } } diff --git a/src/Labor/TeamMemberWages/TeamMemberWagesClient.php b/src/Labor/TeamMemberWages/TeamMemberWagesClient.php index 6f5b4462..b77de923 100644 --- a/src/Labor/TeamMemberWages/TeamMemberWagesClient.php +++ b/src/Labor/TeamMemberWages/TeamMemberWagesClient.php @@ -2,7 +2,7 @@ namespace Square\Labor\TeamMemberWages; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Labor\TeamMemberWages\Requests\ListTeamMemberWagesRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; class TeamMemberWagesClient @@ -120,16 +119,6 @@ public function get(GetTeamMemberWagesRequest $request, ?array $options = null): } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -186,16 +175,6 @@ private function _list(ListTeamMemberWagesRequest $request = new ListTeamMemberW } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Labor/WorkweekConfigs/Requests/ListWorkweekConfigsRequest.php b/src/Labor/WorkweekConfigs/Requests/ListWorkweekConfigsRequest.php index 8bcd0020..b8e4ddfc 100644 --- a/src/Labor/WorkweekConfigs/Requests/ListWorkweekConfigsRequest.php +++ b/src/Labor/WorkweekConfigs/Requests/ListWorkweekConfigsRequest.php @@ -43,6 +43,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -60,6 +61,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } } diff --git a/src/Labor/WorkweekConfigs/Requests/UpdateWorkweekConfigRequest.php b/src/Labor/WorkweekConfigs/Requests/UpdateWorkweekConfigRequest.php index 384463f9..88d90128 100644 --- a/src/Labor/WorkweekConfigs/Requests/UpdateWorkweekConfigRequest.php +++ b/src/Labor/WorkweekConfigs/Requests/UpdateWorkweekConfigRequest.php @@ -46,6 +46,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -63,6 +64,7 @@ public function getWorkweekConfig(): WorkweekConfig public function setWorkweekConfig(WorkweekConfig $value): self { $this->workweekConfig = $value; + $this->_setField('workweekConfig'); return $this; } } diff --git a/src/Labor/WorkweekConfigs/WorkweekConfigsClient.php b/src/Labor/WorkweekConfigs/WorkweekConfigsClient.php index cf196c7e..ef5c4186 100644 --- a/src/Labor/WorkweekConfigs/WorkweekConfigsClient.php +++ b/src/Labor/WorkweekConfigs/WorkweekConfigsClient.php @@ -2,7 +2,7 @@ namespace Square\Labor\WorkweekConfigs; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Labor\WorkweekConfigs\Requests\ListWorkweekConfigsRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; class WorkweekConfigsClient @@ -121,16 +120,6 @@ public function get(UpdateWorkweekConfigRequest $request, ?array $options = null } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -184,16 +173,6 @@ private function _list(ListWorkweekConfigsRequest $request = new ListWorkweekCon } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Locations/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.php b/src/Locations/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.php index b939d511..d7273ef5 100644 --- a/src/Locations/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.php +++ b/src/Locations/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.php @@ -2,7 +2,7 @@ namespace Square\Locations\CustomAttributeDefinitions; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Locations\CustomAttributeDefinitions\Requests\ListCustomAttributeDefinitionsRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Locations\CustomAttributeDefinitions\Requests\GetCustomAttributeDefinitionsRequest; use Square\Types\RetrieveLocationCustomAttributeDefinitionResponse; @@ -136,16 +135,6 @@ public function create(CreateLocationCustomAttributeDefinitionRequest $request, } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -198,16 +187,6 @@ public function get(GetCustomAttributeDefinitionsRequest $request, ?array $optio } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -257,16 +236,6 @@ public function update(UpdateLocationCustomAttributeDefinitionRequest $request, } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -315,16 +284,6 @@ public function delete(DeleteCustomAttributeDefinitionsRequest $request, ?array } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -384,16 +343,6 @@ private function _list(ListCustomAttributeDefinitionsRequest $request = new List } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Locations/CustomAttributeDefinitions/Requests/CreateLocationCustomAttributeDefinitionRequest.php b/src/Locations/CustomAttributeDefinitions/Requests/CreateLocationCustomAttributeDefinitionRequest.php index f1daa50d..72237366 100644 --- a/src/Locations/CustomAttributeDefinitions/Requests/CreateLocationCustomAttributeDefinitionRequest.php +++ b/src/Locations/CustomAttributeDefinitions/Requests/CreateLocationCustomAttributeDefinitionRequest.php @@ -56,6 +56,7 @@ public function getCustomAttributeDefinition(): CustomAttributeDefinition public function setCustomAttributeDefinition(CustomAttributeDefinition $value): self { $this->customAttributeDefinition = $value; + $this->_setField('customAttributeDefinition'); return $this; } @@ -73,6 +74,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } } diff --git a/src/Locations/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.php b/src/Locations/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.php index 9129e454..6918595e 100644 --- a/src/Locations/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.php +++ b/src/Locations/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.php @@ -36,6 +36,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } } diff --git a/src/Locations/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.php b/src/Locations/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.php index 097d4b47..8e66d354 100644 --- a/src/Locations/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.php +++ b/src/Locations/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.php @@ -51,6 +51,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } @@ -68,6 +69,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } } diff --git a/src/Locations/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.php b/src/Locations/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.php index 70f9e767..2b5f6584 100644 --- a/src/Locations/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.php +++ b/src/Locations/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.php @@ -59,6 +59,7 @@ public function getVisibilityFilter(): ?string public function setVisibilityFilter(?string $value = null): self { $this->visibilityFilter = $value; + $this->_setField('visibilityFilter'); return $this; } @@ -76,6 +77,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -93,6 +95,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } } diff --git a/src/Locations/CustomAttributeDefinitions/Requests/UpdateLocationCustomAttributeDefinitionRequest.php b/src/Locations/CustomAttributeDefinitions/Requests/UpdateLocationCustomAttributeDefinitionRequest.php index 94060362..a4a6a71f 100644 --- a/src/Locations/CustomAttributeDefinitions/Requests/UpdateLocationCustomAttributeDefinitionRequest.php +++ b/src/Locations/CustomAttributeDefinitions/Requests/UpdateLocationCustomAttributeDefinitionRequest.php @@ -72,6 +72,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } @@ -89,6 +90,7 @@ public function getCustomAttributeDefinition(): CustomAttributeDefinition public function setCustomAttributeDefinition(CustomAttributeDefinition $value): self { $this->customAttributeDefinition = $value; + $this->_setField('customAttributeDefinition'); return $this; } @@ -106,6 +108,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } } diff --git a/src/Locations/CustomAttributes/CustomAttributesClient.php b/src/Locations/CustomAttributes/CustomAttributesClient.php index 8b67edf0..0029956d 100644 --- a/src/Locations/CustomAttributes/CustomAttributesClient.php +++ b/src/Locations/CustomAttributes/CustomAttributesClient.php @@ -2,7 +2,7 @@ namespace Square\Locations\CustomAttributes; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Locations\CustomAttributes\Requests\BulkDeleteLocationCustomAttributesRequest; use Square\Types\BulkDeleteLocationCustomAttributesResponse; @@ -12,7 +12,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Locations\CustomAttributes\Requests\BulkUpsertLocationCustomAttributesRequest; use Square\Types\BulkUpsertLocationCustomAttributesResponse; @@ -102,16 +101,6 @@ public function batchDelete(BulkDeleteLocationCustomAttributesRequest $request, } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -167,16 +156,6 @@ public function batchUpsert(BulkUpsertLocationCustomAttributesRequest $request, } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -268,16 +247,6 @@ public function get(GetCustomAttributesRequest $request, ?array $options = null) } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -329,16 +298,6 @@ public function upsert(UpsertLocationCustomAttributeRequest $request, ?array $op } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -386,16 +345,6 @@ public function delete(DeleteCustomAttributesRequest $request, ?array $options = } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -460,16 +409,6 @@ private function _list(ListCustomAttributesRequest $request, ?array $options = n } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Locations/CustomAttributes/Requests/BulkDeleteLocationCustomAttributesRequest.php b/src/Locations/CustomAttributes/Requests/BulkDeleteLocationCustomAttributesRequest.php index f07f336c..cae78268 100644 --- a/src/Locations/CustomAttributes/Requests/BulkDeleteLocationCustomAttributesRequest.php +++ b/src/Locations/CustomAttributes/Requests/BulkDeleteLocationCustomAttributesRequest.php @@ -43,6 +43,7 @@ public function getValues(): array public function setValues(array $value): self { $this->values = $value; + $this->_setField('values'); return $this; } } diff --git a/src/Locations/CustomAttributes/Requests/BulkUpsertLocationCustomAttributesRequest.php b/src/Locations/CustomAttributes/Requests/BulkUpsertLocationCustomAttributesRequest.php index 934a79ec..1af81868 100644 --- a/src/Locations/CustomAttributes/Requests/BulkUpsertLocationCustomAttributesRequest.php +++ b/src/Locations/CustomAttributes/Requests/BulkUpsertLocationCustomAttributesRequest.php @@ -44,6 +44,7 @@ public function getValues(): array public function setValues(array $value): self { $this->values = $value; + $this->_setField('values'); return $this; } } diff --git a/src/Locations/CustomAttributes/Requests/DeleteCustomAttributesRequest.php b/src/Locations/CustomAttributes/Requests/DeleteCustomAttributesRequest.php index ec20ede8..1a7681c8 100644 --- a/src/Locations/CustomAttributes/Requests/DeleteCustomAttributesRequest.php +++ b/src/Locations/CustomAttributes/Requests/DeleteCustomAttributesRequest.php @@ -47,6 +47,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -64,6 +65,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } } diff --git a/src/Locations/CustomAttributes/Requests/GetCustomAttributesRequest.php b/src/Locations/CustomAttributes/Requests/GetCustomAttributesRequest.php index 289de2b8..9a80748e 100644 --- a/src/Locations/CustomAttributes/Requests/GetCustomAttributesRequest.php +++ b/src/Locations/CustomAttributes/Requests/GetCustomAttributesRequest.php @@ -70,6 +70,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -87,6 +88,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } @@ -104,6 +106,7 @@ public function getWithDefinition(): ?bool public function setWithDefinition(?bool $value = null): self { $this->withDefinition = $value; + $this->_setField('withDefinition'); return $this; } @@ -121,6 +124,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } } diff --git a/src/Locations/CustomAttributes/Requests/ListCustomAttributesRequest.php b/src/Locations/CustomAttributes/Requests/ListCustomAttributesRequest.php index e42440fa..65ee4e25 100644 --- a/src/Locations/CustomAttributes/Requests/ListCustomAttributesRequest.php +++ b/src/Locations/CustomAttributes/Requests/ListCustomAttributesRequest.php @@ -77,6 +77,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -94,6 +95,7 @@ public function getVisibilityFilter(): ?string public function setVisibilityFilter(?string $value = null): self { $this->visibilityFilter = $value; + $this->_setField('visibilityFilter'); return $this; } @@ -111,6 +113,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -128,6 +131,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -145,6 +149,7 @@ public function getWithDefinitions(): ?bool public function setWithDefinitions(?bool $value = null): self { $this->withDefinitions = $value; + $this->_setField('withDefinitions'); return $this; } } diff --git a/src/Locations/CustomAttributes/Requests/UpsertLocationCustomAttributeRequest.php b/src/Locations/CustomAttributes/Requests/UpsertLocationCustomAttributeRequest.php index d6a75af6..59c494bb 100644 --- a/src/Locations/CustomAttributes/Requests/UpsertLocationCustomAttributeRequest.php +++ b/src/Locations/CustomAttributes/Requests/UpsertLocationCustomAttributeRequest.php @@ -75,6 +75,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -92,6 +93,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } @@ -109,6 +111,7 @@ public function getCustomAttribute(): CustomAttribute public function setCustomAttribute(CustomAttribute $value): self { $this->customAttribute = $value; + $this->_setField('customAttribute'); return $this; } @@ -126,6 +129,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } } diff --git a/src/Locations/LocationsClient.php b/src/Locations/LocationsClient.php index de293946..52f8720f 100644 --- a/src/Locations/LocationsClient.php +++ b/src/Locations/LocationsClient.php @@ -5,7 +5,7 @@ use Square\Locations\CustomAttributeDefinitions\CustomAttributeDefinitionsClient; use Square\Locations\CustomAttributes\CustomAttributesClient; use Square\Locations\Transactions\TransactionsClient; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Types\ListLocationsResponse; use Square\Exceptions\SquareException; @@ -14,7 +14,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Locations\Requests\CreateLocationRequest; use Square\Types\CreateLocationResponse; @@ -114,16 +113,6 @@ public function list(?array $options = null): ListLocationsResponse } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -176,16 +165,6 @@ public function create(CreateLocationRequest $request = new CreateLocationReques } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -232,16 +211,6 @@ public function get(GetLocationsRequest $request, ?array $options = null): GetLo } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -288,16 +257,6 @@ public function update(UpdateLocationRequest $request, ?array $options = null): } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -350,16 +309,6 @@ public function checkouts(CreateCheckoutRequest $request, ?array $options = null } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Locations/Requests/CreateCheckoutRequest.php b/src/Locations/Requests/CreateCheckoutRequest.php index 2523f91e..99b25b0e 100644 --- a/src/Locations/Requests/CreateCheckoutRequest.php +++ b/src/Locations/Requests/CreateCheckoutRequest.php @@ -177,6 +177,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -194,6 +195,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -211,6 +213,7 @@ public function getOrder(): CreateOrderRequest public function setOrder(CreateOrderRequest $value): self { $this->order = $value; + $this->_setField('order'); return $this; } @@ -228,6 +231,7 @@ public function getAskForShippingAddress(): ?bool public function setAskForShippingAddress(?bool $value = null): self { $this->askForShippingAddress = $value; + $this->_setField('askForShippingAddress'); return $this; } @@ -245,6 +249,7 @@ public function getMerchantSupportEmail(): ?string public function setMerchantSupportEmail(?string $value = null): self { $this->merchantSupportEmail = $value; + $this->_setField('merchantSupportEmail'); return $this; } @@ -262,6 +267,7 @@ public function getPrePopulateBuyerEmail(): ?string public function setPrePopulateBuyerEmail(?string $value = null): self { $this->prePopulateBuyerEmail = $value; + $this->_setField('prePopulateBuyerEmail'); return $this; } @@ -279,6 +285,7 @@ public function getPrePopulateShippingAddress(): ?Address public function setPrePopulateShippingAddress(?Address $value = null): self { $this->prePopulateShippingAddress = $value; + $this->_setField('prePopulateShippingAddress'); return $this; } @@ -296,6 +303,7 @@ public function getRedirectUrl(): ?string public function setRedirectUrl(?string $value = null): self { $this->redirectUrl = $value; + $this->_setField('redirectUrl'); return $this; } @@ -313,6 +321,7 @@ public function getAdditionalRecipients(): ?array public function setAdditionalRecipients(?array $value = null): self { $this->additionalRecipients = $value; + $this->_setField('additionalRecipients'); return $this; } @@ -330,6 +339,7 @@ public function getNote(): ?string public function setNote(?string $value = null): self { $this->note = $value; + $this->_setField('note'); return $this; } } diff --git a/src/Locations/Requests/CreateLocationRequest.php b/src/Locations/Requests/CreateLocationRequest.php index 713b4197..f5f6330f 100644 --- a/src/Locations/Requests/CreateLocationRequest.php +++ b/src/Locations/Requests/CreateLocationRequest.php @@ -43,6 +43,7 @@ public function getLocation(): ?Location public function setLocation(?Location $value = null): self { $this->location = $value; + $this->_setField('location'); return $this; } } diff --git a/src/Locations/Requests/GetLocationsRequest.php b/src/Locations/Requests/GetLocationsRequest.php index d3854fcd..28a28260 100644 --- a/src/Locations/Requests/GetLocationsRequest.php +++ b/src/Locations/Requests/GetLocationsRequest.php @@ -39,6 +39,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } } diff --git a/src/Locations/Requests/UpdateLocationRequest.php b/src/Locations/Requests/UpdateLocationRequest.php index 6dad3b47..0770d7dd 100644 --- a/src/Locations/Requests/UpdateLocationRequest.php +++ b/src/Locations/Requests/UpdateLocationRequest.php @@ -46,6 +46,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -63,6 +64,7 @@ public function getLocation(): ?Location public function setLocation(?Location $value = null): self { $this->location = $value; + $this->_setField('location'); return $this; } } diff --git a/src/Locations/Transactions/Requests/CaptureTransactionsRequest.php b/src/Locations/Transactions/Requests/CaptureTransactionsRequest.php index d156b6df..32d19c46 100644 --- a/src/Locations/Transactions/Requests/CaptureTransactionsRequest.php +++ b/src/Locations/Transactions/Requests/CaptureTransactionsRequest.php @@ -43,6 +43,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -60,6 +61,7 @@ public function getTransactionId(): string public function setTransactionId(string $value): self { $this->transactionId = $value; + $this->_setField('transactionId'); return $this; } } diff --git a/src/Locations/Transactions/Requests/GetTransactionsRequest.php b/src/Locations/Transactions/Requests/GetTransactionsRequest.php index 2ab822e4..bb766ae7 100644 --- a/src/Locations/Transactions/Requests/GetTransactionsRequest.php +++ b/src/Locations/Transactions/Requests/GetTransactionsRequest.php @@ -43,6 +43,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -60,6 +61,7 @@ public function getTransactionId(): string public function setTransactionId(string $value): self { $this->transactionId = $value; + $this->_setField('transactionId'); return $this; } } diff --git a/src/Locations/Transactions/Requests/ListTransactionsRequest.php b/src/Locations/Transactions/Requests/ListTransactionsRequest.php index e005c209..41c3cac1 100644 --- a/src/Locations/Transactions/Requests/ListTransactionsRequest.php +++ b/src/Locations/Transactions/Requests/ListTransactionsRequest.php @@ -87,6 +87,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -104,6 +105,7 @@ public function getBeginTime(): ?string public function setBeginTime(?string $value = null): self { $this->beginTime = $value; + $this->_setField('beginTime'); return $this; } @@ -121,6 +123,7 @@ public function getEndTime(): ?string public function setEndTime(?string $value = null): self { $this->endTime = $value; + $this->_setField('endTime'); return $this; } @@ -138,6 +141,7 @@ public function getSortOrder(): ?string public function setSortOrder(?string $value = null): self { $this->sortOrder = $value; + $this->_setField('sortOrder'); return $this; } @@ -155,6 +159,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } } diff --git a/src/Locations/Transactions/Requests/VoidTransactionsRequest.php b/src/Locations/Transactions/Requests/VoidTransactionsRequest.php index 26044eeb..68848afe 100644 --- a/src/Locations/Transactions/Requests/VoidTransactionsRequest.php +++ b/src/Locations/Transactions/Requests/VoidTransactionsRequest.php @@ -43,6 +43,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -60,6 +61,7 @@ public function getTransactionId(): string public function setTransactionId(string $value): self { $this->transactionId = $value; + $this->_setField('transactionId'); return $this; } } diff --git a/src/Locations/Transactions/TransactionsClient.php b/src/Locations/Transactions/TransactionsClient.php index ff9e7195..4a239d4a 100644 --- a/src/Locations/Transactions/TransactionsClient.php +++ b/src/Locations/Transactions/TransactionsClient.php @@ -2,7 +2,7 @@ namespace Square\Locations\Transactions; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Locations\Transactions\Requests\ListTransactionsRequest; use Square\Types\ListTransactionsResponse; @@ -12,7 +12,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Locations\Transactions\Requests\GetTransactionsRequest; use Square\Types\GetTransactionResponse; @@ -111,16 +110,6 @@ public function list(ListTransactionsRequest $request, ?array $options = null): } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -166,16 +155,6 @@ public function get(GetTransactionsRequest $request, ?array $options = null): Ge } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -226,16 +205,6 @@ public function capture(CaptureTransactionsRequest $request, ?array $options = n } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -286,16 +255,6 @@ public function void(VoidTransactionsRequest $request, ?array $options = null): } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Loyalty/Accounts/AccountsClient.php b/src/Loyalty/Accounts/AccountsClient.php index 4c54fc14..b1c2a25a 100644 --- a/src/Loyalty/Accounts/AccountsClient.php +++ b/src/Loyalty/Accounts/AccountsClient.php @@ -2,7 +2,7 @@ namespace Square\Loyalty\Accounts; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Loyalty\Accounts\Requests\CreateLoyaltyAccountRequest; use Square\Types\CreateLoyaltyAccountResponse; @@ -12,7 +12,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Loyalty\Accounts\Requests\SearchLoyaltyAccountsRequest; use Square\Types\SearchLoyaltyAccountsResponse; @@ -95,16 +94,6 @@ public function create(CreateLoyaltyAccountRequest $request, ?array $options = n } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -155,16 +144,6 @@ public function search(SearchLoyaltyAccountsRequest $request = new SearchLoyalty } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -210,16 +189,6 @@ public function get(GetAccountsRequest $request, ?array $options = null): GetLoy } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -279,16 +248,6 @@ public function accumulatePoints(AccumulateLoyaltyPointsRequest $request, ?array } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -339,16 +298,6 @@ public function adjust(AdjustLoyaltyPointsRequest $request, ?array $options = nu } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Loyalty/Accounts/Requests/AccumulateLoyaltyPointsRequest.php b/src/Loyalty/Accounts/Requests/AccumulateLoyaltyPointsRequest.php index 5aad436d..dd2a56c3 100644 --- a/src/Loyalty/Accounts/Requests/AccumulateLoyaltyPointsRequest.php +++ b/src/Loyalty/Accounts/Requests/AccumulateLoyaltyPointsRequest.php @@ -69,6 +69,7 @@ public function getAccountId(): string public function setAccountId(string $value): self { $this->accountId = $value; + $this->_setField('accountId'); return $this; } @@ -86,6 +87,7 @@ public function getAccumulatePoints(): LoyaltyEventAccumulatePoints public function setAccumulatePoints(LoyaltyEventAccumulatePoints $value): self { $this->accumulatePoints = $value; + $this->_setField('accumulatePoints'); return $this; } @@ -103,6 +105,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -120,6 +123,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } } diff --git a/src/Loyalty/Accounts/Requests/AdjustLoyaltyPointsRequest.php b/src/Loyalty/Accounts/Requests/AdjustLoyaltyPointsRequest.php index 24a77d0c..9a497da6 100644 --- a/src/Loyalty/Accounts/Requests/AdjustLoyaltyPointsRequest.php +++ b/src/Loyalty/Accounts/Requests/AdjustLoyaltyPointsRequest.php @@ -72,6 +72,7 @@ public function getAccountId(): string public function setAccountId(string $value): self { $this->accountId = $value; + $this->_setField('accountId'); return $this; } @@ -89,6 +90,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -106,6 +108,7 @@ public function getAdjustPoints(): LoyaltyEventAdjustPoints public function setAdjustPoints(LoyaltyEventAdjustPoints $value): self { $this->adjustPoints = $value; + $this->_setField('adjustPoints'); return $this; } @@ -123,6 +126,7 @@ public function getAllowNegativeBalance(): ?bool public function setAllowNegativeBalance(?bool $value = null): self { $this->allowNegativeBalance = $value; + $this->_setField('allowNegativeBalance'); return $this; } } diff --git a/src/Loyalty/Accounts/Requests/CreateLoyaltyAccountRequest.php b/src/Loyalty/Accounts/Requests/CreateLoyaltyAccountRequest.php index 1fb2d4a1..ddca19ae 100644 --- a/src/Loyalty/Accounts/Requests/CreateLoyaltyAccountRequest.php +++ b/src/Loyalty/Accounts/Requests/CreateLoyaltyAccountRequest.php @@ -50,6 +50,7 @@ public function getLoyaltyAccount(): LoyaltyAccount public function setLoyaltyAccount(LoyaltyAccount $value): self { $this->loyaltyAccount = $value; + $this->_setField('loyaltyAccount'); return $this; } @@ -67,6 +68,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } } diff --git a/src/Loyalty/Accounts/Requests/GetAccountsRequest.php b/src/Loyalty/Accounts/Requests/GetAccountsRequest.php index 36f4fa2c..0d7cd7c6 100644 --- a/src/Loyalty/Accounts/Requests/GetAccountsRequest.php +++ b/src/Loyalty/Accounts/Requests/GetAccountsRequest.php @@ -36,6 +36,7 @@ public function getAccountId(): string public function setAccountId(string $value): self { $this->accountId = $value; + $this->_setField('accountId'); return $this; } } diff --git a/src/Loyalty/Accounts/Requests/SearchLoyaltyAccountsRequest.php b/src/Loyalty/Accounts/Requests/SearchLoyaltyAccountsRequest.php index 51419d68..5cc1649e 100644 --- a/src/Loyalty/Accounts/Requests/SearchLoyaltyAccountsRequest.php +++ b/src/Loyalty/Accounts/Requests/SearchLoyaltyAccountsRequest.php @@ -62,6 +62,7 @@ public function getQuery(): ?SearchLoyaltyAccountsRequestLoyaltyAccountQuery public function setQuery(?SearchLoyaltyAccountsRequestLoyaltyAccountQuery $value = null): self { $this->query = $value; + $this->_setField('query'); return $this; } @@ -79,6 +80,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -96,6 +98,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } } diff --git a/src/Loyalty/LoyaltyClient.php b/src/Loyalty/LoyaltyClient.php index 3054cf93..73576d14 100644 --- a/src/Loyalty/LoyaltyClient.php +++ b/src/Loyalty/LoyaltyClient.php @@ -5,7 +5,7 @@ use Square\Loyalty\Accounts\AccountsClient; use Square\Loyalty\Programs\ProgramsClient; use Square\Loyalty\Rewards\RewardsClient; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Loyalty\Requests\SearchLoyaltyEventsRequest; use Square\Types\SearchLoyaltyEventsResponse; @@ -15,7 +15,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; class LoyaltyClient @@ -115,16 +114,6 @@ public function searchEvents(SearchLoyaltyEventsRequest $request = new SearchLoy } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Loyalty/Programs/ProgramsClient.php b/src/Loyalty/Programs/ProgramsClient.php index bfc4f4e5..3b404835 100644 --- a/src/Loyalty/Programs/ProgramsClient.php +++ b/src/Loyalty/Programs/ProgramsClient.php @@ -3,7 +3,7 @@ namespace Square\Loyalty\Programs; use Square\Loyalty\Programs\Promotions\PromotionsClient; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Types\ListLoyaltyProgramsResponse; use Square\Exceptions\SquareException; @@ -12,7 +12,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Loyalty\Programs\Requests\GetProgramsRequest; use Square\Types\GetLoyaltyProgramResponse; @@ -99,16 +98,6 @@ public function list(?array $options = null): ListLoyaltyProgramsResponse } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -156,16 +145,6 @@ public function get(GetProgramsRequest $request, ?array $options = null): GetLoy } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -226,16 +205,6 @@ public function calculate(CalculateLoyaltyPointsRequest $request, ?array $option } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Loyalty/Programs/Promotions/PromotionsClient.php b/src/Loyalty/Programs/Promotions/PromotionsClient.php index 5fc28fb0..b839b22e 100644 --- a/src/Loyalty/Programs/Promotions/PromotionsClient.php +++ b/src/Loyalty/Programs/Promotions/PromotionsClient.php @@ -2,7 +2,7 @@ namespace Square\Loyalty\Programs\Promotions; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Loyalty\Programs\Promotions\Requests\ListPromotionsRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Loyalty\Programs\Promotions\Requests\GetPromotionsRequest; use Square\Types\GetLoyaltyPromotionResponse; @@ -131,16 +130,6 @@ public function create(CreateLoyaltyPromotionRequest $request, ?array $options = } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -186,16 +175,6 @@ public function get(GetPromotionsRequest $request, ?array $options = null): GetL } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -246,16 +225,6 @@ public function cancel(CancelPromotionsRequest $request, ?array $options = null) } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -313,16 +282,6 @@ private function _list(ListPromotionsRequest $request, ?array $options = null): } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Loyalty/Programs/Promotions/Requests/CancelPromotionsRequest.php b/src/Loyalty/Programs/Promotions/Requests/CancelPromotionsRequest.php index 237524af..0fb60e2c 100644 --- a/src/Loyalty/Programs/Promotions/Requests/CancelPromotionsRequest.php +++ b/src/Loyalty/Programs/Promotions/Requests/CancelPromotionsRequest.php @@ -46,6 +46,7 @@ public function getProgramId(): string public function setProgramId(string $value): self { $this->programId = $value; + $this->_setField('programId'); return $this; } @@ -63,6 +64,7 @@ public function getPromotionId(): string public function setPromotionId(string $value): self { $this->promotionId = $value; + $this->_setField('promotionId'); return $this; } } diff --git a/src/Loyalty/Programs/Promotions/Requests/CreateLoyaltyPromotionRequest.php b/src/Loyalty/Programs/Promotions/Requests/CreateLoyaltyPromotionRequest.php index 7b9d748f..0c8fe422 100644 --- a/src/Loyalty/Programs/Promotions/Requests/CreateLoyaltyPromotionRequest.php +++ b/src/Loyalty/Programs/Promotions/Requests/CreateLoyaltyPromotionRequest.php @@ -61,6 +61,7 @@ public function getProgramId(): string public function setProgramId(string $value): self { $this->programId = $value; + $this->_setField('programId'); return $this; } @@ -78,6 +79,7 @@ public function getLoyaltyPromotion(): LoyaltyPromotion public function setLoyaltyPromotion(LoyaltyPromotion $value): self { $this->loyaltyPromotion = $value; + $this->_setField('loyaltyPromotion'); return $this; } @@ -95,6 +97,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } } diff --git a/src/Loyalty/Programs/Promotions/Requests/GetPromotionsRequest.php b/src/Loyalty/Programs/Promotions/Requests/GetPromotionsRequest.php index dcf21064..06c7c923 100644 --- a/src/Loyalty/Programs/Promotions/Requests/GetPromotionsRequest.php +++ b/src/Loyalty/Programs/Promotions/Requests/GetPromotionsRequest.php @@ -46,6 +46,7 @@ public function getProgramId(): string public function setProgramId(string $value): self { $this->programId = $value; + $this->_setField('programId'); return $this; } @@ -63,6 +64,7 @@ public function getPromotionId(): string public function setPromotionId(string $value): self { $this->promotionId = $value; + $this->_setField('promotionId'); return $this; } } diff --git a/src/Loyalty/Programs/Promotions/Requests/ListPromotionsRequest.php b/src/Loyalty/Programs/Promotions/Requests/ListPromotionsRequest.php index 59e53bfb..ea695918 100644 --- a/src/Loyalty/Programs/Promotions/Requests/ListPromotionsRequest.php +++ b/src/Loyalty/Programs/Promotions/Requests/ListPromotionsRequest.php @@ -73,6 +73,7 @@ public function getProgramId(): string public function setProgramId(string $value): self { $this->programId = $value; + $this->_setField('programId'); return $this; } @@ -90,6 +91,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -107,6 +109,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -124,6 +127,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } } diff --git a/src/Loyalty/Programs/Requests/CalculateLoyaltyPointsRequest.php b/src/Loyalty/Programs/Requests/CalculateLoyaltyPointsRequest.php index a8721f05..9a1f2f4b 100644 --- a/src/Loyalty/Programs/Requests/CalculateLoyaltyPointsRequest.php +++ b/src/Loyalty/Programs/Requests/CalculateLoyaltyPointsRequest.php @@ -79,6 +79,7 @@ public function getProgramId(): string public function setProgramId(string $value): self { $this->programId = $value; + $this->_setField('programId'); return $this; } @@ -96,6 +97,7 @@ public function getOrderId(): ?string public function setOrderId(?string $value = null): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } @@ -113,6 +115,7 @@ public function getTransactionAmountMoney(): ?Money public function setTransactionAmountMoney(?Money $value = null): self { $this->transactionAmountMoney = $value; + $this->_setField('transactionAmountMoney'); return $this; } @@ -130,6 +133,7 @@ public function getLoyaltyAccountId(): ?string public function setLoyaltyAccountId(?string $value = null): self { $this->loyaltyAccountId = $value; + $this->_setField('loyaltyAccountId'); return $this; } } diff --git a/src/Loyalty/Programs/Requests/GetProgramsRequest.php b/src/Loyalty/Programs/Requests/GetProgramsRequest.php index 94832d19..7830226e 100644 --- a/src/Loyalty/Programs/Requests/GetProgramsRequest.php +++ b/src/Loyalty/Programs/Requests/GetProgramsRequest.php @@ -36,6 +36,7 @@ public function getProgramId(): string public function setProgramId(string $value): self { $this->programId = $value; + $this->_setField('programId'); return $this; } } diff --git a/src/Loyalty/Requests/SearchLoyaltyEventsRequest.php b/src/Loyalty/Requests/SearchLoyaltyEventsRequest.php index 286dbdc1..876c3ff6 100644 --- a/src/Loyalty/Requests/SearchLoyaltyEventsRequest.php +++ b/src/Loyalty/Requests/SearchLoyaltyEventsRequest.php @@ -68,6 +68,7 @@ public function getQuery(): ?LoyaltyEventQuery public function setQuery(?LoyaltyEventQuery $value = null): self { $this->query = $value; + $this->_setField('query'); return $this; } @@ -85,6 +86,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -102,6 +104,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } } diff --git a/src/Loyalty/Rewards/Requests/CreateLoyaltyRewardRequest.php b/src/Loyalty/Rewards/Requests/CreateLoyaltyRewardRequest.php index 1b3d1c61..e8ec475a 100644 --- a/src/Loyalty/Rewards/Requests/CreateLoyaltyRewardRequest.php +++ b/src/Loyalty/Rewards/Requests/CreateLoyaltyRewardRequest.php @@ -50,6 +50,7 @@ public function getReward(): LoyaltyReward public function setReward(LoyaltyReward $value): self { $this->reward = $value; + $this->_setField('reward'); return $this; } @@ -67,6 +68,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } } diff --git a/src/Loyalty/Rewards/Requests/DeleteRewardsRequest.php b/src/Loyalty/Rewards/Requests/DeleteRewardsRequest.php index a8aa8b91..b0780a71 100644 --- a/src/Loyalty/Rewards/Requests/DeleteRewardsRequest.php +++ b/src/Loyalty/Rewards/Requests/DeleteRewardsRequest.php @@ -36,6 +36,7 @@ public function getRewardId(): string public function setRewardId(string $value): self { $this->rewardId = $value; + $this->_setField('rewardId'); return $this; } } diff --git a/src/Loyalty/Rewards/Requests/GetRewardsRequest.php b/src/Loyalty/Rewards/Requests/GetRewardsRequest.php index 6bff48a9..2a2089df 100644 --- a/src/Loyalty/Rewards/Requests/GetRewardsRequest.php +++ b/src/Loyalty/Rewards/Requests/GetRewardsRequest.php @@ -36,6 +36,7 @@ public function getRewardId(): string public function setRewardId(string $value): self { $this->rewardId = $value; + $this->_setField('rewardId'); return $this; } } diff --git a/src/Loyalty/Rewards/Requests/RedeemLoyaltyRewardRequest.php b/src/Loyalty/Rewards/Requests/RedeemLoyaltyRewardRequest.php index 0b2a4d20..1c588fdc 100644 --- a/src/Loyalty/Rewards/Requests/RedeemLoyaltyRewardRequest.php +++ b/src/Loyalty/Rewards/Requests/RedeemLoyaltyRewardRequest.php @@ -56,6 +56,7 @@ public function getRewardId(): string public function setRewardId(string $value): self { $this->rewardId = $value; + $this->_setField('rewardId'); return $this; } @@ -73,6 +74,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -90,6 +92,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } } diff --git a/src/Loyalty/Rewards/Requests/SearchLoyaltyRewardsRequest.php b/src/Loyalty/Rewards/Requests/SearchLoyaltyRewardsRequest.php index b9c72361..01c3b762 100644 --- a/src/Loyalty/Rewards/Requests/SearchLoyaltyRewardsRequest.php +++ b/src/Loyalty/Rewards/Requests/SearchLoyaltyRewardsRequest.php @@ -64,6 +64,7 @@ public function getQuery(): ?SearchLoyaltyRewardsRequestLoyaltyRewardQuery public function setQuery(?SearchLoyaltyRewardsRequestLoyaltyRewardQuery $value = null): self { $this->query = $value; + $this->_setField('query'); return $this; } @@ -81,6 +82,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -98,6 +100,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } } diff --git a/src/Loyalty/Rewards/RewardsClient.php b/src/Loyalty/Rewards/RewardsClient.php index 934c8098..279a77eb 100644 --- a/src/Loyalty/Rewards/RewardsClient.php +++ b/src/Loyalty/Rewards/RewardsClient.php @@ -2,7 +2,7 @@ namespace Square\Loyalty\Rewards; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Loyalty\Rewards\Requests\CreateLoyaltyRewardRequest; use Square\Types\CreateLoyaltyRewardResponse; @@ -12,7 +12,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Loyalty\Rewards\Requests\SearchLoyaltyRewardsRequest; use Square\Types\SearchLoyaltyRewardsResponse; @@ -102,16 +101,6 @@ public function create(CreateLoyaltyRewardRequest $request, ?array $options = nu } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -164,16 +153,6 @@ public function search(SearchLoyaltyRewardsRequest $request = new SearchLoyaltyR } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -219,16 +198,6 @@ public function get(GetRewardsRequest $request, ?array $options = null): GetLoya } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -282,16 +251,6 @@ public function delete(DeleteRewardsRequest $request, ?array $options = null): D } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -348,16 +307,6 @@ public function redeem(RedeemLoyaltyRewardRequest $request, ?array $options = nu } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Merchants/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.php b/src/Merchants/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.php index 354f9664..34ba34cc 100644 --- a/src/Merchants/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.php +++ b/src/Merchants/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.php @@ -2,7 +2,7 @@ namespace Square\Merchants\CustomAttributeDefinitions; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Merchants\CustomAttributeDefinitions\Requests\ListCustomAttributeDefinitionsRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Merchants\CustomAttributeDefinitions\Requests\GetCustomAttributeDefinitionsRequest; use Square\Types\RetrieveMerchantCustomAttributeDefinitionResponse; @@ -136,16 +135,6 @@ public function create(CreateMerchantCustomAttributeDefinitionRequest $request, } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -198,16 +187,6 @@ public function get(GetCustomAttributeDefinitionsRequest $request, ?array $optio } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -257,16 +236,6 @@ public function update(UpdateMerchantCustomAttributeDefinitionRequest $request, } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -315,16 +284,6 @@ public function delete(DeleteCustomAttributeDefinitionsRequest $request, ?array } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -384,16 +343,6 @@ private function _list(ListCustomAttributeDefinitionsRequest $request = new List } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Merchants/CustomAttributeDefinitions/Requests/CreateMerchantCustomAttributeDefinitionRequest.php b/src/Merchants/CustomAttributeDefinitions/Requests/CreateMerchantCustomAttributeDefinitionRequest.php index e515a0e2..9a8982a1 100644 --- a/src/Merchants/CustomAttributeDefinitions/Requests/CreateMerchantCustomAttributeDefinitionRequest.php +++ b/src/Merchants/CustomAttributeDefinitions/Requests/CreateMerchantCustomAttributeDefinitionRequest.php @@ -56,6 +56,7 @@ public function getCustomAttributeDefinition(): CustomAttributeDefinition public function setCustomAttributeDefinition(CustomAttributeDefinition $value): self { $this->customAttributeDefinition = $value; + $this->_setField('customAttributeDefinition'); return $this; } @@ -73,6 +74,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } } diff --git a/src/Merchants/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.php b/src/Merchants/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.php index fb91c32a..e6d9f20c 100644 --- a/src/Merchants/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.php +++ b/src/Merchants/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.php @@ -36,6 +36,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } } diff --git a/src/Merchants/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.php b/src/Merchants/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.php index 271b7a2d..d86888b1 100644 --- a/src/Merchants/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.php +++ b/src/Merchants/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.php @@ -51,6 +51,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } @@ -68,6 +69,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } } diff --git a/src/Merchants/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.php b/src/Merchants/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.php index 1d485512..45d2194e 100644 --- a/src/Merchants/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.php +++ b/src/Merchants/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.php @@ -59,6 +59,7 @@ public function getVisibilityFilter(): ?string public function setVisibilityFilter(?string $value = null): self { $this->visibilityFilter = $value; + $this->_setField('visibilityFilter'); return $this; } @@ -76,6 +77,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -93,6 +95,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } } diff --git a/src/Merchants/CustomAttributeDefinitions/Requests/UpdateMerchantCustomAttributeDefinitionRequest.php b/src/Merchants/CustomAttributeDefinitions/Requests/UpdateMerchantCustomAttributeDefinitionRequest.php index 85fc3877..d26fef09 100644 --- a/src/Merchants/CustomAttributeDefinitions/Requests/UpdateMerchantCustomAttributeDefinitionRequest.php +++ b/src/Merchants/CustomAttributeDefinitions/Requests/UpdateMerchantCustomAttributeDefinitionRequest.php @@ -71,6 +71,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } @@ -88,6 +89,7 @@ public function getCustomAttributeDefinition(): CustomAttributeDefinition public function setCustomAttributeDefinition(CustomAttributeDefinition $value): self { $this->customAttributeDefinition = $value; + $this->_setField('customAttributeDefinition'); return $this; } @@ -105,6 +107,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } } diff --git a/src/Merchants/CustomAttributes/CustomAttributesClient.php b/src/Merchants/CustomAttributes/CustomAttributesClient.php index a65b161c..eef4276a 100644 --- a/src/Merchants/CustomAttributes/CustomAttributesClient.php +++ b/src/Merchants/CustomAttributes/CustomAttributesClient.php @@ -2,7 +2,7 @@ namespace Square\Merchants\CustomAttributes; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Merchants\CustomAttributes\Requests\BulkDeleteMerchantCustomAttributesRequest; use Square\Types\BulkDeleteMerchantCustomAttributesResponse; @@ -12,7 +12,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Merchants\CustomAttributes\Requests\BulkUpsertMerchantCustomAttributesRequest; use Square\Types\BulkUpsertMerchantCustomAttributesResponse; @@ -102,16 +101,6 @@ public function batchDelete(BulkDeleteMerchantCustomAttributesRequest $request, } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -167,16 +156,6 @@ public function batchUpsert(BulkUpsertMerchantCustomAttributesRequest $request, } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -268,16 +247,6 @@ public function get(GetCustomAttributesRequest $request, ?array $options = null) } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -329,16 +298,6 @@ public function upsert(UpsertMerchantCustomAttributeRequest $request, ?array $op } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -386,16 +345,6 @@ public function delete(DeleteCustomAttributesRequest $request, ?array $options = } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -460,16 +409,6 @@ private function _list(ListCustomAttributesRequest $request, ?array $options = n } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Merchants/CustomAttributes/Requests/BulkDeleteMerchantCustomAttributesRequest.php b/src/Merchants/CustomAttributes/Requests/BulkDeleteMerchantCustomAttributesRequest.php index 4f804d69..0f37c6f9 100644 --- a/src/Merchants/CustomAttributes/Requests/BulkDeleteMerchantCustomAttributesRequest.php +++ b/src/Merchants/CustomAttributes/Requests/BulkDeleteMerchantCustomAttributesRequest.php @@ -43,6 +43,7 @@ public function getValues(): array public function setValues(array $value): self { $this->values = $value; + $this->_setField('values'); return $this; } } diff --git a/src/Merchants/CustomAttributes/Requests/BulkUpsertMerchantCustomAttributesRequest.php b/src/Merchants/CustomAttributes/Requests/BulkUpsertMerchantCustomAttributesRequest.php index cc4c2a97..350cf3ed 100644 --- a/src/Merchants/CustomAttributes/Requests/BulkUpsertMerchantCustomAttributesRequest.php +++ b/src/Merchants/CustomAttributes/Requests/BulkUpsertMerchantCustomAttributesRequest.php @@ -44,6 +44,7 @@ public function getValues(): array public function setValues(array $value): self { $this->values = $value; + $this->_setField('values'); return $this; } } diff --git a/src/Merchants/CustomAttributes/Requests/DeleteCustomAttributesRequest.php b/src/Merchants/CustomAttributes/Requests/DeleteCustomAttributesRequest.php index 218984b7..950a1023 100644 --- a/src/Merchants/CustomAttributes/Requests/DeleteCustomAttributesRequest.php +++ b/src/Merchants/CustomAttributes/Requests/DeleteCustomAttributesRequest.php @@ -47,6 +47,7 @@ public function getMerchantId(): string public function setMerchantId(string $value): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -64,6 +65,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } } diff --git a/src/Merchants/CustomAttributes/Requests/GetCustomAttributesRequest.php b/src/Merchants/CustomAttributes/Requests/GetCustomAttributesRequest.php index 5fe3adb2..4ddb9454 100644 --- a/src/Merchants/CustomAttributes/Requests/GetCustomAttributesRequest.php +++ b/src/Merchants/CustomAttributes/Requests/GetCustomAttributesRequest.php @@ -70,6 +70,7 @@ public function getMerchantId(): string public function setMerchantId(string $value): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -87,6 +88,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } @@ -104,6 +106,7 @@ public function getWithDefinition(): ?bool public function setWithDefinition(?bool $value = null): self { $this->withDefinition = $value; + $this->_setField('withDefinition'); return $this; } @@ -121,6 +124,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } } diff --git a/src/Merchants/CustomAttributes/Requests/ListCustomAttributesRequest.php b/src/Merchants/CustomAttributes/Requests/ListCustomAttributesRequest.php index 93ea40cd..4d1c8770 100644 --- a/src/Merchants/CustomAttributes/Requests/ListCustomAttributesRequest.php +++ b/src/Merchants/CustomAttributes/Requests/ListCustomAttributesRequest.php @@ -77,6 +77,7 @@ public function getMerchantId(): string public function setMerchantId(string $value): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -94,6 +95,7 @@ public function getVisibilityFilter(): ?string public function setVisibilityFilter(?string $value = null): self { $this->visibilityFilter = $value; + $this->_setField('visibilityFilter'); return $this; } @@ -111,6 +113,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -128,6 +131,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -145,6 +149,7 @@ public function getWithDefinitions(): ?bool public function setWithDefinitions(?bool $value = null): self { $this->withDefinitions = $value; + $this->_setField('withDefinitions'); return $this; } } diff --git a/src/Merchants/CustomAttributes/Requests/UpsertMerchantCustomAttributeRequest.php b/src/Merchants/CustomAttributes/Requests/UpsertMerchantCustomAttributeRequest.php index d436b81d..c34d12b0 100644 --- a/src/Merchants/CustomAttributes/Requests/UpsertMerchantCustomAttributeRequest.php +++ b/src/Merchants/CustomAttributes/Requests/UpsertMerchantCustomAttributeRequest.php @@ -75,6 +75,7 @@ public function getMerchantId(): string public function setMerchantId(string $value): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -92,6 +93,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } @@ -109,6 +111,7 @@ public function getCustomAttribute(): CustomAttribute public function setCustomAttribute(CustomAttribute $value): self { $this->customAttribute = $value; + $this->_setField('customAttribute'); return $this; } @@ -126,6 +129,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } } diff --git a/src/Merchants/MerchantsClient.php b/src/Merchants/MerchantsClient.php index bdb76451..6783c234 100644 --- a/src/Merchants/MerchantsClient.php +++ b/src/Merchants/MerchantsClient.php @@ -4,7 +4,7 @@ use Square\Merchants\CustomAttributeDefinitions\CustomAttributeDefinitionsClient; use Square\Merchants\CustomAttributes\CustomAttributesClient; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Merchants\Requests\ListMerchantsRequest; use Square\Core\Pagination\Pager; @@ -19,7 +19,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; class MerchantsClient @@ -143,16 +142,6 @@ public function get(GetMerchantsRequest $request, ?array $options = null): GetMe } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -212,16 +201,6 @@ private function _list(ListMerchantsRequest $request = new ListMerchantsRequest( } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Merchants/Requests/GetMerchantsRequest.php b/src/Merchants/Requests/GetMerchantsRequest.php index 5df4fe20..d973fbe1 100644 --- a/src/Merchants/Requests/GetMerchantsRequest.php +++ b/src/Merchants/Requests/GetMerchantsRequest.php @@ -39,6 +39,7 @@ public function getMerchantId(): string public function setMerchantId(string $value): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } } diff --git a/src/Merchants/Requests/ListMerchantsRequest.php b/src/Merchants/Requests/ListMerchantsRequest.php index 90e12a92..5bca2d1e 100644 --- a/src/Merchants/Requests/ListMerchantsRequest.php +++ b/src/Merchants/Requests/ListMerchantsRequest.php @@ -36,6 +36,7 @@ public function getCursor(): ?int public function setCursor(?int $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } } diff --git a/src/OAuth/OAuthClient.php b/src/OAuth/OAuthClient.php index bca77c84..ce847857 100644 --- a/src/OAuth/OAuthClient.php +++ b/src/OAuth/OAuthClient.php @@ -2,7 +2,7 @@ namespace Square\OAuth; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\OAuth\Requests\RevokeTokenRequest; use Square\Types\RevokeTokenResponse; @@ -12,7 +12,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\OAuth\Requests\ObtainTokenRequest; use Square\Types\ObtainTokenResponse; @@ -103,16 +102,6 @@ public function revokeToken(RevokeTokenRequest $request = new RevokeTokenRequest } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -179,16 +168,6 @@ public function obtainToken(ObtainTokenRequest $request, ?array $options = null) } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -246,16 +225,6 @@ public function retrieveTokenStatus(?array $options = null): RetrieveTokenStatus } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -294,16 +263,6 @@ public function authorize(?array $options = null): void if ($statusCode >= 200 && $statusCode < 400) { return; } - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/OAuth/Requests/ObtainTokenRequest.php b/src/OAuth/Requests/ObtainTokenRequest.php index 9406ce26..73df4172 100644 --- a/src/OAuth/Requests/ObtainTokenRequest.php +++ b/src/OAuth/Requests/ObtainTokenRequest.php @@ -181,6 +181,7 @@ public function getClientId(): string public function setClientId(string $value): self { $this->clientId = $value; + $this->_setField('clientId'); return $this; } @@ -198,6 +199,7 @@ public function getClientSecret(): ?string public function setClientSecret(?string $value = null): self { $this->clientSecret = $value; + $this->_setField('clientSecret'); return $this; } @@ -215,6 +217,7 @@ public function getCode(): ?string public function setCode(?string $value = null): self { $this->code = $value; + $this->_setField('code'); return $this; } @@ -232,6 +235,7 @@ public function getRedirectUri(): ?string public function setRedirectUri(?string $value = null): self { $this->redirectUri = $value; + $this->_setField('redirectUri'); return $this; } @@ -249,6 +253,7 @@ public function getGrantType(): string public function setGrantType(string $value): self { $this->grantType = $value; + $this->_setField('grantType'); return $this; } @@ -266,6 +271,7 @@ public function getRefreshToken(): ?string public function setRefreshToken(?string $value = null): self { $this->refreshToken = $value; + $this->_setField('refreshToken'); return $this; } @@ -283,6 +289,7 @@ public function getMigrationToken(): ?string public function setMigrationToken(?string $value = null): self { $this->migrationToken = $value; + $this->_setField('migrationToken'); return $this; } @@ -300,6 +307,7 @@ public function getScopes(): ?array public function setScopes(?array $value = null): self { $this->scopes = $value; + $this->_setField('scopes'); return $this; } @@ -317,6 +325,7 @@ public function getShortLived(): ?bool public function setShortLived(?bool $value = null): self { $this->shortLived = $value; + $this->_setField('shortLived'); return $this; } @@ -334,6 +343,7 @@ public function getCodeVerifier(): ?string public function setCodeVerifier(?string $value = null): self { $this->codeVerifier = $value; + $this->_setField('codeVerifier'); return $this; } @@ -351,6 +361,7 @@ public function getUseJwt(): ?bool public function setUseJwt(?bool $value = null): self { $this->useJwt = $value; + $this->_setField('useJwt'); return $this; } } diff --git a/src/OAuth/Requests/RevokeTokenRequest.php b/src/OAuth/Requests/RevokeTokenRequest.php index 3e98a626..9162e809 100644 --- a/src/OAuth/Requests/RevokeTokenRequest.php +++ b/src/OAuth/Requests/RevokeTokenRequest.php @@ -75,6 +75,7 @@ public function getClientId(): ?string public function setClientId(?string $value = null): self { $this->clientId = $value; + $this->_setField('clientId'); return $this; } @@ -92,6 +93,7 @@ public function getAccessToken(): ?string public function setAccessToken(?string $value = null): self { $this->accessToken = $value; + $this->_setField('accessToken'); return $this; } @@ -109,6 +111,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -126,6 +129,7 @@ public function getRevokeOnlyAccessToken(): ?bool public function setRevokeOnlyAccessToken(?bool $value = null): self { $this->revokeOnlyAccessToken = $value; + $this->_setField('revokeOnlyAccessToken'); return $this; } } diff --git a/src/Orders/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.php b/src/Orders/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.php index 7ee2b03e..05647a07 100644 --- a/src/Orders/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.php +++ b/src/Orders/CustomAttributeDefinitions/CustomAttributeDefinitionsClient.php @@ -2,7 +2,7 @@ namespace Square\Orders\CustomAttributeDefinitions; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Orders\CustomAttributeDefinitions\Requests\ListCustomAttributeDefinitionsRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Orders\CustomAttributeDefinitions\Requests\GetCustomAttributeDefinitionsRequest; use Square\Types\RetrieveOrderCustomAttributeDefinitionResponse; @@ -136,16 +135,6 @@ public function create(CreateOrderCustomAttributeDefinitionRequest $request, ?ar } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -200,16 +189,6 @@ public function get(GetCustomAttributeDefinitionsRequest $request, ?array $optio } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -258,16 +237,6 @@ public function update(UpdateOrderCustomAttributeDefinitionRequest $request, ?ar } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -315,16 +284,6 @@ public function delete(DeleteCustomAttributeDefinitionsRequest $request, ?array } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -386,16 +345,6 @@ private function _list(ListCustomAttributeDefinitionsRequest $request = new List } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Orders/CustomAttributeDefinitions/Requests/CreateOrderCustomAttributeDefinitionRequest.php b/src/Orders/CustomAttributeDefinitions/Requests/CreateOrderCustomAttributeDefinitionRequest.php index c14b5b54..c8e230cb 100644 --- a/src/Orders/CustomAttributeDefinitions/Requests/CreateOrderCustomAttributeDefinitionRequest.php +++ b/src/Orders/CustomAttributeDefinitions/Requests/CreateOrderCustomAttributeDefinitionRequest.php @@ -57,6 +57,7 @@ public function getCustomAttributeDefinition(): CustomAttributeDefinition public function setCustomAttributeDefinition(CustomAttributeDefinition $value): self { $this->customAttributeDefinition = $value; + $this->_setField('customAttributeDefinition'); return $this; } @@ -74,6 +75,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } } diff --git a/src/Orders/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.php b/src/Orders/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.php index d43d09cc..47f84f5a 100644 --- a/src/Orders/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.php +++ b/src/Orders/CustomAttributeDefinitions/Requests/DeleteCustomAttributeDefinitionsRequest.php @@ -36,6 +36,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } } diff --git a/src/Orders/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.php b/src/Orders/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.php index f535665a..6d4c3b5e 100644 --- a/src/Orders/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.php +++ b/src/Orders/CustomAttributeDefinitions/Requests/GetCustomAttributeDefinitionsRequest.php @@ -46,6 +46,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } @@ -63,6 +64,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } } diff --git a/src/Orders/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.php b/src/Orders/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.php index b0649f44..775afe88 100644 --- a/src/Orders/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.php +++ b/src/Orders/CustomAttributeDefinitions/Requests/ListCustomAttributeDefinitionsRequest.php @@ -60,6 +60,7 @@ public function getVisibilityFilter(): ?string public function setVisibilityFilter(?string $value = null): self { $this->visibilityFilter = $value; + $this->_setField('visibilityFilter'); return $this; } @@ -77,6 +78,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -94,6 +96,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } } diff --git a/src/Orders/CustomAttributeDefinitions/Requests/UpdateOrderCustomAttributeDefinitionRequest.php b/src/Orders/CustomAttributeDefinitions/Requests/UpdateOrderCustomAttributeDefinitionRequest.php index 3284e3b6..3817f700 100644 --- a/src/Orders/CustomAttributeDefinitions/Requests/UpdateOrderCustomAttributeDefinitionRequest.php +++ b/src/Orders/CustomAttributeDefinitions/Requests/UpdateOrderCustomAttributeDefinitionRequest.php @@ -63,6 +63,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } @@ -80,6 +81,7 @@ public function getCustomAttributeDefinition(): CustomAttributeDefinition public function setCustomAttributeDefinition(CustomAttributeDefinition $value): self { $this->customAttributeDefinition = $value; + $this->_setField('customAttributeDefinition'); return $this; } @@ -97,6 +99,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } } diff --git a/src/Orders/CustomAttributes/CustomAttributesClient.php b/src/Orders/CustomAttributes/CustomAttributesClient.php index 2afb30b8..ccf43d91 100644 --- a/src/Orders/CustomAttributes/CustomAttributesClient.php +++ b/src/Orders/CustomAttributes/CustomAttributesClient.php @@ -2,7 +2,7 @@ namespace Square\Orders\CustomAttributes; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Orders\CustomAttributes\Requests\BulkDeleteOrderCustomAttributesRequest; use Square\Types\BulkDeleteOrderCustomAttributesResponse; @@ -12,7 +12,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Orders\CustomAttributes\Requests\BulkUpsertOrderCustomAttributesRequest; use Square\Types\BulkUpsertOrderCustomAttributesResponse; @@ -113,16 +112,6 @@ public function batchDelete(BulkDeleteOrderCustomAttributesRequest $request, ?ar } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -182,16 +171,6 @@ public function batchUpsert(BulkUpsertOrderCustomAttributesRequest $request, ?ar } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -288,16 +267,6 @@ public function get(GetCustomAttributesRequest $request, ?array $options = null) } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -352,16 +321,6 @@ public function upsert(UpsertOrderCustomAttributeRequest $request, ?array $optio } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -411,16 +370,6 @@ public function delete(DeleteCustomAttributesRequest $request, ?array $options = } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -487,16 +436,6 @@ private function _list(ListCustomAttributesRequest $request, ?array $options = n } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Orders/CustomAttributes/Requests/BulkDeleteOrderCustomAttributesRequest.php b/src/Orders/CustomAttributes/Requests/BulkDeleteOrderCustomAttributesRequest.php index d7e28d97..b510e103 100644 --- a/src/Orders/CustomAttributes/Requests/BulkDeleteOrderCustomAttributesRequest.php +++ b/src/Orders/CustomAttributes/Requests/BulkDeleteOrderCustomAttributesRequest.php @@ -40,6 +40,7 @@ public function getValues(): array public function setValues(array $value): self { $this->values = $value; + $this->_setField('values'); return $this; } } diff --git a/src/Orders/CustomAttributes/Requests/BulkUpsertOrderCustomAttributesRequest.php b/src/Orders/CustomAttributes/Requests/BulkUpsertOrderCustomAttributesRequest.php index d6255f68..6625ac88 100644 --- a/src/Orders/CustomAttributes/Requests/BulkUpsertOrderCustomAttributesRequest.php +++ b/src/Orders/CustomAttributes/Requests/BulkUpsertOrderCustomAttributesRequest.php @@ -40,6 +40,7 @@ public function getValues(): array public function setValues(array $value): self { $this->values = $value; + $this->_setField('values'); return $this; } } diff --git a/src/Orders/CustomAttributes/Requests/DeleteCustomAttributesRequest.php b/src/Orders/CustomAttributes/Requests/DeleteCustomAttributesRequest.php index e6612d05..25e5da8a 100644 --- a/src/Orders/CustomAttributes/Requests/DeleteCustomAttributesRequest.php +++ b/src/Orders/CustomAttributes/Requests/DeleteCustomAttributesRequest.php @@ -46,6 +46,7 @@ public function getOrderId(): string public function setOrderId(string $value): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } @@ -63,6 +64,7 @@ public function getCustomAttributeKey(): string public function setCustomAttributeKey(string $value): self { $this->customAttributeKey = $value; + $this->_setField('customAttributeKey'); return $this; } } diff --git a/src/Orders/CustomAttributes/Requests/GetCustomAttributesRequest.php b/src/Orders/CustomAttributes/Requests/GetCustomAttributesRequest.php index 39ba872b..88ee39c1 100644 --- a/src/Orders/CustomAttributes/Requests/GetCustomAttributesRequest.php +++ b/src/Orders/CustomAttributes/Requests/GetCustomAttributesRequest.php @@ -67,6 +67,7 @@ public function getOrderId(): string public function setOrderId(string $value): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } @@ -84,6 +85,7 @@ public function getCustomAttributeKey(): string public function setCustomAttributeKey(string $value): self { $this->customAttributeKey = $value; + $this->_setField('customAttributeKey'); return $this; } @@ -101,6 +103,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -118,6 +121,7 @@ public function getWithDefinition(): ?bool public function setWithDefinition(?bool $value = null): self { $this->withDefinition = $value; + $this->_setField('withDefinition'); return $this; } } diff --git a/src/Orders/CustomAttributes/Requests/ListCustomAttributesRequest.php b/src/Orders/CustomAttributes/Requests/ListCustomAttributesRequest.php index 1426bf10..95a0566e 100644 --- a/src/Orders/CustomAttributes/Requests/ListCustomAttributesRequest.php +++ b/src/Orders/CustomAttributes/Requests/ListCustomAttributesRequest.php @@ -78,6 +78,7 @@ public function getOrderId(): string public function setOrderId(string $value): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } @@ -95,6 +96,7 @@ public function getVisibilityFilter(): ?string public function setVisibilityFilter(?string $value = null): self { $this->visibilityFilter = $value; + $this->_setField('visibilityFilter'); return $this; } @@ -112,6 +114,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -129,6 +132,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -146,6 +150,7 @@ public function getWithDefinitions(): ?bool public function setWithDefinitions(?bool $value = null): self { $this->withDefinitions = $value; + $this->_setField('withDefinitions'); return $this; } } diff --git a/src/Orders/CustomAttributes/Requests/UpsertOrderCustomAttributeRequest.php b/src/Orders/CustomAttributes/Requests/UpsertOrderCustomAttributeRequest.php index 8502f5de..85f2d88e 100644 --- a/src/Orders/CustomAttributes/Requests/UpsertOrderCustomAttributeRequest.php +++ b/src/Orders/CustomAttributes/Requests/UpsertOrderCustomAttributeRequest.php @@ -75,6 +75,7 @@ public function getOrderId(): string public function setOrderId(string $value): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } @@ -92,6 +93,7 @@ public function getCustomAttributeKey(): string public function setCustomAttributeKey(string $value): self { $this->customAttributeKey = $value; + $this->_setField('customAttributeKey'); return $this; } @@ -109,6 +111,7 @@ public function getCustomAttribute(): CustomAttribute public function setCustomAttribute(CustomAttribute $value): self { $this->customAttribute = $value; + $this->_setField('customAttribute'); return $this; } @@ -126,6 +129,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } } diff --git a/src/Orders/OrdersClient.php b/src/Orders/OrdersClient.php index 98996e72..99e65062 100644 --- a/src/Orders/OrdersClient.php +++ b/src/Orders/OrdersClient.php @@ -4,7 +4,7 @@ use Square\Orders\CustomAttributeDefinitions\CustomAttributeDefinitionsClient; use Square\Orders\CustomAttributes\CustomAttributesClient; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Types\CreateOrderRequest; use Square\Types\CreateOrderResponse; @@ -14,7 +14,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Orders\Requests\BatchGetOrdersRequest; use Square\Types\BatchGetOrdersResponse; @@ -121,16 +120,6 @@ public function create(CreateOrderRequest $request, ?array $options = null): Cre } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -179,16 +168,6 @@ public function batchGet(BatchGetOrdersRequest $request, ?array $options = null) } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -235,16 +214,6 @@ public function calculate(CalculateOrderRequest $request, ?array $options = null } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -292,16 +261,6 @@ public function clone(CloneOrderRequest $request, ?array $options = null): Clone } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -364,16 +323,6 @@ public function search(SearchOrdersRequest $request = new SearchOrdersRequest(), } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -419,16 +368,6 @@ public function get(GetOrdersRequest $request, ?array $options = null): GetOrder } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -489,16 +428,6 @@ public function update(UpdateOrderRequest $request, ?array $options = null): Upd } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -558,16 +487,6 @@ public function pay(PayOrderRequest $request, ?array $options = null): PayOrderR } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Orders/Requests/BatchGetOrdersRequest.php b/src/Orders/Requests/BatchGetOrdersRequest.php index cbe25b21..e5ac6b07 100644 --- a/src/Orders/Requests/BatchGetOrdersRequest.php +++ b/src/Orders/Requests/BatchGetOrdersRequest.php @@ -50,6 +50,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -67,6 +68,7 @@ public function getOrderIds(): array public function setOrderIds(array $value): self { $this->orderIds = $value; + $this->_setField('orderIds'); return $this; } } diff --git a/src/Orders/Requests/CalculateOrderRequest.php b/src/Orders/Requests/CalculateOrderRequest.php index 14e270e8..6e45019f 100644 --- a/src/Orders/Requests/CalculateOrderRequest.php +++ b/src/Orders/Requests/CalculateOrderRequest.php @@ -55,6 +55,7 @@ public function getOrder(): Order public function setOrder(Order $value): self { $this->order = $value; + $this->_setField('order'); return $this; } @@ -72,6 +73,7 @@ public function getProposedRewards(): ?array public function setProposedRewards(?array $value = null): self { $this->proposedRewards = $value; + $this->_setField('proposedRewards'); return $this; } } diff --git a/src/Orders/Requests/CloneOrderRequest.php b/src/Orders/Requests/CloneOrderRequest.php index 41142d92..796d6371 100644 --- a/src/Orders/Requests/CloneOrderRequest.php +++ b/src/Orders/Requests/CloneOrderRequest.php @@ -68,6 +68,7 @@ public function getOrderId(): string public function setOrderId(string $value): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } @@ -85,6 +86,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -102,6 +104,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } } diff --git a/src/Orders/Requests/GetOrdersRequest.php b/src/Orders/Requests/GetOrdersRequest.php index dd86c99c..0823c31b 100644 --- a/src/Orders/Requests/GetOrdersRequest.php +++ b/src/Orders/Requests/GetOrdersRequest.php @@ -36,6 +36,7 @@ public function getOrderId(): string public function setOrderId(string $value): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } } diff --git a/src/Orders/Requests/PayOrderRequest.php b/src/Orders/Requests/PayOrderRequest.php index 4113bc92..df4ae849 100644 --- a/src/Orders/Requests/PayOrderRequest.php +++ b/src/Orders/Requests/PayOrderRequest.php @@ -71,6 +71,7 @@ public function getOrderId(): string public function setOrderId(string $value): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } @@ -88,6 +89,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -105,6 +107,7 @@ public function getOrderVersion(): ?int public function setOrderVersion(?int $value = null): self { $this->orderVersion = $value; + $this->_setField('orderVersion'); return $this; } @@ -122,6 +125,7 @@ public function getPaymentIds(): ?array public function setPaymentIds(?array $value = null): self { $this->paymentIds = $value; + $this->_setField('paymentIds'); return $this; } } diff --git a/src/Orders/Requests/SearchOrdersRequest.php b/src/Orders/Requests/SearchOrdersRequest.php index ff900853..cac3c755 100644 --- a/src/Orders/Requests/SearchOrdersRequest.php +++ b/src/Orders/Requests/SearchOrdersRequest.php @@ -95,6 +95,7 @@ public function getLocationIds(): ?array public function setLocationIds(?array $value = null): self { $this->locationIds = $value; + $this->_setField('locationIds'); return $this; } @@ -112,6 +113,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -129,6 +131,7 @@ public function getQuery(): ?SearchOrdersQuery public function setQuery(?SearchOrdersQuery $value = null): self { $this->query = $value; + $this->_setField('query'); return $this; } @@ -146,6 +149,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -163,6 +167,7 @@ public function getReturnEntries(): ?bool public function setReturnEntries(?bool $value = null): self { $this->returnEntries = $value; + $this->_setField('returnEntries'); return $this; } } diff --git a/src/Orders/Requests/UpdateOrderRequest.php b/src/Orders/Requests/UpdateOrderRequest.php index 13476d6a..00653beb 100644 --- a/src/Orders/Requests/UpdateOrderRequest.php +++ b/src/Orders/Requests/UpdateOrderRequest.php @@ -80,6 +80,7 @@ public function getOrderId(): string public function setOrderId(string $value): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } @@ -97,6 +98,7 @@ public function getOrder(): ?Order public function setOrder(?Order $value = null): self { $this->order = $value; + $this->_setField('order'); return $this; } @@ -114,6 +116,7 @@ public function getFieldsToClear(): ?array public function setFieldsToClear(?array $value = null): self { $this->fieldsToClear = $value; + $this->_setField('fieldsToClear'); return $this; } @@ -131,6 +134,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } } diff --git a/src/Payments/PaymentsClient.php b/src/Payments/PaymentsClient.php index 45b9f050..79b744f2 100644 --- a/src/Payments/PaymentsClient.php +++ b/src/Payments/PaymentsClient.php @@ -2,7 +2,7 @@ namespace Square\Payments; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Payments\Requests\ListPaymentsRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Payments\Requests\CancelPaymentByIdempotencyKeyRequest; use Square\Types\CancelPaymentByIdempotencyKeyResponse; @@ -143,16 +142,6 @@ public function create(CreatePaymentRequest $request, ?array $options = null): C } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -209,16 +198,6 @@ public function cancelByIdempotencyKey(CancelPaymentByIdempotencyKeyRequest $req } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -264,16 +243,6 @@ public function get(GetPaymentsRequest $request, ?array $options = null): GetPay } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -321,16 +290,6 @@ public function update(UpdatePaymentRequest $request, ?array $options = null): U } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -377,16 +336,6 @@ public function cancel(CancelPaymentsRequest $request, ?array $options = null): } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -436,16 +385,6 @@ public function complete(CompletePaymentRequest $request, ?array $options = null } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -543,16 +482,6 @@ private function _list(ListPaymentsRequest $request = new ListPaymentsRequest(), } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Payments/Requests/CancelPaymentByIdempotencyKeyRequest.php b/src/Payments/Requests/CancelPaymentByIdempotencyKeyRequest.php index 9f7219e5..4f20c49f 100644 --- a/src/Payments/Requests/CancelPaymentByIdempotencyKeyRequest.php +++ b/src/Payments/Requests/CancelPaymentByIdempotencyKeyRequest.php @@ -38,6 +38,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } } diff --git a/src/Payments/Requests/CancelPaymentsRequest.php b/src/Payments/Requests/CancelPaymentsRequest.php index 2d1a3693..79c0ae19 100644 --- a/src/Payments/Requests/CancelPaymentsRequest.php +++ b/src/Payments/Requests/CancelPaymentsRequest.php @@ -36,6 +36,7 @@ public function getPaymentId(): string public function setPaymentId(string $value): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } } diff --git a/src/Payments/Requests/CompletePaymentRequest.php b/src/Payments/Requests/CompletePaymentRequest.php index 65e5ed1b..741781b0 100644 --- a/src/Payments/Requests/CompletePaymentRequest.php +++ b/src/Payments/Requests/CompletePaymentRequest.php @@ -49,6 +49,7 @@ public function getPaymentId(): string public function setPaymentId(string $value): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } @@ -66,6 +67,7 @@ public function getVersionToken(): ?string public function setVersionToken(?string $value = null): self { $this->versionToken = $value; + $this->_setField('versionToken'); return $this; } } diff --git a/src/Payments/Requests/CreatePaymentRequest.php b/src/Payments/Requests/CreatePaymentRequest.php index 56005061..ffaac622 100644 --- a/src/Payments/Requests/CreatePaymentRequest.php +++ b/src/Payments/Requests/CreatePaymentRequest.php @@ -369,6 +369,7 @@ public function getSourceId(): string public function setSourceId(string $value): self { $this->sourceId = $value; + $this->_setField('sourceId'); return $this; } @@ -386,6 +387,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -403,6 +405,7 @@ public function getAmountMoney(): ?Money public function setAmountMoney(?Money $value = null): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } @@ -420,6 +423,7 @@ public function getTipMoney(): ?Money public function setTipMoney(?Money $value = null): self { $this->tipMoney = $value; + $this->_setField('tipMoney'); return $this; } @@ -437,6 +441,7 @@ public function getAppFeeMoney(): ?Money public function setAppFeeMoney(?Money $value = null): self { $this->appFeeMoney = $value; + $this->_setField('appFeeMoney'); return $this; } @@ -454,6 +459,7 @@ public function getDelayDuration(): ?string public function setDelayDuration(?string $value = null): self { $this->delayDuration = $value; + $this->_setField('delayDuration'); return $this; } @@ -471,6 +477,7 @@ public function getDelayAction(): ?string public function setDelayAction(?string $value = null): self { $this->delayAction = $value; + $this->_setField('delayAction'); return $this; } @@ -488,6 +495,7 @@ public function getAutocomplete(): ?bool public function setAutocomplete(?bool $value = null): self { $this->autocomplete = $value; + $this->_setField('autocomplete'); return $this; } @@ -505,6 +513,7 @@ public function getOrderId(): ?string public function setOrderId(?string $value = null): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } @@ -522,6 +531,7 @@ public function getCustomerId(): ?string public function setCustomerId(?string $value = null): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -539,6 +549,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -556,6 +567,7 @@ public function getTeamMemberId(): ?string public function setTeamMemberId(?string $value = null): self { $this->teamMemberId = $value; + $this->_setField('teamMemberId'); return $this; } @@ -573,6 +585,7 @@ public function getReferenceId(): ?string public function setReferenceId(?string $value = null): self { $this->referenceId = $value; + $this->_setField('referenceId'); return $this; } @@ -590,6 +603,7 @@ public function getVerificationToken(): ?string public function setVerificationToken(?string $value = null): self { $this->verificationToken = $value; + $this->_setField('verificationToken'); return $this; } @@ -607,6 +621,7 @@ public function getAcceptPartialAuthorization(): ?bool public function setAcceptPartialAuthorization(?bool $value = null): self { $this->acceptPartialAuthorization = $value; + $this->_setField('acceptPartialAuthorization'); return $this; } @@ -624,6 +639,7 @@ public function getBuyerEmailAddress(): ?string public function setBuyerEmailAddress(?string $value = null): self { $this->buyerEmailAddress = $value; + $this->_setField('buyerEmailAddress'); return $this; } @@ -641,6 +657,7 @@ public function getBuyerPhoneNumber(): ?string public function setBuyerPhoneNumber(?string $value = null): self { $this->buyerPhoneNumber = $value; + $this->_setField('buyerPhoneNumber'); return $this; } @@ -658,6 +675,7 @@ public function getBillingAddress(): ?Address public function setBillingAddress(?Address $value = null): self { $this->billingAddress = $value; + $this->_setField('billingAddress'); return $this; } @@ -675,6 +693,7 @@ public function getShippingAddress(): ?Address public function setShippingAddress(?Address $value = null): self { $this->shippingAddress = $value; + $this->_setField('shippingAddress'); return $this; } @@ -692,6 +711,7 @@ public function getNote(): ?string public function setNote(?string $value = null): self { $this->note = $value; + $this->_setField('note'); return $this; } @@ -709,6 +729,7 @@ public function getStatementDescriptionIdentifier(): ?string public function setStatementDescriptionIdentifier(?string $value = null): self { $this->statementDescriptionIdentifier = $value; + $this->_setField('statementDescriptionIdentifier'); return $this; } @@ -726,6 +747,7 @@ public function getCashDetails(): ?CashPaymentDetails public function setCashDetails(?CashPaymentDetails $value = null): self { $this->cashDetails = $value; + $this->_setField('cashDetails'); return $this; } @@ -743,6 +765,7 @@ public function getExternalDetails(): ?ExternalPaymentDetails public function setExternalDetails(?ExternalPaymentDetails $value = null): self { $this->externalDetails = $value; + $this->_setField('externalDetails'); return $this; } @@ -760,6 +783,7 @@ public function getCustomerDetails(): ?CustomerDetails public function setCustomerDetails(?CustomerDetails $value = null): self { $this->customerDetails = $value; + $this->_setField('customerDetails'); return $this; } @@ -777,6 +801,7 @@ public function getOfflinePaymentDetails(): ?OfflinePaymentDetails public function setOfflinePaymentDetails(?OfflinePaymentDetails $value = null): self { $this->offlinePaymentDetails = $value; + $this->_setField('offlinePaymentDetails'); return $this; } } diff --git a/src/Payments/Requests/GetPaymentsRequest.php b/src/Payments/Requests/GetPaymentsRequest.php index 085adb95..88fcd6a9 100644 --- a/src/Payments/Requests/GetPaymentsRequest.php +++ b/src/Payments/Requests/GetPaymentsRequest.php @@ -36,6 +36,7 @@ public function getPaymentId(): string public function setPaymentId(string $value): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } } diff --git a/src/Payments/Requests/ListPaymentsRequest.php b/src/Payments/Requests/ListPaymentsRequest.php index b0df5d80..97681486 100644 --- a/src/Payments/Requests/ListPaymentsRequest.php +++ b/src/Payments/Requests/ListPaymentsRequest.php @@ -184,6 +184,7 @@ public function getBeginTime(): ?string public function setBeginTime(?string $value = null): self { $this->beginTime = $value; + $this->_setField('beginTime'); return $this; } @@ -201,6 +202,7 @@ public function getEndTime(): ?string public function setEndTime(?string $value = null): self { $this->endTime = $value; + $this->_setField('endTime'); return $this; } @@ -218,6 +220,7 @@ public function getSortOrder(): ?string public function setSortOrder(?string $value = null): self { $this->sortOrder = $value; + $this->_setField('sortOrder'); return $this; } @@ -235,6 +238,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -252,6 +256,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -269,6 +274,7 @@ public function getTotal(): ?int public function setTotal(?int $value = null): self { $this->total = $value; + $this->_setField('total'); return $this; } @@ -286,6 +292,7 @@ public function getLast4(): ?string public function setLast4(?string $value = null): self { $this->last4 = $value; + $this->_setField('last4'); return $this; } @@ -303,6 +310,7 @@ public function getCardBrand(): ?string public function setCardBrand(?string $value = null): self { $this->cardBrand = $value; + $this->_setField('cardBrand'); return $this; } @@ -320,6 +328,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -337,6 +346,7 @@ public function getIsOfflinePayment(): ?bool public function setIsOfflinePayment(?bool $value = null): self { $this->isOfflinePayment = $value; + $this->_setField('isOfflinePayment'); return $this; } @@ -354,6 +364,7 @@ public function getOfflineBeginTime(): ?string public function setOfflineBeginTime(?string $value = null): self { $this->offlineBeginTime = $value; + $this->_setField('offlineBeginTime'); return $this; } @@ -371,6 +382,7 @@ public function getOfflineEndTime(): ?string public function setOfflineEndTime(?string $value = null): self { $this->offlineEndTime = $value; + $this->_setField('offlineEndTime'); return $this; } @@ -388,6 +400,7 @@ public function getUpdatedAtBeginTime(): ?string public function setUpdatedAtBeginTime(?string $value = null): self { $this->updatedAtBeginTime = $value; + $this->_setField('updatedAtBeginTime'); return $this; } @@ -405,6 +418,7 @@ public function getUpdatedAtEndTime(): ?string public function setUpdatedAtEndTime(?string $value = null): self { $this->updatedAtEndTime = $value; + $this->_setField('updatedAtEndTime'); return $this; } @@ -422,6 +436,7 @@ public function getSortField(): ?string public function setSortField(?string $value = null): self { $this->sortField = $value; + $this->_setField('sortField'); return $this; } } diff --git a/src/Payments/Requests/UpdatePaymentRequest.php b/src/Payments/Requests/UpdatePaymentRequest.php index e8e99e0f..306ebcf8 100644 --- a/src/Payments/Requests/UpdatePaymentRequest.php +++ b/src/Payments/Requests/UpdatePaymentRequest.php @@ -59,6 +59,7 @@ public function getPaymentId(): string public function setPaymentId(string $value): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } @@ -76,6 +77,7 @@ public function getPayment(): ?Payment public function setPayment(?Payment $value = null): self { $this->payment = $value; + $this->_setField('payment'); return $this; } @@ -93,6 +95,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } } diff --git a/src/Payouts/PayoutsClient.php b/src/Payouts/PayoutsClient.php index d4aac3aa..70d14e8f 100644 --- a/src/Payouts/PayoutsClient.php +++ b/src/Payouts/PayoutsClient.php @@ -2,7 +2,7 @@ namespace Square\Payouts; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Payouts\Requests\ListPayoutsRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Payouts\Requests\ListEntriesPayoutsRequest; use Square\Types\PayoutEntry; @@ -126,16 +125,6 @@ public function get(GetPayoutsRequest $request, ?array $options = null): GetPayo } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -236,16 +225,6 @@ private function _list(ListPayoutsRequest $request = new ListPayoutsRequest(), ? } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -303,16 +282,6 @@ private function _listEntries(ListEntriesPayoutsRequest $request, ?array $option } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Payouts/Requests/GetPayoutsRequest.php b/src/Payouts/Requests/GetPayoutsRequest.php index 92e3edf9..6d30f1ad 100644 --- a/src/Payouts/Requests/GetPayoutsRequest.php +++ b/src/Payouts/Requests/GetPayoutsRequest.php @@ -36,6 +36,7 @@ public function getPayoutId(): string public function setPayoutId(string $value): self { $this->payoutId = $value; + $this->_setField('payoutId'); return $this; } } diff --git a/src/Payouts/Requests/ListEntriesPayoutsRequest.php b/src/Payouts/Requests/ListEntriesPayoutsRequest.php index 4164970e..61ff077b 100644 --- a/src/Payouts/Requests/ListEntriesPayoutsRequest.php +++ b/src/Payouts/Requests/ListEntriesPayoutsRequest.php @@ -69,6 +69,7 @@ public function getPayoutId(): string public function setPayoutId(string $value): self { $this->payoutId = $value; + $this->_setField('payoutId'); return $this; } @@ -86,6 +87,7 @@ public function getSortOrder(): ?string public function setSortOrder(?string $value = null): self { $this->sortOrder = $value; + $this->_setField('sortOrder'); return $this; } @@ -103,6 +105,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -120,6 +123,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } } diff --git a/src/Payouts/Requests/ListPayoutsRequest.php b/src/Payouts/Requests/ListPayoutsRequest.php index fcda88ed..e49a3b9a 100644 --- a/src/Payouts/Requests/ListPayoutsRequest.php +++ b/src/Payouts/Requests/ListPayoutsRequest.php @@ -100,6 +100,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -117,6 +118,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -134,6 +136,7 @@ public function getBeginTime(): ?string public function setBeginTime(?string $value = null): self { $this->beginTime = $value; + $this->_setField('beginTime'); return $this; } @@ -151,6 +154,7 @@ public function getEndTime(): ?string public function setEndTime(?string $value = null): self { $this->endTime = $value; + $this->_setField('endTime'); return $this; } @@ -168,6 +172,7 @@ public function getSortOrder(): ?string public function setSortOrder(?string $value = null): self { $this->sortOrder = $value; + $this->_setField('sortOrder'); return $this; } @@ -185,6 +190,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -202,6 +208,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } } diff --git a/src/Refunds/RefundsClient.php b/src/Refunds/RefundsClient.php index 57d76e8c..75db46a8 100644 --- a/src/Refunds/RefundsClient.php +++ b/src/Refunds/RefundsClient.php @@ -2,7 +2,7 @@ namespace Square\Refunds; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Refunds\Requests\ListRefundsRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Refunds\Requests\GetRefundsRequest; use Square\Types\GetPaymentRefundResponse; @@ -131,16 +130,6 @@ public function refundPayment(RefundPaymentRequest $request, ?array $options = n } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -186,16 +175,6 @@ public function get(GetRefundsRequest $request, ?array $options = null): GetPaym } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -281,16 +260,6 @@ private function _list(ListRefundsRequest $request = new ListRefundsRequest(), ? } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Refunds/Requests/GetRefundsRequest.php b/src/Refunds/Requests/GetRefundsRequest.php index 49a054e7..e00536cf 100644 --- a/src/Refunds/Requests/GetRefundsRequest.php +++ b/src/Refunds/Requests/GetRefundsRequest.php @@ -36,6 +36,7 @@ public function getRefundId(): string public function setRefundId(string $value): self { $this->refundId = $value; + $this->_setField('refundId'); return $this; } } diff --git a/src/Refunds/Requests/ListRefundsRequest.php b/src/Refunds/Requests/ListRefundsRequest.php index 261523eb..9bcfe292 100644 --- a/src/Refunds/Requests/ListRefundsRequest.php +++ b/src/Refunds/Requests/ListRefundsRequest.php @@ -159,6 +159,7 @@ public function getBeginTime(): ?string public function setBeginTime(?string $value = null): self { $this->beginTime = $value; + $this->_setField('beginTime'); return $this; } @@ -176,6 +177,7 @@ public function getEndTime(): ?string public function setEndTime(?string $value = null): self { $this->endTime = $value; + $this->_setField('endTime'); return $this; } @@ -193,6 +195,7 @@ public function getSortOrder(): ?string public function setSortOrder(?string $value = null): self { $this->sortOrder = $value; + $this->_setField('sortOrder'); return $this; } @@ -210,6 +213,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -227,6 +231,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -244,6 +249,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -261,6 +267,7 @@ public function getSourceType(): ?string public function setSourceType(?string $value = null): self { $this->sourceType = $value; + $this->_setField('sourceType'); return $this; } @@ -278,6 +285,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -295,6 +303,7 @@ public function getUpdatedAtBeginTime(): ?string public function setUpdatedAtBeginTime(?string $value = null): self { $this->updatedAtBeginTime = $value; + $this->_setField('updatedAtBeginTime'); return $this; } @@ -312,6 +321,7 @@ public function getUpdatedAtEndTime(): ?string public function setUpdatedAtEndTime(?string $value = null): self { $this->updatedAtEndTime = $value; + $this->_setField('updatedAtEndTime'); return $this; } @@ -329,6 +339,7 @@ public function getSortField(): ?string public function setSortField(?string $value = null): self { $this->sortField = $value; + $this->_setField('sortField'); return $this; } } diff --git a/src/Refunds/Requests/RefundPaymentRequest.php b/src/Refunds/Requests/RefundPaymentRequest.php index 906cc5c0..f3858d0b 100644 --- a/src/Refunds/Requests/RefundPaymentRequest.php +++ b/src/Refunds/Requests/RefundPaymentRequest.php @@ -201,6 +201,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -218,6 +219,7 @@ public function getAmountMoney(): Money public function setAmountMoney(Money $value): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } @@ -235,6 +237,7 @@ public function getAppFeeMoney(): ?Money public function setAppFeeMoney(?Money $value = null): self { $this->appFeeMoney = $value; + $this->_setField('appFeeMoney'); return $this; } @@ -252,6 +255,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } @@ -269,6 +273,7 @@ public function getDestinationId(): ?string public function setDestinationId(?string $value = null): self { $this->destinationId = $value; + $this->_setField('destinationId'); return $this; } @@ -286,6 +291,7 @@ public function getUnlinked(): ?bool public function setUnlinked(?bool $value = null): self { $this->unlinked = $value; + $this->_setField('unlinked'); return $this; } @@ -303,6 +309,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -320,6 +327,7 @@ public function getCustomerId(): ?string public function setCustomerId(?string $value = null): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -337,6 +345,7 @@ public function getReason(): ?string public function setReason(?string $value = null): self { $this->reason = $value; + $this->_setField('reason'); return $this; } @@ -354,6 +363,7 @@ public function getPaymentVersionToken(): ?string public function setPaymentVersionToken(?string $value = null): self { $this->paymentVersionToken = $value; + $this->_setField('paymentVersionToken'); return $this; } @@ -371,6 +381,7 @@ public function getTeamMemberId(): ?string public function setTeamMemberId(?string $value = null): self { $this->teamMemberId = $value; + $this->_setField('teamMemberId'); return $this; } @@ -388,6 +399,7 @@ public function getCashDetails(): ?DestinationDetailsCashRefundDetails public function setCashDetails(?DestinationDetailsCashRefundDetails $value = null): self { $this->cashDetails = $value; + $this->_setField('cashDetails'); return $this; } @@ -405,6 +417,7 @@ public function getExternalDetails(): ?DestinationDetailsExternalRefundDetails public function setExternalDetails(?DestinationDetailsExternalRefundDetails $value = null): self { $this->externalDetails = $value; + $this->_setField('externalDetails'); return $this; } } diff --git a/src/Sites/SitesClient.php b/src/Sites/SitesClient.php index 23cc9e4c..68464dd1 100644 --- a/src/Sites/SitesClient.php +++ b/src/Sites/SitesClient.php @@ -2,7 +2,7 @@ namespace Square\Sites; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Types\ListSitesResponse; use Square\Exceptions\SquareException; @@ -11,7 +11,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; class SitesClient @@ -87,16 +86,6 @@ public function list(?array $options = null): ListSitesResponse } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Snippets/Requests/DeleteSnippetsRequest.php b/src/Snippets/Requests/DeleteSnippetsRequest.php index 24347d5a..c7ec0ed3 100644 --- a/src/Snippets/Requests/DeleteSnippetsRequest.php +++ b/src/Snippets/Requests/DeleteSnippetsRequest.php @@ -36,6 +36,7 @@ public function getSiteId(): string public function setSiteId(string $value): self { $this->siteId = $value; + $this->_setField('siteId'); return $this; } } diff --git a/src/Snippets/Requests/GetSnippetsRequest.php b/src/Snippets/Requests/GetSnippetsRequest.php index 2bfb48cb..53daf768 100644 --- a/src/Snippets/Requests/GetSnippetsRequest.php +++ b/src/Snippets/Requests/GetSnippetsRequest.php @@ -36,6 +36,7 @@ public function getSiteId(): string public function setSiteId(string $value): self { $this->siteId = $value; + $this->_setField('siteId'); return $this; } } diff --git a/src/Snippets/Requests/UpsertSnippetRequest.php b/src/Snippets/Requests/UpsertSnippetRequest.php index 6ccee862..38f907b3 100644 --- a/src/Snippets/Requests/UpsertSnippetRequest.php +++ b/src/Snippets/Requests/UpsertSnippetRequest.php @@ -46,6 +46,7 @@ public function getSiteId(): string public function setSiteId(string $value): self { $this->siteId = $value; + $this->_setField('siteId'); return $this; } @@ -63,6 +64,7 @@ public function getSnippet(): Snippet public function setSnippet(Snippet $value): self { $this->snippet = $value; + $this->_setField('snippet'); return $this; } } diff --git a/src/Snippets/SnippetsClient.php b/src/Snippets/SnippetsClient.php index 0080842d..38e79b01 100644 --- a/src/Snippets/SnippetsClient.php +++ b/src/Snippets/SnippetsClient.php @@ -2,7 +2,7 @@ namespace Square\Snippets; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Snippets\Requests\GetSnippetsRequest; use Square\Types\GetSnippetResponse; @@ -12,7 +12,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Snippets\Requests\UpsertSnippetRequest; use Square\Types\UpsertSnippetResponse; @@ -95,16 +94,6 @@ public function get(GetSnippetsRequest $request, ?array $options = null): GetSni } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -157,16 +146,6 @@ public function upsert(UpsertSnippetRequest $request, ?array $options = null): U } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -217,16 +196,6 @@ public function delete(DeleteSnippetsRequest $request, ?array $options = null): } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/SquareClient.php b/src/SquareClient.php index 9b922f84..dff99ca1 100644 --- a/src/SquareClient.php +++ b/src/SquareClient.php @@ -37,7 +37,7 @@ use Square\Vendors\VendorsClient; use Square\CashDrawers\CashDrawersClient; use Square\Webhooks\WebhooksClient; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Exception; @@ -256,8 +256,8 @@ public function __construct( 'Square-Version' => '2026-01-22', 'X-Fern-Language' => 'PHP', 'X-Fern-SDK-Name' => 'Square', - 'X-Fern-SDK-Version' => '44.0.0.20260122', - 'User-Agent' => 'square/square/44.0.0.20260122', + 'X-Fern-SDK-Version' => '45.0.0.20260122', + 'User-Agent' => 'square/square/45.0.0.20260122', ]; if ($version != null) { $defaultHeaders['Square-Version'] = $version; diff --git a/src/Subscriptions/Requests/BulkSwapPlanRequest.php b/src/Subscriptions/Requests/BulkSwapPlanRequest.php index d4a0ae35..4f6f0294 100644 --- a/src/Subscriptions/Requests/BulkSwapPlanRequest.php +++ b/src/Subscriptions/Requests/BulkSwapPlanRequest.php @@ -62,6 +62,7 @@ public function getNewPlanVariationId(): string public function setNewPlanVariationId(string $value): self { $this->newPlanVariationId = $value; + $this->_setField('newPlanVariationId'); return $this; } @@ -79,6 +80,7 @@ public function getOldPlanVariationId(): string public function setOldPlanVariationId(string $value): self { $this->oldPlanVariationId = $value; + $this->_setField('oldPlanVariationId'); return $this; } @@ -96,6 +98,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } } diff --git a/src/Subscriptions/Requests/CancelSubscriptionsRequest.php b/src/Subscriptions/Requests/CancelSubscriptionsRequest.php index 32091260..cb13257c 100644 --- a/src/Subscriptions/Requests/CancelSubscriptionsRequest.php +++ b/src/Subscriptions/Requests/CancelSubscriptionsRequest.php @@ -36,6 +36,7 @@ public function getSubscriptionId(): string public function setSubscriptionId(string $value): self { $this->subscriptionId = $value; + $this->_setField('subscriptionId'); return $this; } } diff --git a/src/Subscriptions/Requests/ChangeBillingAnchorDateRequest.php b/src/Subscriptions/Requests/ChangeBillingAnchorDateRequest.php index b3be6d07..f772b0b7 100644 --- a/src/Subscriptions/Requests/ChangeBillingAnchorDateRequest.php +++ b/src/Subscriptions/Requests/ChangeBillingAnchorDateRequest.php @@ -59,6 +59,7 @@ public function getSubscriptionId(): string public function setSubscriptionId(string $value): self { $this->subscriptionId = $value; + $this->_setField('subscriptionId'); return $this; } @@ -76,6 +77,7 @@ public function getMonthlyBillingAnchorDate(): ?int public function setMonthlyBillingAnchorDate(?int $value = null): self { $this->monthlyBillingAnchorDate = $value; + $this->_setField('monthlyBillingAnchorDate'); return $this; } @@ -93,6 +95,7 @@ public function getEffectiveDate(): ?string public function setEffectiveDate(?string $value = null): self { $this->effectiveDate = $value; + $this->_setField('effectiveDate'); return $this; } } diff --git a/src/Subscriptions/Requests/CreateSubscriptionRequest.php b/src/Subscriptions/Requests/CreateSubscriptionRequest.php index 1130398f..2a623bae 100644 --- a/src/Subscriptions/Requests/CreateSubscriptionRequest.php +++ b/src/Subscriptions/Requests/CreateSubscriptionRequest.php @@ -174,6 +174,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -191,6 +192,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -208,6 +210,7 @@ public function getPlanVariationId(): ?string public function setPlanVariationId(?string $value = null): self { $this->planVariationId = $value; + $this->_setField('planVariationId'); return $this; } @@ -225,6 +228,7 @@ public function getCustomerId(): string public function setCustomerId(string $value): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -242,6 +246,7 @@ public function getStartDate(): ?string public function setStartDate(?string $value = null): self { $this->startDate = $value; + $this->_setField('startDate'); return $this; } @@ -259,6 +264,7 @@ public function getCanceledDate(): ?string public function setCanceledDate(?string $value = null): self { $this->canceledDate = $value; + $this->_setField('canceledDate'); return $this; } @@ -276,6 +282,7 @@ public function getTaxPercentage(): ?string public function setTaxPercentage(?string $value = null): self { $this->taxPercentage = $value; + $this->_setField('taxPercentage'); return $this; } @@ -293,6 +300,7 @@ public function getPriceOverrideMoney(): ?Money public function setPriceOverrideMoney(?Money $value = null): self { $this->priceOverrideMoney = $value; + $this->_setField('priceOverrideMoney'); return $this; } @@ -310,6 +318,7 @@ public function getCardId(): ?string public function setCardId(?string $value = null): self { $this->cardId = $value; + $this->_setField('cardId'); return $this; } @@ -327,6 +336,7 @@ public function getTimezone(): ?string public function setTimezone(?string $value = null): self { $this->timezone = $value; + $this->_setField('timezone'); return $this; } @@ -344,6 +354,7 @@ public function getSource(): ?SubscriptionSource public function setSource(?SubscriptionSource $value = null): self { $this->source = $value; + $this->_setField('source'); return $this; } @@ -361,6 +372,7 @@ public function getMonthlyBillingAnchorDate(): ?int public function setMonthlyBillingAnchorDate(?int $value = null): self { $this->monthlyBillingAnchorDate = $value; + $this->_setField('monthlyBillingAnchorDate'); return $this; } @@ -378,6 +390,7 @@ public function getPhases(): ?array public function setPhases(?array $value = null): self { $this->phases = $value; + $this->_setField('phases'); return $this; } } diff --git a/src/Subscriptions/Requests/DeleteActionSubscriptionsRequest.php b/src/Subscriptions/Requests/DeleteActionSubscriptionsRequest.php index 624a0661..0460f6a6 100644 --- a/src/Subscriptions/Requests/DeleteActionSubscriptionsRequest.php +++ b/src/Subscriptions/Requests/DeleteActionSubscriptionsRequest.php @@ -43,6 +43,7 @@ public function getSubscriptionId(): string public function setSubscriptionId(string $value): self { $this->subscriptionId = $value; + $this->_setField('subscriptionId'); return $this; } @@ -60,6 +61,7 @@ public function getActionId(): string public function setActionId(string $value): self { $this->actionId = $value; + $this->_setField('actionId'); return $this; } } diff --git a/src/Subscriptions/Requests/GetSubscriptionsRequest.php b/src/Subscriptions/Requests/GetSubscriptionsRequest.php index bcd14a3f..52fa3bfb 100644 --- a/src/Subscriptions/Requests/GetSubscriptionsRequest.php +++ b/src/Subscriptions/Requests/GetSubscriptionsRequest.php @@ -49,6 +49,7 @@ public function getSubscriptionId(): string public function setSubscriptionId(string $value): self { $this->subscriptionId = $value; + $this->_setField('subscriptionId'); return $this; } @@ -66,6 +67,7 @@ public function getInclude(): ?string public function setInclude(?string $value = null): self { $this->include = $value; + $this->_setField('include'); return $this; } } diff --git a/src/Subscriptions/Requests/ListEventsSubscriptionsRequest.php b/src/Subscriptions/Requests/ListEventsSubscriptionsRequest.php index d2f36641..2c9ab8f9 100644 --- a/src/Subscriptions/Requests/ListEventsSubscriptionsRequest.php +++ b/src/Subscriptions/Requests/ListEventsSubscriptionsRequest.php @@ -59,6 +59,7 @@ public function getSubscriptionId(): string public function setSubscriptionId(string $value): self { $this->subscriptionId = $value; + $this->_setField('subscriptionId'); return $this; } @@ -76,6 +77,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -93,6 +95,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } } diff --git a/src/Subscriptions/Requests/PauseSubscriptionRequest.php b/src/Subscriptions/Requests/PauseSubscriptionRequest.php index bc3d9ace..d85c1f9f 100644 --- a/src/Subscriptions/Requests/PauseSubscriptionRequest.php +++ b/src/Subscriptions/Requests/PauseSubscriptionRequest.php @@ -96,6 +96,7 @@ public function getSubscriptionId(): string public function setSubscriptionId(string $value): self { $this->subscriptionId = $value; + $this->_setField('subscriptionId'); return $this; } @@ -113,6 +114,7 @@ public function getPauseEffectiveDate(): ?string public function setPauseEffectiveDate(?string $value = null): self { $this->pauseEffectiveDate = $value; + $this->_setField('pauseEffectiveDate'); return $this; } @@ -130,6 +132,7 @@ public function getPauseCycleDuration(): ?int public function setPauseCycleDuration(?int $value = null): self { $this->pauseCycleDuration = $value; + $this->_setField('pauseCycleDuration'); return $this; } @@ -147,6 +150,7 @@ public function getResumeEffectiveDate(): ?string public function setResumeEffectiveDate(?string $value = null): self { $this->resumeEffectiveDate = $value; + $this->_setField('resumeEffectiveDate'); return $this; } @@ -164,6 +168,7 @@ public function getResumeChangeTiming(): ?string public function setResumeChangeTiming(?string $value = null): self { $this->resumeChangeTiming = $value; + $this->_setField('resumeChangeTiming'); return $this; } @@ -181,6 +186,7 @@ public function getPauseReason(): ?string public function setPauseReason(?string $value = null): self { $this->pauseReason = $value; + $this->_setField('pauseReason'); return $this; } } diff --git a/src/Subscriptions/Requests/ResumeSubscriptionRequest.php b/src/Subscriptions/Requests/ResumeSubscriptionRequest.php index f2f5077a..42f5340c 100644 --- a/src/Subscriptions/Requests/ResumeSubscriptionRequest.php +++ b/src/Subscriptions/Requests/ResumeSubscriptionRequest.php @@ -58,6 +58,7 @@ public function getSubscriptionId(): string public function setSubscriptionId(string $value): self { $this->subscriptionId = $value; + $this->_setField('subscriptionId'); return $this; } @@ -75,6 +76,7 @@ public function getResumeEffectiveDate(): ?string public function setResumeEffectiveDate(?string $value = null): self { $this->resumeEffectiveDate = $value; + $this->_setField('resumeEffectiveDate'); return $this; } @@ -92,6 +94,7 @@ public function getResumeChangeTiming(): ?string public function setResumeChangeTiming(?string $value = null): self { $this->resumeChangeTiming = $value; + $this->_setField('resumeChangeTiming'); return $this; } } diff --git a/src/Subscriptions/Requests/SearchSubscriptionsRequest.php b/src/Subscriptions/Requests/SearchSubscriptionsRequest.php index d93d50cf..033260a9 100644 --- a/src/Subscriptions/Requests/SearchSubscriptionsRequest.php +++ b/src/Subscriptions/Requests/SearchSubscriptionsRequest.php @@ -83,6 +83,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -100,6 +101,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -117,6 +119,7 @@ public function getQuery(): ?SearchSubscriptionsQuery public function setQuery(?SearchSubscriptionsQuery $value = null): self { $this->query = $value; + $this->_setField('query'); return $this; } @@ -134,6 +137,7 @@ public function getInclude(): ?array public function setInclude(?array $value = null): self { $this->include = $value; + $this->_setField('include'); return $this; } } diff --git a/src/Subscriptions/Requests/SwapPlanRequest.php b/src/Subscriptions/Requests/SwapPlanRequest.php index 5dd0a6c0..d53b964c 100644 --- a/src/Subscriptions/Requests/SwapPlanRequest.php +++ b/src/Subscriptions/Requests/SwapPlanRequest.php @@ -59,6 +59,7 @@ public function getSubscriptionId(): string public function setSubscriptionId(string $value): self { $this->subscriptionId = $value; + $this->_setField('subscriptionId'); return $this; } @@ -76,6 +77,7 @@ public function getNewPlanVariationId(): ?string public function setNewPlanVariationId(?string $value = null): self { $this->newPlanVariationId = $value; + $this->_setField('newPlanVariationId'); return $this; } @@ -93,6 +95,7 @@ public function getPhases(): ?array public function setPhases(?array $value = null): self { $this->phases = $value; + $this->_setField('phases'); return $this; } } diff --git a/src/Subscriptions/Requests/UpdateSubscriptionRequest.php b/src/Subscriptions/Requests/UpdateSubscriptionRequest.php index 557b481e..059b6a79 100644 --- a/src/Subscriptions/Requests/UpdateSubscriptionRequest.php +++ b/src/Subscriptions/Requests/UpdateSubscriptionRequest.php @@ -50,6 +50,7 @@ public function getSubscriptionId(): string public function setSubscriptionId(string $value): self { $this->subscriptionId = $value; + $this->_setField('subscriptionId'); return $this; } @@ -67,6 +68,7 @@ public function getSubscription(): ?Subscription public function setSubscription(?Subscription $value = null): self { $this->subscription = $value; + $this->_setField('subscription'); return $this; } } diff --git a/src/Subscriptions/SubscriptionsClient.php b/src/Subscriptions/SubscriptionsClient.php index 84206b30..102c99d8 100644 --- a/src/Subscriptions/SubscriptionsClient.php +++ b/src/Subscriptions/SubscriptionsClient.php @@ -2,7 +2,7 @@ namespace Square\Subscriptions; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Subscriptions\Requests\CreateSubscriptionRequest; use Square\Types\CreateSubscriptionResponse; @@ -12,7 +12,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Subscriptions\Requests\BulkSwapPlanRequest; use Square\Types\BulkSwapPlanResponse; @@ -119,16 +118,6 @@ public function create(CreateSubscriptionRequest $request, ?array $options = nul } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -176,16 +165,6 @@ public function bulkSwapPlan(BulkSwapPlanRequest $request, ?array $options = nul } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -245,16 +224,6 @@ public function search(SearchSubscriptionsRequest $request = new SearchSubscript } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -305,16 +274,6 @@ public function get(GetSubscriptionsRequest $request, ?array $options = null): G } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -362,16 +321,6 @@ public function update(UpdateSubscriptionRequest $request, ?array $options = nul } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -417,16 +366,6 @@ public function deleteAction(DeleteActionSubscriptionsRequest $request, ?array $ } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -474,16 +413,6 @@ public function changeBillingAnchorDate(ChangeBillingAnchorDateRequest $request, } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -531,16 +460,6 @@ public function cancel(CancelSubscriptionsRequest $request, ?array $options = nu } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -616,16 +535,6 @@ public function pause(PauseSubscriptionRequest $request, ?array $options = null) } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -672,16 +581,6 @@ public function resume(ResumeSubscriptionRequest $request, ?array $options = nul } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -729,16 +628,6 @@ public function swapPlan(SwapPlanRequest $request, ?array $options = null): Swap } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -792,16 +681,6 @@ private function _listEvents(ListEventsSubscriptionsRequest $request, ?array $op } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Team/Requests/CreateJobRequest.php b/src/Team/Requests/CreateJobRequest.php index 0aed40d9..4184f38a 100644 --- a/src/Team/Requests/CreateJobRequest.php +++ b/src/Team/Requests/CreateJobRequest.php @@ -51,6 +51,7 @@ public function getJob(): Job public function setJob(Job $value): self { $this->job = $value; + $this->_setField('job'); return $this; } @@ -68,6 +69,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } } diff --git a/src/Team/Requests/ListJobsRequest.php b/src/Team/Requests/ListJobsRequest.php index 88d586be..6f5b1ae6 100644 --- a/src/Team/Requests/ListJobsRequest.php +++ b/src/Team/Requests/ListJobsRequest.php @@ -40,6 +40,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } } diff --git a/src/Team/Requests/RetrieveJobRequest.php b/src/Team/Requests/RetrieveJobRequest.php index c6ec0800..9a71d55b 100644 --- a/src/Team/Requests/RetrieveJobRequest.php +++ b/src/Team/Requests/RetrieveJobRequest.php @@ -36,6 +36,7 @@ public function getJobId(): string public function setJobId(string $value): self { $this->jobId = $value; + $this->_setField('jobId'); return $this; } } diff --git a/src/Team/Requests/UpdateJobRequest.php b/src/Team/Requests/UpdateJobRequest.php index c4de66e0..f87506cb 100644 --- a/src/Team/Requests/UpdateJobRequest.php +++ b/src/Team/Requests/UpdateJobRequest.php @@ -49,6 +49,7 @@ public function getJobId(): string public function setJobId(string $value): self { $this->jobId = $value; + $this->_setField('jobId'); return $this; } @@ -66,6 +67,7 @@ public function getJob(): Job public function setJob(Job $value): self { $this->job = $value; + $this->_setField('job'); return $this; } } diff --git a/src/Team/TeamClient.php b/src/Team/TeamClient.php index 1748606c..09794066 100644 --- a/src/Team/TeamClient.php +++ b/src/Team/TeamClient.php @@ -2,7 +2,7 @@ namespace Square\Team; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Team\Requests\ListJobsRequest; use Square\Types\ListJobsResponse; @@ -12,7 +12,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Team\Requests\CreateJobRequest; use Square\Types\CreateJobResponse; @@ -97,16 +96,6 @@ public function listJobs(ListJobsRequest $request = new ListJobsRequest(), ?arra } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -154,16 +143,6 @@ public function createJob(CreateJobRequest $request, ?array $options = null): Cr } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -209,16 +188,6 @@ public function retrieveJob(RetrieveJobRequest $request, ?array $options = null) } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -267,16 +236,6 @@ public function updateJob(UpdateJobRequest $request, ?array $options = null): Up } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/TeamMembers/Requests/BatchCreateTeamMembersRequest.php b/src/TeamMembers/Requests/BatchCreateTeamMembersRequest.php index 5b969241..b759133e 100644 --- a/src/TeamMembers/Requests/BatchCreateTeamMembersRequest.php +++ b/src/TeamMembers/Requests/BatchCreateTeamMembersRequest.php @@ -46,6 +46,7 @@ public function getTeamMembers(): array public function setTeamMembers(array $value): self { $this->teamMembers = $value; + $this->_setField('teamMembers'); return $this; } } diff --git a/src/TeamMembers/Requests/BatchUpdateTeamMembersRequest.php b/src/TeamMembers/Requests/BatchUpdateTeamMembersRequest.php index a2a35db5..b06ecac4 100644 --- a/src/TeamMembers/Requests/BatchUpdateTeamMembersRequest.php +++ b/src/TeamMembers/Requests/BatchUpdateTeamMembersRequest.php @@ -47,6 +47,7 @@ public function getTeamMembers(): array public function setTeamMembers(array $value): self { $this->teamMembers = $value; + $this->_setField('teamMembers'); return $this; } } diff --git a/src/TeamMembers/Requests/GetTeamMembersRequest.php b/src/TeamMembers/Requests/GetTeamMembersRequest.php index 947f4225..a351187d 100644 --- a/src/TeamMembers/Requests/GetTeamMembersRequest.php +++ b/src/TeamMembers/Requests/GetTeamMembersRequest.php @@ -36,6 +36,7 @@ public function getTeamMemberId(): string public function setTeamMemberId(string $value): self { $this->teamMemberId = $value; + $this->_setField('teamMemberId'); return $this; } } diff --git a/src/TeamMembers/Requests/SearchTeamMembersRequest.php b/src/TeamMembers/Requests/SearchTeamMembersRequest.php index 3ae097d4..3cb0210a 100644 --- a/src/TeamMembers/Requests/SearchTeamMembersRequest.php +++ b/src/TeamMembers/Requests/SearchTeamMembersRequest.php @@ -58,6 +58,7 @@ public function getQuery(): ?SearchTeamMembersQuery public function setQuery(?SearchTeamMembersQuery $value = null): self { $this->query = $value; + $this->_setField('query'); return $this; } @@ -75,6 +76,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -92,6 +94,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } } diff --git a/src/TeamMembers/Requests/UpdateTeamMembersRequest.php b/src/TeamMembers/Requests/UpdateTeamMembersRequest.php index 1c3e5a42..b76f8e58 100644 --- a/src/TeamMembers/Requests/UpdateTeamMembersRequest.php +++ b/src/TeamMembers/Requests/UpdateTeamMembersRequest.php @@ -44,6 +44,7 @@ public function getTeamMemberId(): string public function setTeamMemberId(string $value): self { $this->teamMemberId = $value; + $this->_setField('teamMemberId'); return $this; } @@ -61,6 +62,7 @@ public function getBody(): UpdateTeamMemberRequest public function setBody(UpdateTeamMemberRequest $value): self { $this->body = $value; + $this->_setField('body'); return $this; } } diff --git a/src/TeamMembers/TeamMembersClient.php b/src/TeamMembers/TeamMembersClient.php index b3157ec6..98056b3b 100644 --- a/src/TeamMembers/TeamMembersClient.php +++ b/src/TeamMembers/TeamMembersClient.php @@ -3,7 +3,7 @@ namespace Square\TeamMembers; use Square\TeamMembers\WageSetting\WageSettingClient; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Types\CreateTeamMemberRequest; use Square\Types\CreateTeamMemberResponse; @@ -13,7 +13,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\TeamMembers\Requests\BatchCreateTeamMembersRequest; use Square\Types\BatchCreateTeamMembersResponse; @@ -109,16 +108,6 @@ public function create(CreateTeamMemberRequest $request, ?array $options = null) } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -170,16 +159,6 @@ public function batchCreate(BatchCreateTeamMembersRequest $request, ?array $opti } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -230,16 +209,6 @@ public function batchUpdate(BatchUpdateTeamMembersRequest $request, ?array $opti } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -288,16 +257,6 @@ public function search(SearchTeamMembersRequest $request = new SearchTeamMembers } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -344,16 +303,6 @@ public function get(GetTeamMembersRequest $request, ?array $options = null): Get } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -401,16 +350,6 @@ public function update(UpdateTeamMembersRequest $request, ?array $options = null } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/TeamMembers/WageSetting/Requests/GetWageSettingRequest.php b/src/TeamMembers/WageSetting/Requests/GetWageSettingRequest.php index c5581bf1..5cafa256 100644 --- a/src/TeamMembers/WageSetting/Requests/GetWageSettingRequest.php +++ b/src/TeamMembers/WageSetting/Requests/GetWageSettingRequest.php @@ -36,6 +36,7 @@ public function getTeamMemberId(): string public function setTeamMemberId(string $value): self { $this->teamMemberId = $value; + $this->_setField('teamMemberId'); return $this; } } diff --git a/src/TeamMembers/WageSetting/Requests/UpdateWageSettingRequest.php b/src/TeamMembers/WageSetting/Requests/UpdateWageSettingRequest.php index 09e6715a..cb7e3698 100644 --- a/src/TeamMembers/WageSetting/Requests/UpdateWageSettingRequest.php +++ b/src/TeamMembers/WageSetting/Requests/UpdateWageSettingRequest.php @@ -52,6 +52,7 @@ public function getTeamMemberId(): string public function setTeamMemberId(string $value): self { $this->teamMemberId = $value; + $this->_setField('teamMemberId'); return $this; } @@ -69,6 +70,7 @@ public function getWageSetting(): WageSetting public function setWageSetting(WageSetting $value): self { $this->wageSetting = $value; + $this->_setField('wageSetting'); return $this; } } diff --git a/src/TeamMembers/WageSetting/WageSettingClient.php b/src/TeamMembers/WageSetting/WageSettingClient.php index 631173f8..03b0cbb0 100644 --- a/src/TeamMembers/WageSetting/WageSettingClient.php +++ b/src/TeamMembers/WageSetting/WageSettingClient.php @@ -2,7 +2,7 @@ namespace Square\TeamMembers\WageSetting; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\TeamMembers\WageSetting\Requests\GetWageSettingRequest; use Square\Types\GetWageSettingResponse; @@ -12,7 +12,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\TeamMembers\WageSetting\Requests\UpdateWageSettingRequest; use Square\Types\UpdateWageSettingResponse; @@ -93,16 +92,6 @@ public function get(GetWageSettingRequest $request, ?array $options = null): Get } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -156,16 +145,6 @@ public function update(UpdateWageSettingRequest $request, ?array $options = null } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Terminal/Actions/ActionsClient.php b/src/Terminal/Actions/ActionsClient.php index a26e10af..cd0f1c4f 100644 --- a/src/Terminal/Actions/ActionsClient.php +++ b/src/Terminal/Actions/ActionsClient.php @@ -2,7 +2,7 @@ namespace Square\Terminal\Actions; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Terminal\Actions\Requests\CreateTerminalActionRequest; use Square\Types\CreateTerminalActionResponse; @@ -12,7 +12,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Terminal\Actions\Requests\SearchTerminalActionsRequest; use Square\Types\SearchTerminalActionsResponse; @@ -93,16 +92,6 @@ public function create(CreateTerminalActionRequest $request, ?array $options = n } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -149,16 +138,6 @@ public function search(SearchTerminalActionsRequest $request = new SearchTermina } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -204,16 +183,6 @@ public function get(GetActionsRequest $request, ?array $options = null): GetTerm } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -259,16 +228,6 @@ public function cancel(CancelActionsRequest $request, ?array $options = null): C } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Terminal/Actions/Requests/CancelActionsRequest.php b/src/Terminal/Actions/Requests/CancelActionsRequest.php index ce84d61b..574751d5 100644 --- a/src/Terminal/Actions/Requests/CancelActionsRequest.php +++ b/src/Terminal/Actions/Requests/CancelActionsRequest.php @@ -36,6 +36,7 @@ public function getActionId(): string public function setActionId(string $value): self { $this->actionId = $value; + $this->_setField('actionId'); return $this; } } diff --git a/src/Terminal/Actions/Requests/CreateTerminalActionRequest.php b/src/Terminal/Actions/Requests/CreateTerminalActionRequest.php index e5aa63bc..56186698 100644 --- a/src/Terminal/Actions/Requests/CreateTerminalActionRequest.php +++ b/src/Terminal/Actions/Requests/CreateTerminalActionRequest.php @@ -53,6 +53,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -70,6 +71,7 @@ public function getAction(): TerminalAction public function setAction(TerminalAction $value): self { $this->action = $value; + $this->_setField('action'); return $this; } } diff --git a/src/Terminal/Actions/Requests/GetActionsRequest.php b/src/Terminal/Actions/Requests/GetActionsRequest.php index cd757e46..b91ec5bd 100644 --- a/src/Terminal/Actions/Requests/GetActionsRequest.php +++ b/src/Terminal/Actions/Requests/GetActionsRequest.php @@ -36,6 +36,7 @@ public function getActionId(): string public function setActionId(string $value): self { $this->actionId = $value; + $this->_setField('actionId'); return $this; } } diff --git a/src/Terminal/Actions/Requests/SearchTerminalActionsRequest.php b/src/Terminal/Actions/Requests/SearchTerminalActionsRequest.php index 69ea860e..b1597b5a 100644 --- a/src/Terminal/Actions/Requests/SearchTerminalActionsRequest.php +++ b/src/Terminal/Actions/Requests/SearchTerminalActionsRequest.php @@ -63,6 +63,7 @@ public function getQuery(): ?TerminalActionQuery public function setQuery(?TerminalActionQuery $value = null): self { $this->query = $value; + $this->_setField('query'); return $this; } @@ -80,6 +81,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -97,6 +99,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } } diff --git a/src/Terminal/Checkouts/CheckoutsClient.php b/src/Terminal/Checkouts/CheckoutsClient.php index bad02ea0..db6b9846 100644 --- a/src/Terminal/Checkouts/CheckoutsClient.php +++ b/src/Terminal/Checkouts/CheckoutsClient.php @@ -2,7 +2,7 @@ namespace Square\Terminal\Checkouts; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Terminal\Checkouts\Requests\CreateTerminalCheckoutRequest; use Square\Types\CreateTerminalCheckoutResponse; @@ -12,7 +12,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Terminal\Checkouts\Requests\SearchTerminalCheckoutsRequest; use Square\Types\SearchTerminalCheckoutsResponse; @@ -94,16 +93,6 @@ public function create(CreateTerminalCheckoutRequest $request, ?array $options = } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -150,16 +139,6 @@ public function search(SearchTerminalCheckoutsRequest $request = new SearchTermi } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -205,16 +184,6 @@ public function get(GetCheckoutsRequest $request, ?array $options = null): GetTe } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -260,16 +229,6 @@ public function cancel(CancelCheckoutsRequest $request, ?array $options = null): } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Terminal/Checkouts/Requests/CancelCheckoutsRequest.php b/src/Terminal/Checkouts/Requests/CancelCheckoutsRequest.php index 967b5902..cc0479cd 100644 --- a/src/Terminal/Checkouts/Requests/CancelCheckoutsRequest.php +++ b/src/Terminal/Checkouts/Requests/CancelCheckoutsRequest.php @@ -36,6 +36,7 @@ public function getCheckoutId(): string public function setCheckoutId(string $value): self { $this->checkoutId = $value; + $this->_setField('checkoutId'); return $this; } } diff --git a/src/Terminal/Checkouts/Requests/CreateTerminalCheckoutRequest.php b/src/Terminal/Checkouts/Requests/CreateTerminalCheckoutRequest.php index bffd8003..6a063c6c 100644 --- a/src/Terminal/Checkouts/Requests/CreateTerminalCheckoutRequest.php +++ b/src/Terminal/Checkouts/Requests/CreateTerminalCheckoutRequest.php @@ -52,6 +52,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -69,6 +70,7 @@ public function getCheckout(): TerminalCheckout public function setCheckout(TerminalCheckout $value): self { $this->checkout = $value; + $this->_setField('checkout'); return $this; } } diff --git a/src/Terminal/Checkouts/Requests/GetCheckoutsRequest.php b/src/Terminal/Checkouts/Requests/GetCheckoutsRequest.php index 837e9eff..492b9593 100644 --- a/src/Terminal/Checkouts/Requests/GetCheckoutsRequest.php +++ b/src/Terminal/Checkouts/Requests/GetCheckoutsRequest.php @@ -36,6 +36,7 @@ public function getCheckoutId(): string public function setCheckoutId(string $value): self { $this->checkoutId = $value; + $this->_setField('checkoutId'); return $this; } } diff --git a/src/Terminal/Checkouts/Requests/SearchTerminalCheckoutsRequest.php b/src/Terminal/Checkouts/Requests/SearchTerminalCheckoutsRequest.php index f30b30e1..0f4aa30a 100644 --- a/src/Terminal/Checkouts/Requests/SearchTerminalCheckoutsRequest.php +++ b/src/Terminal/Checkouts/Requests/SearchTerminalCheckoutsRequest.php @@ -62,6 +62,7 @@ public function getQuery(): ?TerminalCheckoutQuery public function setQuery(?TerminalCheckoutQuery $value = null): self { $this->query = $value; + $this->_setField('query'); return $this; } @@ -79,6 +80,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -96,6 +98,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } } diff --git a/src/Terminal/Refunds/RefundsClient.php b/src/Terminal/Refunds/RefundsClient.php index ae556b91..299dbb27 100644 --- a/src/Terminal/Refunds/RefundsClient.php +++ b/src/Terminal/Refunds/RefundsClient.php @@ -2,7 +2,7 @@ namespace Square\Terminal\Refunds; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Terminal\Refunds\Requests\CreateTerminalRefundRequest; use Square\Types\CreateTerminalRefundResponse; @@ -12,7 +12,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Terminal\Refunds\Requests\SearchTerminalRefundsRequest; use Square\Types\SearchTerminalRefundsResponse; @@ -93,16 +92,6 @@ public function create(CreateTerminalRefundRequest $request, ?array $options = n } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -149,16 +138,6 @@ public function search(SearchTerminalRefundsRequest $request = new SearchTermina } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -204,16 +183,6 @@ public function get(GetRefundsRequest $request, ?array $options = null): GetTerm } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -259,16 +228,6 @@ public function cancel(CancelRefundsRequest $request, ?array $options = null): C } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Terminal/Refunds/Requests/CancelRefundsRequest.php b/src/Terminal/Refunds/Requests/CancelRefundsRequest.php index 9947d69f..349c4602 100644 --- a/src/Terminal/Refunds/Requests/CancelRefundsRequest.php +++ b/src/Terminal/Refunds/Requests/CancelRefundsRequest.php @@ -36,6 +36,7 @@ public function getTerminalRefundId(): string public function setTerminalRefundId(string $value): self { $this->terminalRefundId = $value; + $this->_setField('terminalRefundId'); return $this; } } diff --git a/src/Terminal/Refunds/Requests/CreateTerminalRefundRequest.php b/src/Terminal/Refunds/Requests/CreateTerminalRefundRequest.php index 106249f9..e86fd442 100644 --- a/src/Terminal/Refunds/Requests/CreateTerminalRefundRequest.php +++ b/src/Terminal/Refunds/Requests/CreateTerminalRefundRequest.php @@ -52,6 +52,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -69,6 +70,7 @@ public function getRefund(): ?TerminalRefund public function setRefund(?TerminalRefund $value = null): self { $this->refund = $value; + $this->_setField('refund'); return $this; } } diff --git a/src/Terminal/Refunds/Requests/GetRefundsRequest.php b/src/Terminal/Refunds/Requests/GetRefundsRequest.php index 95686493..40de678a 100644 --- a/src/Terminal/Refunds/Requests/GetRefundsRequest.php +++ b/src/Terminal/Refunds/Requests/GetRefundsRequest.php @@ -36,6 +36,7 @@ public function getTerminalRefundId(): string public function setTerminalRefundId(string $value): self { $this->terminalRefundId = $value; + $this->_setField('terminalRefundId'); return $this; } } diff --git a/src/Terminal/Refunds/Requests/SearchTerminalRefundsRequest.php b/src/Terminal/Refunds/Requests/SearchTerminalRefundsRequest.php index bff50790..e32c9f0e 100644 --- a/src/Terminal/Refunds/Requests/SearchTerminalRefundsRequest.php +++ b/src/Terminal/Refunds/Requests/SearchTerminalRefundsRequest.php @@ -62,6 +62,7 @@ public function getQuery(): ?TerminalRefundQuery public function setQuery(?TerminalRefundQuery $value = null): self { $this->query = $value; + $this->_setField('query'); return $this; } @@ -79,6 +80,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -96,6 +98,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } } diff --git a/src/Terminal/Requests/DismissTerminalActionRequest.php b/src/Terminal/Requests/DismissTerminalActionRequest.php index 2c621154..f6fa09ff 100644 --- a/src/Terminal/Requests/DismissTerminalActionRequest.php +++ b/src/Terminal/Requests/DismissTerminalActionRequest.php @@ -36,6 +36,7 @@ public function getActionId(): string public function setActionId(string $value): self { $this->actionId = $value; + $this->_setField('actionId'); return $this; } } diff --git a/src/Terminal/Requests/DismissTerminalCheckoutRequest.php b/src/Terminal/Requests/DismissTerminalCheckoutRequest.php index 8b2dc600..1601ed14 100644 --- a/src/Terminal/Requests/DismissTerminalCheckoutRequest.php +++ b/src/Terminal/Requests/DismissTerminalCheckoutRequest.php @@ -36,6 +36,7 @@ public function getCheckoutId(): string public function setCheckoutId(string $value): self { $this->checkoutId = $value; + $this->_setField('checkoutId'); return $this; } } diff --git a/src/Terminal/Requests/DismissTerminalRefundRequest.php b/src/Terminal/Requests/DismissTerminalRefundRequest.php index dc3f3cb3..32458efe 100644 --- a/src/Terminal/Requests/DismissTerminalRefundRequest.php +++ b/src/Terminal/Requests/DismissTerminalRefundRequest.php @@ -36,6 +36,7 @@ public function getTerminalRefundId(): string public function setTerminalRefundId(string $value): self { $this->terminalRefundId = $value; + $this->_setField('terminalRefundId'); return $this; } } diff --git a/src/Terminal/TerminalClient.php b/src/Terminal/TerminalClient.php index 261928c2..812e87e5 100644 --- a/src/Terminal/TerminalClient.php +++ b/src/Terminal/TerminalClient.php @@ -5,7 +5,7 @@ use Square\Terminal\Actions\ActionsClient; use Square\Terminal\Checkouts\CheckoutsClient; use Square\Terminal\Refunds\RefundsClient; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Terminal\Requests\DismissTerminalActionRequest; use Square\Types\DismissTerminalActionResponse; @@ -15,7 +15,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Terminal\Requests\DismissTerminalCheckoutRequest; use Square\Types\DismissTerminalCheckoutResponse; @@ -113,16 +112,6 @@ public function dismissTerminalAction(DismissTerminalActionRequest $request, ?ar } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -168,16 +157,6 @@ public function dismissTerminalCheckout(DismissTerminalCheckoutRequest $request, } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -223,16 +202,6 @@ public function dismissTerminalRefund(DismissTerminalRefundRequest $request, ?ar } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Traits/CatalogObjectBase.php b/src/Traits/CatalogObjectBase.php index 0cd0d99b..b5ec0f56 100644 --- a/src/Traits/CatalogObjectBase.php +++ b/src/Traits/CatalogObjectBase.php @@ -143,6 +143,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -160,6 +161,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -177,6 +179,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -194,6 +197,7 @@ public function getIsDeleted(): ?bool public function setIsDeleted(?bool $value = null): self { $this->isDeleted = $value; + $this->_setField('isDeleted'); return $this; } @@ -211,6 +215,7 @@ public function getCustomAttributeValues(): ?array public function setCustomAttributeValues(?array $value = null): self { $this->customAttributeValues = $value; + $this->_setField('customAttributeValues'); return $this; } @@ -228,6 +233,7 @@ public function getCatalogV1Ids(): ?array public function setCatalogV1Ids(?array $value = null): self { $this->catalogV1Ids = $value; + $this->_setField('catalogV1Ids'); return $this; } @@ -245,6 +251,7 @@ public function getPresentAtAllLocations(): ?bool public function setPresentAtAllLocations(?bool $value = null): self { $this->presentAtAllLocations = $value; + $this->_setField('presentAtAllLocations'); return $this; } @@ -262,6 +269,7 @@ public function getPresentAtLocationIds(): ?array public function setPresentAtLocationIds(?array $value = null): self { $this->presentAtLocationIds = $value; + $this->_setField('presentAtLocationIds'); return $this; } @@ -279,6 +287,7 @@ public function getAbsentAtLocationIds(): ?array public function setAbsentAtLocationIds(?array $value = null): self { $this->absentAtLocationIds = $value; + $this->_setField('absentAtLocationIds'); return $this; } @@ -296,6 +305,7 @@ public function getImageId(): ?string public function setImageId(?string $value = null): self { $this->imageId = $value; + $this->_setField('imageId'); return $this; } } diff --git a/src/TransferOrders/Requests/CancelTransferOrderRequest.php b/src/TransferOrders/Requests/CancelTransferOrderRequest.php index 949683b8..b8d32961 100644 --- a/src/TransferOrders/Requests/CancelTransferOrderRequest.php +++ b/src/TransferOrders/Requests/CancelTransferOrderRequest.php @@ -56,6 +56,7 @@ public function getTransferOrderId(): string public function setTransferOrderId(string $value): self { $this->transferOrderId = $value; + $this->_setField('transferOrderId'); return $this; } @@ -73,6 +74,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -90,6 +92,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } } diff --git a/src/TransferOrders/Requests/CreateTransferOrderRequest.php b/src/TransferOrders/Requests/CreateTransferOrderRequest.php index b821e5e6..db7bb699 100644 --- a/src/TransferOrders/Requests/CreateTransferOrderRequest.php +++ b/src/TransferOrders/Requests/CreateTransferOrderRequest.php @@ -50,6 +50,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -67,6 +68,7 @@ public function getTransferOrder(): CreateTransferOrderData public function setTransferOrder(CreateTransferOrderData $value): self { $this->transferOrder = $value; + $this->_setField('transferOrder'); return $this; } } diff --git a/src/TransferOrders/Requests/DeleteTransferOrdersRequest.php b/src/TransferOrders/Requests/DeleteTransferOrdersRequest.php index bdf41c7f..56dc2d5f 100644 --- a/src/TransferOrders/Requests/DeleteTransferOrdersRequest.php +++ b/src/TransferOrders/Requests/DeleteTransferOrdersRequest.php @@ -43,6 +43,7 @@ public function getTransferOrderId(): string public function setTransferOrderId(string $value): self { $this->transferOrderId = $value; + $this->_setField('transferOrderId'); return $this; } @@ -60,6 +61,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } } diff --git a/src/TransferOrders/Requests/GetTransferOrdersRequest.php b/src/TransferOrders/Requests/GetTransferOrdersRequest.php index 89e593b3..4b856330 100644 --- a/src/TransferOrders/Requests/GetTransferOrdersRequest.php +++ b/src/TransferOrders/Requests/GetTransferOrdersRequest.php @@ -36,6 +36,7 @@ public function getTransferOrderId(): string public function setTransferOrderId(string $value): self { $this->transferOrderId = $value; + $this->_setField('transferOrderId'); return $this; } } diff --git a/src/TransferOrders/Requests/ReceiveTransferOrderRequest.php b/src/TransferOrders/Requests/ReceiveTransferOrderRequest.php index f7e20676..4118b4da 100644 --- a/src/TransferOrders/Requests/ReceiveTransferOrderRequest.php +++ b/src/TransferOrders/Requests/ReceiveTransferOrderRequest.php @@ -62,6 +62,7 @@ public function getTransferOrderId(): string public function setTransferOrderId(string $value): self { $this->transferOrderId = $value; + $this->_setField('transferOrderId'); return $this; } @@ -79,6 +80,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -96,6 +98,7 @@ public function getReceipt(): TransferOrderGoodsReceipt public function setReceipt(TransferOrderGoodsReceipt $value): self { $this->receipt = $value; + $this->_setField('receipt'); return $this; } @@ -113,6 +116,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } } diff --git a/src/TransferOrders/Requests/SearchTransferOrdersRequest.php b/src/TransferOrders/Requests/SearchTransferOrdersRequest.php index 1734ded9..a2198bf0 100644 --- a/src/TransferOrders/Requests/SearchTransferOrdersRequest.php +++ b/src/TransferOrders/Requests/SearchTransferOrdersRequest.php @@ -55,6 +55,7 @@ public function getQuery(): ?TransferOrderQuery public function setQuery(?TransferOrderQuery $value = null): self { $this->query = $value; + $this->_setField('query'); return $this; } @@ -72,6 +73,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -89,6 +91,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } } diff --git a/src/TransferOrders/Requests/StartTransferOrderRequest.php b/src/TransferOrders/Requests/StartTransferOrderRequest.php index b826768b..c61782db 100644 --- a/src/TransferOrders/Requests/StartTransferOrderRequest.php +++ b/src/TransferOrders/Requests/StartTransferOrderRequest.php @@ -56,6 +56,7 @@ public function getTransferOrderId(): string public function setTransferOrderId(string $value): self { $this->transferOrderId = $value; + $this->_setField('transferOrderId'); return $this; } @@ -73,6 +74,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -90,6 +92,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } } diff --git a/src/TransferOrders/Requests/UpdateTransferOrderRequest.php b/src/TransferOrders/Requests/UpdateTransferOrderRequest.php index c81c91e8..2e5375f4 100644 --- a/src/TransferOrders/Requests/UpdateTransferOrderRequest.php +++ b/src/TransferOrders/Requests/UpdateTransferOrderRequest.php @@ -62,6 +62,7 @@ public function getTransferOrderId(): string public function setTransferOrderId(string $value): self { $this->transferOrderId = $value; + $this->_setField('transferOrderId'); return $this; } @@ -79,6 +80,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -96,6 +98,7 @@ public function getTransferOrder(): UpdateTransferOrderData public function setTransferOrder(UpdateTransferOrderData $value): self { $this->transferOrder = $value; + $this->_setField('transferOrder'); return $this; } @@ -113,6 +116,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } } diff --git a/src/TransferOrders/TransferOrdersClient.php b/src/TransferOrders/TransferOrdersClient.php index 7f57c11d..5cf24dc4 100644 --- a/src/TransferOrders/TransferOrdersClient.php +++ b/src/TransferOrders/TransferOrdersClient.php @@ -2,7 +2,7 @@ namespace Square\TransferOrders; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\TransferOrders\Requests\CreateTransferOrderRequest; use Square\Types\CreateTransferOrderResponse; @@ -12,7 +12,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\TransferOrders\Requests\SearchTransferOrdersRequest; use Square\Core\Pagination\Pager; @@ -123,16 +122,6 @@ public function create(CreateTransferOrderRequest $request, ?array $options = nu } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -219,16 +208,6 @@ public function get(GetTransferOrdersRequest $request, ?array $options = null): } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -278,16 +257,6 @@ public function update(UpdateTransferOrderRequest $request, ?array $options = nu } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -342,16 +311,6 @@ public function delete(DeleteTransferOrdersRequest $request, ?array $options = n } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -407,16 +366,6 @@ public function cancel(CancelTransferOrderRequest $request, ?array $options = nu } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -478,16 +427,6 @@ public function receive(ReceiveTransferOrderRequest $request, ?array $options = } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -541,16 +480,6 @@ public function start(StartTransferOrderRequest $request, ?array $options = null } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -603,16 +532,6 @@ private function _search(SearchTransferOrdersRequest $request = new SearchTransf } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Types/AcceptDisputeResponse.php b/src/Types/AcceptDisputeResponse.php index e754dbaf..cf186761 100644 --- a/src/Types/AcceptDisputeResponse.php +++ b/src/Types/AcceptDisputeResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getDispute(): ?Dispute public function setDispute(?Dispute $value = null): self { $this->dispute = $value; + $this->_setField('dispute'); return $this; } diff --git a/src/Types/AcceptedPaymentMethods.php b/src/Types/AcceptedPaymentMethods.php index d60e0c27..d8fb3f49 100644 --- a/src/Types/AcceptedPaymentMethods.php +++ b/src/Types/AcceptedPaymentMethods.php @@ -62,6 +62,7 @@ public function getApplePay(): ?bool public function setApplePay(?bool $value = null): self { $this->applePay = $value; + $this->_setField('applePay'); return $this; } @@ -79,6 +80,7 @@ public function getGooglePay(): ?bool public function setGooglePay(?bool $value = null): self { $this->googlePay = $value; + $this->_setField('googlePay'); return $this; } @@ -96,6 +98,7 @@ public function getCashAppPay(): ?bool public function setCashAppPay(?bool $value = null): self { $this->cashAppPay = $value; + $this->_setField('cashAppPay'); return $this; } @@ -113,6 +116,7 @@ public function getAfterpayClearpay(): ?bool public function setAfterpayClearpay(?bool $value = null): self { $this->afterpayClearpay = $value; + $this->_setField('afterpayClearpay'); return $this; } diff --git a/src/Types/AccumulateLoyaltyPointsResponse.php b/src/Types/AccumulateLoyaltyPointsResponse.php index ab29919c..c2101ceb 100644 --- a/src/Types/AccumulateLoyaltyPointsResponse.php +++ b/src/Types/AccumulateLoyaltyPointsResponse.php @@ -62,6 +62,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -79,6 +80,7 @@ public function getEvent(): ?LoyaltyEvent public function setEvent(?LoyaltyEvent $value = null): self { $this->event = $value; + $this->_setField('event'); return $this; } @@ -96,6 +98,7 @@ public function getEvents(): ?array public function setEvents(?array $value = null): self { $this->events = $value; + $this->_setField('events'); return $this; } diff --git a/src/Types/AchDetails.php b/src/Types/AchDetails.php index 37104726..e0acf8a2 100644 --- a/src/Types/AchDetails.php +++ b/src/Types/AchDetails.php @@ -60,6 +60,7 @@ public function getRoutingNumber(): ?string public function setRoutingNumber(?string $value = null): self { $this->routingNumber = $value; + $this->_setField('routingNumber'); return $this; } @@ -77,6 +78,7 @@ public function getAccountNumberSuffix(): ?string public function setAccountNumberSuffix(?string $value = null): self { $this->accountNumberSuffix = $value; + $this->_setField('accountNumberSuffix'); return $this; } @@ -94,6 +96,7 @@ public function getAccountType(): ?string public function setAccountType(?string $value = null): self { $this->accountType = $value; + $this->_setField('accountType'); return $this; } diff --git a/src/Types/AddGroupToCustomerResponse.php b/src/Types/AddGroupToCustomerResponse.php index c2eff1ea..8b096945 100644 --- a/src/Types/AddGroupToCustomerResponse.php +++ b/src/Types/AddGroupToCustomerResponse.php @@ -43,6 +43,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/AdditionalRecipient.php b/src/Types/AdditionalRecipient.php index cd21cf0b..d3c82c93 100644 --- a/src/Types/AdditionalRecipient.php +++ b/src/Types/AdditionalRecipient.php @@ -65,6 +65,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -82,6 +83,7 @@ public function getDescription(): ?string public function setDescription(?string $value = null): self { $this->description = $value; + $this->_setField('description'); return $this; } @@ -99,6 +101,7 @@ public function getAmountMoney(): Money public function setAmountMoney(Money $value): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } @@ -116,6 +119,7 @@ public function getReceivableId(): ?string public function setReceivableId(?string $value = null): self { $this->receivableId = $value; + $this->_setField('receivableId'); return $this; } diff --git a/src/Types/Address.php b/src/Types/Address.php index 36c1a0c5..242303ac 100644 --- a/src/Types/Address.php +++ b/src/Types/Address.php @@ -165,6 +165,7 @@ public function getAddressLine1(): ?string public function setAddressLine1(?string $value = null): self { $this->addressLine1 = $value; + $this->_setField('addressLine1'); return $this; } @@ -182,6 +183,7 @@ public function getAddressLine2(): ?string public function setAddressLine2(?string $value = null): self { $this->addressLine2 = $value; + $this->_setField('addressLine2'); return $this; } @@ -199,6 +201,7 @@ public function getAddressLine3(): ?string public function setAddressLine3(?string $value = null): self { $this->addressLine3 = $value; + $this->_setField('addressLine3'); return $this; } @@ -216,6 +219,7 @@ public function getLocality(): ?string public function setLocality(?string $value = null): self { $this->locality = $value; + $this->_setField('locality'); return $this; } @@ -233,6 +237,7 @@ public function getSublocality(): ?string public function setSublocality(?string $value = null): self { $this->sublocality = $value; + $this->_setField('sublocality'); return $this; } @@ -250,6 +255,7 @@ public function getSublocality2(): ?string public function setSublocality2(?string $value = null): self { $this->sublocality2 = $value; + $this->_setField('sublocality2'); return $this; } @@ -267,6 +273,7 @@ public function getSublocality3(): ?string public function setSublocality3(?string $value = null): self { $this->sublocality3 = $value; + $this->_setField('sublocality3'); return $this; } @@ -284,6 +291,7 @@ public function getAdministrativeDistrictLevel1(): ?string public function setAdministrativeDistrictLevel1(?string $value = null): self { $this->administrativeDistrictLevel1 = $value; + $this->_setField('administrativeDistrictLevel1'); return $this; } @@ -301,6 +309,7 @@ public function getAdministrativeDistrictLevel2(): ?string public function setAdministrativeDistrictLevel2(?string $value = null): self { $this->administrativeDistrictLevel2 = $value; + $this->_setField('administrativeDistrictLevel2'); return $this; } @@ -318,6 +327,7 @@ public function getAdministrativeDistrictLevel3(): ?string public function setAdministrativeDistrictLevel3(?string $value = null): self { $this->administrativeDistrictLevel3 = $value; + $this->_setField('administrativeDistrictLevel3'); return $this; } @@ -335,6 +345,7 @@ public function getPostalCode(): ?string public function setPostalCode(?string $value = null): self { $this->postalCode = $value; + $this->_setField('postalCode'); return $this; } @@ -352,6 +363,7 @@ public function getCountry(): ?string public function setCountry(?string $value = null): self { $this->country = $value; + $this->_setField('country'); return $this; } @@ -369,6 +381,7 @@ public function getFirstName(): ?string public function setFirstName(?string $value = null): self { $this->firstName = $value; + $this->_setField('firstName'); return $this; } @@ -386,6 +399,7 @@ public function getLastName(): ?string public function setLastName(?string $value = null): self { $this->lastName = $value; + $this->_setField('lastName'); return $this; } diff --git a/src/Types/AdjustLoyaltyPointsResponse.php b/src/Types/AdjustLoyaltyPointsResponse.php index 613378a0..8cf12274 100644 --- a/src/Types/AdjustLoyaltyPointsResponse.php +++ b/src/Types/AdjustLoyaltyPointsResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getEvent(): ?LoyaltyEvent public function setEvent(?LoyaltyEvent $value = null): self { $this->event = $value; + $this->_setField('event'); return $this; } diff --git a/src/Types/AfterpayDetails.php b/src/Types/AfterpayDetails.php index 6eaea79d..ff842877 100644 --- a/src/Types/AfterpayDetails.php +++ b/src/Types/AfterpayDetails.php @@ -41,6 +41,7 @@ public function getEmailAddress(): ?string public function setEmailAddress(?string $value = null): self { $this->emailAddress = $value; + $this->_setField('emailAddress'); return $this; } diff --git a/src/Types/ApplicationDetails.php b/src/Types/ApplicationDetails.php index cc3520f4..dbd2deb8 100644 --- a/src/Types/ApplicationDetails.php +++ b/src/Types/ApplicationDetails.php @@ -61,6 +61,7 @@ public function getSquareProduct(): ?string public function setSquareProduct(?string $value = null): self { $this->squareProduct = $value; + $this->_setField('squareProduct'); return $this; } @@ -78,6 +79,7 @@ public function getApplicationId(): ?string public function setApplicationId(?string $value = null): self { $this->applicationId = $value; + $this->_setField('applicationId'); return $this; } diff --git a/src/Types/AppointmentSegment.php b/src/Types/AppointmentSegment.php index 40ce99b0..64a32068 100644 --- a/src/Types/AppointmentSegment.php +++ b/src/Types/AppointmentSegment.php @@ -90,6 +90,7 @@ public function getDurationMinutes(): ?int public function setDurationMinutes(?int $value = null): self { $this->durationMinutes = $value; + $this->_setField('durationMinutes'); return $this; } @@ -107,6 +108,7 @@ public function getServiceVariationId(): ?string public function setServiceVariationId(?string $value = null): self { $this->serviceVariationId = $value; + $this->_setField('serviceVariationId'); return $this; } @@ -124,6 +126,7 @@ public function getTeamMemberId(): string public function setTeamMemberId(string $value): self { $this->teamMemberId = $value; + $this->_setField('teamMemberId'); return $this; } @@ -141,6 +144,7 @@ public function getServiceVariationVersion(): ?int public function setServiceVariationVersion(?int $value = null): self { $this->serviceVariationVersion = $value; + $this->_setField('serviceVariationVersion'); return $this; } @@ -158,6 +162,7 @@ public function getIntermissionMinutes(): ?int public function setIntermissionMinutes(?int $value = null): self { $this->intermissionMinutes = $value; + $this->_setField('intermissionMinutes'); return $this; } @@ -175,6 +180,7 @@ public function getAnyTeamMember(): ?bool public function setAnyTeamMember(?bool $value = null): self { $this->anyTeamMember = $value; + $this->_setField('anyTeamMember'); return $this; } @@ -192,6 +198,7 @@ public function getResourceIds(): ?array public function setResourceIds(?array $value = null): self { $this->resourceIds = $value; + $this->_setField('resourceIds'); return $this; } diff --git a/src/Types/Availability.php b/src/Types/Availability.php index 3ab37b98..76724e13 100644 --- a/src/Types/Availability.php +++ b/src/Types/Availability.php @@ -58,6 +58,7 @@ public function getStartAt(): ?string public function setStartAt(?string $value = null): self { $this->startAt = $value; + $this->_setField('startAt'); return $this; } @@ -75,6 +76,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -92,6 +94,7 @@ public function getAppointmentSegments(): ?array public function setAppointmentSegments(?array $value = null): self { $this->appointmentSegments = $value; + $this->_setField('appointmentSegments'); return $this; } diff --git a/src/Types/BankAccount.php b/src/Types/BankAccount.php index 71547b0a..0989ef62 100644 --- a/src/Types/BankAccount.php +++ b/src/Types/BankAccount.php @@ -218,6 +218,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -235,6 +236,7 @@ public function getAccountNumberSuffix(): string public function setAccountNumberSuffix(string $value): self { $this->accountNumberSuffix = $value; + $this->_setField('accountNumberSuffix'); return $this; } @@ -252,6 +254,7 @@ public function getCountry(): string public function setCountry(string $value): self { $this->country = $value; + $this->_setField('country'); return $this; } @@ -269,6 +272,7 @@ public function getCurrency(): string public function setCurrency(string $value): self { $this->currency = $value; + $this->_setField('currency'); return $this; } @@ -286,6 +290,7 @@ public function getAccountType(): string public function setAccountType(string $value): self { $this->accountType = $value; + $this->_setField('accountType'); return $this; } @@ -303,6 +308,7 @@ public function getHolderName(): string public function setHolderName(string $value): self { $this->holderName = $value; + $this->_setField('holderName'); return $this; } @@ -320,6 +326,7 @@ public function getPrimaryBankIdentificationNumber(): string public function setPrimaryBankIdentificationNumber(string $value): self { $this->primaryBankIdentificationNumber = $value; + $this->_setField('primaryBankIdentificationNumber'); return $this; } @@ -337,6 +344,7 @@ public function getSecondaryBankIdentificationNumber(): ?string public function setSecondaryBankIdentificationNumber(?string $value = null): self { $this->secondaryBankIdentificationNumber = $value; + $this->_setField('secondaryBankIdentificationNumber'); return $this; } @@ -354,6 +362,7 @@ public function getDebitMandateReferenceId(): ?string public function setDebitMandateReferenceId(?string $value = null): self { $this->debitMandateReferenceId = $value; + $this->_setField('debitMandateReferenceId'); return $this; } @@ -371,6 +380,7 @@ public function getReferenceId(): ?string public function setReferenceId(?string $value = null): self { $this->referenceId = $value; + $this->_setField('referenceId'); return $this; } @@ -388,6 +398,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -405,6 +416,7 @@ public function getStatus(): string public function setStatus(string $value): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -422,6 +434,7 @@ public function getCreditable(): bool public function setCreditable(bool $value): self { $this->creditable = $value; + $this->_setField('creditable'); return $this; } @@ -439,6 +452,7 @@ public function getDebitable(): bool public function setDebitable(bool $value): self { $this->debitable = $value; + $this->_setField('debitable'); return $this; } @@ -456,6 +470,7 @@ public function getFingerprint(): ?string public function setFingerprint(?string $value = null): self { $this->fingerprint = $value; + $this->_setField('fingerprint'); return $this; } @@ -473,6 +488,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -490,6 +506,7 @@ public function getBankName(): ?string public function setBankName(?string $value = null): self { $this->bankName = $value; + $this->_setField('bankName'); return $this; } @@ -507,6 +524,7 @@ public function getCustomerId(): ?string public function setCustomerId(?string $value = null): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } diff --git a/src/Types/BankAccountCreatedEvent.php b/src/Types/BankAccountCreatedEvent.php index e3f93d8b..164e04d5 100644 --- a/src/Types/BankAccountCreatedEvent.php +++ b/src/Types/BankAccountCreatedEvent.php @@ -83,6 +83,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -100,6 +101,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -117,6 +119,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -134,6 +137,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -151,6 +155,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -168,6 +173,7 @@ public function getData(): ?BankAccountCreatedEventData public function setData(?BankAccountCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/BankAccountCreatedEventData.php b/src/Types/BankAccountCreatedEventData.php index 4041f96d..a06116c9 100644 --- a/src/Types/BankAccountCreatedEventData.php +++ b/src/Types/BankAccountCreatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?BankAccountCreatedEventObject public function setObject(?BankAccountCreatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/BankAccountCreatedEventObject.php b/src/Types/BankAccountCreatedEventObject.php index 722be673..b0b49c3d 100644 --- a/src/Types/BankAccountCreatedEventObject.php +++ b/src/Types/BankAccountCreatedEventObject.php @@ -38,6 +38,7 @@ public function getBankAccount(): ?BankAccount public function setBankAccount(?BankAccount $value = null): self { $this->bankAccount = $value; + $this->_setField('bankAccount'); return $this; } diff --git a/src/Types/BankAccountDisabledEvent.php b/src/Types/BankAccountDisabledEvent.php index afaacd43..84a8d75d 100644 --- a/src/Types/BankAccountDisabledEvent.php +++ b/src/Types/BankAccountDisabledEvent.php @@ -82,6 +82,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -99,6 +100,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -116,6 +118,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -133,6 +136,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -150,6 +154,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -167,6 +172,7 @@ public function getData(): ?BankAccountDisabledEventData public function setData(?BankAccountDisabledEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/BankAccountDisabledEventData.php b/src/Types/BankAccountDisabledEventData.php index 8f4212df..7258eaab 100644 --- a/src/Types/BankAccountDisabledEventData.php +++ b/src/Types/BankAccountDisabledEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?BankAccountDisabledEventObject public function setObject(?BankAccountDisabledEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/BankAccountDisabledEventObject.php b/src/Types/BankAccountDisabledEventObject.php index 1c288c5c..d137b846 100644 --- a/src/Types/BankAccountDisabledEventObject.php +++ b/src/Types/BankAccountDisabledEventObject.php @@ -38,6 +38,7 @@ public function getBankAccount(): ?BankAccount public function setBankAccount(?BankAccount $value = null): self { $this->bankAccount = $value; + $this->_setField('bankAccount'); return $this; } diff --git a/src/Types/BankAccountPaymentDetails.php b/src/Types/BankAccountPaymentDetails.php index 1ddf0e61..22718346 100644 --- a/src/Types/BankAccountPaymentDetails.php +++ b/src/Types/BankAccountPaymentDetails.php @@ -107,6 +107,7 @@ public function getBankName(): ?string public function setBankName(?string $value = null): self { $this->bankName = $value; + $this->_setField('bankName'); return $this; } @@ -124,6 +125,7 @@ public function getTransferType(): ?string public function setTransferType(?string $value = null): self { $this->transferType = $value; + $this->_setField('transferType'); return $this; } @@ -141,6 +143,7 @@ public function getAccountOwnershipType(): ?string public function setAccountOwnershipType(?string $value = null): self { $this->accountOwnershipType = $value; + $this->_setField('accountOwnershipType'); return $this; } @@ -158,6 +161,7 @@ public function getFingerprint(): ?string public function setFingerprint(?string $value = null): self { $this->fingerprint = $value; + $this->_setField('fingerprint'); return $this; } @@ -175,6 +179,7 @@ public function getCountry(): ?string public function setCountry(?string $value = null): self { $this->country = $value; + $this->_setField('country'); return $this; } @@ -192,6 +197,7 @@ public function getStatementDescription(): ?string public function setStatementDescription(?string $value = null): self { $this->statementDescription = $value; + $this->_setField('statementDescription'); return $this; } @@ -209,6 +215,7 @@ public function getAchDetails(): ?AchDetails public function setAchDetails(?AchDetails $value = null): self { $this->achDetails = $value; + $this->_setField('achDetails'); return $this; } @@ -226,6 +233,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/BankAccountVerifiedEvent.php b/src/Types/BankAccountVerifiedEvent.php index d461bc08..9378dbca 100644 --- a/src/Types/BankAccountVerifiedEvent.php +++ b/src/Types/BankAccountVerifiedEvent.php @@ -82,6 +82,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -99,6 +100,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -116,6 +118,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -133,6 +136,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -150,6 +154,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -167,6 +172,7 @@ public function getData(): ?BankAccountVerifiedEventData public function setData(?BankAccountVerifiedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/BankAccountVerifiedEventData.php b/src/Types/BankAccountVerifiedEventData.php index b5034d44..7fed7b50 100644 --- a/src/Types/BankAccountVerifiedEventData.php +++ b/src/Types/BankAccountVerifiedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?BankAccountVerifiedEventObject public function setObject(?BankAccountVerifiedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/BankAccountVerifiedEventObject.php b/src/Types/BankAccountVerifiedEventObject.php index 71eebb08..2b750354 100644 --- a/src/Types/BankAccountVerifiedEventObject.php +++ b/src/Types/BankAccountVerifiedEventObject.php @@ -38,6 +38,7 @@ public function getBankAccount(): ?BankAccount public function setBankAccount(?BankAccount $value = null): self { $this->bankAccount = $value; + $this->_setField('bankAccount'); return $this; } diff --git a/src/Types/BatchChangeInventoryRequest.php b/src/Types/BatchChangeInventoryRequest.php index a3762301..6fd3f2b7 100644 --- a/src/Types/BatchChangeInventoryRequest.php +++ b/src/Types/BatchChangeInventoryRequest.php @@ -69,6 +69,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -86,6 +87,7 @@ public function getChanges(): ?array public function setChanges(?array $value = null): self { $this->changes = $value; + $this->_setField('changes'); return $this; } @@ -103,6 +105,7 @@ public function getIgnoreUnchangedCounts(): ?bool public function setIgnoreUnchangedCounts(?bool $value = null): self { $this->ignoreUnchangedCounts = $value; + $this->_setField('ignoreUnchangedCounts'); return $this; } diff --git a/src/Types/BatchChangeInventoryResponse.php b/src/Types/BatchChangeInventoryResponse.php index bcdd6b46..b13d2a61 100644 --- a/src/Types/BatchChangeInventoryResponse.php +++ b/src/Types/BatchChangeInventoryResponse.php @@ -55,6 +55,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -72,6 +73,7 @@ public function getCounts(): ?array public function setCounts(?array $value = null): self { $this->counts = $value; + $this->_setField('counts'); return $this; } @@ -89,6 +91,7 @@ public function getChanges(): ?array public function setChanges(?array $value = null): self { $this->changes = $value; + $this->_setField('changes'); return $this; } diff --git a/src/Types/BatchCreateTeamMembersResponse.php b/src/Types/BatchCreateTeamMembersResponse.php index fc0b185a..b7fe7662 100644 --- a/src/Types/BatchCreateTeamMembersResponse.php +++ b/src/Types/BatchCreateTeamMembersResponse.php @@ -50,6 +50,7 @@ public function getTeamMembers(): ?array public function setTeamMembers(?array $value = null): self { $this->teamMembers = $value; + $this->_setField('teamMembers'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/BatchCreateVendorsResponse.php b/src/Types/BatchCreateVendorsResponse.php index 62954a9b..31e02692 100644 --- a/src/Types/BatchCreateVendorsResponse.php +++ b/src/Types/BatchCreateVendorsResponse.php @@ -55,6 +55,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -72,6 +73,7 @@ public function getResponses(): ?array public function setResponses(?array $value = null): self { $this->responses = $value; + $this->_setField('responses'); return $this; } diff --git a/src/Types/BatchDeleteCatalogObjectsResponse.php b/src/Types/BatchDeleteCatalogObjectsResponse.php index 2f55dc35..eca9f50a 100644 --- a/src/Types/BatchDeleteCatalogObjectsResponse.php +++ b/src/Types/BatchDeleteCatalogObjectsResponse.php @@ -55,6 +55,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -72,6 +73,7 @@ public function getDeletedObjectIds(): ?array public function setDeletedObjectIds(?array $value = null): self { $this->deletedObjectIds = $value; + $this->_setField('deletedObjectIds'); return $this; } @@ -89,6 +91,7 @@ public function getDeletedAt(): ?string public function setDeletedAt(?string $value = null): self { $this->deletedAt = $value; + $this->_setField('deletedAt'); return $this; } diff --git a/src/Types/BatchGetCatalogObjectsResponse.php b/src/Types/BatchGetCatalogObjectsResponse.php index fbdc9bfb..4746c0b5 100644 --- a/src/Types/BatchGetCatalogObjectsResponse.php +++ b/src/Types/BatchGetCatalogObjectsResponse.php @@ -55,6 +55,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -72,6 +73,7 @@ public function getObjects(): ?array public function setObjects(?array $value = null): self { $this->objects = $value; + $this->_setField('objects'); return $this; } @@ -89,6 +91,7 @@ public function getRelatedObjects(): ?array public function setRelatedObjects(?array $value = null): self { $this->relatedObjects = $value; + $this->_setField('relatedObjects'); return $this; } diff --git a/src/Types/BatchGetInventoryChangesResponse.php b/src/Types/BatchGetInventoryChangesResponse.php index 227bd3e5..37cc3384 100644 --- a/src/Types/BatchGetInventoryChangesResponse.php +++ b/src/Types/BatchGetInventoryChangesResponse.php @@ -62,6 +62,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -79,6 +80,7 @@ public function getChanges(): ?array public function setChanges(?array $value = null): self { $this->changes = $value; + $this->_setField('changes'); return $this; } @@ -96,6 +98,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/BatchGetInventoryCountsRequest.php b/src/Types/BatchGetInventoryCountsRequest.php index 885f874a..4af5c84d 100644 --- a/src/Types/BatchGetInventoryCountsRequest.php +++ b/src/Types/BatchGetInventoryCountsRequest.php @@ -98,6 +98,7 @@ public function getCatalogObjectIds(): ?array public function setCatalogObjectIds(?array $value = null): self { $this->catalogObjectIds = $value; + $this->_setField('catalogObjectIds'); return $this; } @@ -115,6 +116,7 @@ public function getLocationIds(): ?array public function setLocationIds(?array $value = null): self { $this->locationIds = $value; + $this->_setField('locationIds'); return $this; } @@ -132,6 +134,7 @@ public function getUpdatedAfter(): ?string public function setUpdatedAfter(?string $value = null): self { $this->updatedAfter = $value; + $this->_setField('updatedAfter'); return $this; } @@ -149,6 +152,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -166,6 +170,7 @@ public function getStates(): ?array public function setStates(?array $value = null): self { $this->states = $value; + $this->_setField('states'); return $this; } @@ -183,6 +188,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } diff --git a/src/Types/BatchGetInventoryCountsResponse.php b/src/Types/BatchGetInventoryCountsResponse.php index fc2bc4c6..fb7ebc7e 100644 --- a/src/Types/BatchGetInventoryCountsResponse.php +++ b/src/Types/BatchGetInventoryCountsResponse.php @@ -63,6 +63,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -80,6 +81,7 @@ public function getCounts(): ?array public function setCounts(?array $value = null): self { $this->counts = $value; + $this->_setField('counts'); return $this; } @@ -97,6 +99,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/BatchGetOrdersResponse.php b/src/Types/BatchGetOrdersResponse.php index 831fd6be..a1473ed2 100644 --- a/src/Types/BatchGetOrdersResponse.php +++ b/src/Types/BatchGetOrdersResponse.php @@ -51,6 +51,7 @@ public function getOrders(): ?array public function setOrders(?array $value = null): self { $this->orders = $value; + $this->_setField('orders'); return $this; } @@ -68,6 +69,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/BatchGetVendorsResponse.php b/src/Types/BatchGetVendorsResponse.php index e378cd6c..da70752e 100644 --- a/src/Types/BatchGetVendorsResponse.php +++ b/src/Types/BatchGetVendorsResponse.php @@ -54,6 +54,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -71,6 +72,7 @@ public function getResponses(): ?array public function setResponses(?array $value = null): self { $this->responses = $value; + $this->_setField('responses'); return $this; } diff --git a/src/Types/BatchRetrieveInventoryChangesRequest.php b/src/Types/BatchRetrieveInventoryChangesRequest.php index d35c2581..d6ff7249 100644 --- a/src/Types/BatchRetrieveInventoryChangesRequest.php +++ b/src/Types/BatchRetrieveInventoryChangesRequest.php @@ -121,6 +121,7 @@ public function getCatalogObjectIds(): ?array public function setCatalogObjectIds(?array $value = null): self { $this->catalogObjectIds = $value; + $this->_setField('catalogObjectIds'); return $this; } @@ -138,6 +139,7 @@ public function getLocationIds(): ?array public function setLocationIds(?array $value = null): self { $this->locationIds = $value; + $this->_setField('locationIds'); return $this; } @@ -155,6 +157,7 @@ public function getTypes(): ?array public function setTypes(?array $value = null): self { $this->types = $value; + $this->_setField('types'); return $this; } @@ -172,6 +175,7 @@ public function getStates(): ?array public function setStates(?array $value = null): self { $this->states = $value; + $this->_setField('states'); return $this; } @@ -189,6 +193,7 @@ public function getUpdatedAfter(): ?string public function setUpdatedAfter(?string $value = null): self { $this->updatedAfter = $value; + $this->_setField('updatedAfter'); return $this; } @@ -206,6 +211,7 @@ public function getUpdatedBefore(): ?string public function setUpdatedBefore(?string $value = null): self { $this->updatedBefore = $value; + $this->_setField('updatedBefore'); return $this; } @@ -223,6 +229,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -240,6 +247,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } diff --git a/src/Types/BatchUpdateTeamMembersResponse.php b/src/Types/BatchUpdateTeamMembersResponse.php index 1b71f924..4c137c9a 100644 --- a/src/Types/BatchUpdateTeamMembersResponse.php +++ b/src/Types/BatchUpdateTeamMembersResponse.php @@ -50,6 +50,7 @@ public function getTeamMembers(): ?array public function setTeamMembers(?array $value = null): self { $this->teamMembers = $value; + $this->_setField('teamMembers'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/BatchUpdateVendorsResponse.php b/src/Types/BatchUpdateVendorsResponse.php index 237d408a..2aa6ccad 100644 --- a/src/Types/BatchUpdateVendorsResponse.php +++ b/src/Types/BatchUpdateVendorsResponse.php @@ -54,6 +54,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -71,6 +72,7 @@ public function getResponses(): ?array public function setResponses(?array $value = null): self { $this->responses = $value; + $this->_setField('responses'); return $this; } diff --git a/src/Types/BatchUpsertCatalogObjectsResponse.php b/src/Types/BatchUpsertCatalogObjectsResponse.php index 7244b4e5..8fdcc1c1 100644 --- a/src/Types/BatchUpsertCatalogObjectsResponse.php +++ b/src/Types/BatchUpsertCatalogObjectsResponse.php @@ -63,6 +63,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -80,6 +81,7 @@ public function getObjects(): ?array public function setObjects(?array $value = null): self { $this->objects = $value; + $this->_setField('objects'); return $this; } @@ -97,6 +99,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -114,6 +117,7 @@ public function getIdMappings(): ?array public function setIdMappings(?array $value = null): self { $this->idMappings = $value; + $this->_setField('idMappings'); return $this; } diff --git a/src/Types/BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest.php b/src/Types/BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest.php index bd03bd96..fec4d84a 100644 --- a/src/Types/BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest.php +++ b/src/Types/BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest.php @@ -74,6 +74,7 @@ public function getCustomerId(): string public function setCustomerId(string $value): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -91,6 +92,7 @@ public function getCustomAttribute(): CustomAttribute public function setCustomAttribute(CustomAttribute $value): self { $this->customAttribute = $value; + $this->_setField('customAttribute'); return $this; } @@ -108,6 +110,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } diff --git a/src/Types/BatchUpsertCustomerCustomAttributesResponse.php b/src/Types/BatchUpsertCustomerCustomAttributesResponse.php index 7f9677fd..064b52b6 100644 --- a/src/Types/BatchUpsertCustomerCustomAttributesResponse.php +++ b/src/Types/BatchUpsertCustomerCustomAttributesResponse.php @@ -54,6 +54,7 @@ public function getValues(): ?array public function setValues(?array $value = null): self { $this->values = $value; + $this->_setField('values'); return $this; } @@ -71,6 +72,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse.php b/src/Types/BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse.php index e60f51f7..e5d25a45 100644 --- a/src/Types/BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse.php +++ b/src/Types/BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse.php @@ -58,6 +58,7 @@ public function getCustomerId(): ?string public function setCustomerId(?string $value = null): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -75,6 +76,7 @@ public function getCustomAttribute(): ?CustomAttribute public function setCustomAttribute(?CustomAttribute $value = null): self { $this->customAttribute = $value; + $this->_setField('customAttribute'); return $this; } @@ -92,6 +94,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/Booking.php b/src/Types/Booking.php index a5ebade9..81d8987b 100644 --- a/src/Types/Booking.php +++ b/src/Types/Booking.php @@ -187,6 +187,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -204,6 +205,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -221,6 +223,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -238,6 +241,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -255,6 +259,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -272,6 +277,7 @@ public function getStartAt(): ?string public function setStartAt(?string $value = null): self { $this->startAt = $value; + $this->_setField('startAt'); return $this; } @@ -289,6 +295,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -306,6 +313,7 @@ public function getCustomerId(): ?string public function setCustomerId(?string $value = null): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -323,6 +331,7 @@ public function getCustomerNote(): ?string public function setCustomerNote(?string $value = null): self { $this->customerNote = $value; + $this->_setField('customerNote'); return $this; } @@ -340,6 +349,7 @@ public function getSellerNote(): ?string public function setSellerNote(?string $value = null): self { $this->sellerNote = $value; + $this->_setField('sellerNote'); return $this; } @@ -357,6 +367,7 @@ public function getAppointmentSegments(): ?array public function setAppointmentSegments(?array $value = null): self { $this->appointmentSegments = $value; + $this->_setField('appointmentSegments'); return $this; } @@ -374,6 +385,7 @@ public function getTransitionTimeMinutes(): ?int public function setTransitionTimeMinutes(?int $value = null): self { $this->transitionTimeMinutes = $value; + $this->_setField('transitionTimeMinutes'); return $this; } @@ -391,6 +403,7 @@ public function getAllDay(): ?bool public function setAllDay(?bool $value = null): self { $this->allDay = $value; + $this->_setField('allDay'); return $this; } @@ -408,6 +421,7 @@ public function getLocationType(): ?string public function setLocationType(?string $value = null): self { $this->locationType = $value; + $this->_setField('locationType'); return $this; } @@ -425,6 +439,7 @@ public function getCreatorDetails(): ?BookingCreatorDetails public function setCreatorDetails(?BookingCreatorDetails $value = null): self { $this->creatorDetails = $value; + $this->_setField('creatorDetails'); return $this; } @@ -442,6 +457,7 @@ public function getSource(): ?string public function setSource(?string $value = null): self { $this->source = $value; + $this->_setField('source'); return $this; } @@ -459,6 +475,7 @@ public function getAddress(): ?Address public function setAddress(?Address $value = null): self { $this->address = $value; + $this->_setField('address'); return $this; } diff --git a/src/Types/BookingCreatedEvent.php b/src/Types/BookingCreatedEvent.php index bd46be25..055f38a0 100644 --- a/src/Types/BookingCreatedEvent.php +++ b/src/Types/BookingCreatedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?BookingCreatedEventData public function setData(?BookingCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/BookingCreatedEventData.php b/src/Types/BookingCreatedEventData.php index 0048ab66..ae3fdff5 100644 --- a/src/Types/BookingCreatedEventData.php +++ b/src/Types/BookingCreatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?BookingCreatedEventObject public function setObject(?BookingCreatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/BookingCreatedEventObject.php b/src/Types/BookingCreatedEventObject.php index c2b3a493..b3926e5b 100644 --- a/src/Types/BookingCreatedEventObject.php +++ b/src/Types/BookingCreatedEventObject.php @@ -38,6 +38,7 @@ public function getBooking(): ?Booking public function setBooking(?Booking $value = null): self { $this->booking = $value; + $this->_setField('booking'); return $this; } diff --git a/src/Types/BookingCreatorDetails.php b/src/Types/BookingCreatorDetails.php index fafd09bf..09e6777c 100644 --- a/src/Types/BookingCreatorDetails.php +++ b/src/Types/BookingCreatorDetails.php @@ -66,6 +66,7 @@ public function getCreatorType(): ?string public function setCreatorType(?string $value = null): self { $this->creatorType = $value; + $this->_setField('creatorType'); return $this; } @@ -83,6 +84,7 @@ public function getTeamMemberId(): ?string public function setTeamMemberId(?string $value = null): self { $this->teamMemberId = $value; + $this->_setField('teamMemberId'); return $this; } @@ -100,6 +102,7 @@ public function getCustomerId(): ?string public function setCustomerId(?string $value = null): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } diff --git a/src/Types/BookingCustomAttributeDefinitionOwnedCreatedEvent.php b/src/Types/BookingCustomAttributeDefinitionOwnedCreatedEvent.php index 23d14774..024154d0 100644 --- a/src/Types/BookingCustomAttributeDefinitionOwnedCreatedEvent.php +++ b/src/Types/BookingCustomAttributeDefinitionOwnedCreatedEvent.php @@ -75,6 +75,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -92,6 +93,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -109,6 +111,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -126,6 +129,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -143,6 +147,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/BookingCustomAttributeDefinitionOwnedDeletedEvent.php b/src/Types/BookingCustomAttributeDefinitionOwnedDeletedEvent.php index 1365192e..c4cbd4e8 100644 --- a/src/Types/BookingCustomAttributeDefinitionOwnedDeletedEvent.php +++ b/src/Types/BookingCustomAttributeDefinitionOwnedDeletedEvent.php @@ -75,6 +75,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -92,6 +93,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -109,6 +111,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -126,6 +129,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -143,6 +147,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/BookingCustomAttributeDefinitionOwnedUpdatedEvent.php b/src/Types/BookingCustomAttributeDefinitionOwnedUpdatedEvent.php index 49c3b2b6..529f5bc3 100644 --- a/src/Types/BookingCustomAttributeDefinitionOwnedUpdatedEvent.php +++ b/src/Types/BookingCustomAttributeDefinitionOwnedUpdatedEvent.php @@ -75,6 +75,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -92,6 +93,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -109,6 +111,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -126,6 +129,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -143,6 +147,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/BookingCustomAttributeDefinitionVisibleCreatedEvent.php b/src/Types/BookingCustomAttributeDefinitionVisibleCreatedEvent.php index 1117f962..49a324b8 100644 --- a/src/Types/BookingCustomAttributeDefinitionVisibleCreatedEvent.php +++ b/src/Types/BookingCustomAttributeDefinitionVisibleCreatedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/BookingCustomAttributeDefinitionVisibleDeletedEvent.php b/src/Types/BookingCustomAttributeDefinitionVisibleDeletedEvent.php index b11bd277..8883ad45 100644 --- a/src/Types/BookingCustomAttributeDefinitionVisibleDeletedEvent.php +++ b/src/Types/BookingCustomAttributeDefinitionVisibleDeletedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/BookingCustomAttributeDefinitionVisibleUpdatedEvent.php b/src/Types/BookingCustomAttributeDefinitionVisibleUpdatedEvent.php index e1aadced..c688b665 100644 --- a/src/Types/BookingCustomAttributeDefinitionVisibleUpdatedEvent.php +++ b/src/Types/BookingCustomAttributeDefinitionVisibleUpdatedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/BookingCustomAttributeDeleteRequest.php b/src/Types/BookingCustomAttributeDeleteRequest.php index 47646ea3..77667f42 100644 --- a/src/Types/BookingCustomAttributeDeleteRequest.php +++ b/src/Types/BookingCustomAttributeDeleteRequest.php @@ -54,6 +54,7 @@ public function getBookingId(): string public function setBookingId(string $value): self { $this->bookingId = $value; + $this->_setField('bookingId'); return $this; } @@ -71,6 +72,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } diff --git a/src/Types/BookingCustomAttributeDeleteResponse.php b/src/Types/BookingCustomAttributeDeleteResponse.php index bc7d3113..fd205574 100644 --- a/src/Types/BookingCustomAttributeDeleteResponse.php +++ b/src/Types/BookingCustomAttributeDeleteResponse.php @@ -50,6 +50,7 @@ public function getBookingId(): ?string public function setBookingId(?string $value = null): self { $this->bookingId = $value; + $this->_setField('bookingId'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/BookingCustomAttributeOwnedDeletedEvent.php b/src/Types/BookingCustomAttributeOwnedDeletedEvent.php index e499c439..c7948425 100644 --- a/src/Types/BookingCustomAttributeOwnedDeletedEvent.php +++ b/src/Types/BookingCustomAttributeOwnedDeletedEvent.php @@ -77,6 +77,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -94,6 +95,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -111,6 +113,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -128,6 +131,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -145,6 +149,7 @@ public function getData(): ?CustomAttributeEventData public function setData(?CustomAttributeEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/BookingCustomAttributeOwnedUpdatedEvent.php b/src/Types/BookingCustomAttributeOwnedUpdatedEvent.php index 788d0cf0..fb88a101 100644 --- a/src/Types/BookingCustomAttributeOwnedUpdatedEvent.php +++ b/src/Types/BookingCustomAttributeOwnedUpdatedEvent.php @@ -75,6 +75,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -92,6 +93,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -109,6 +111,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -126,6 +129,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -143,6 +147,7 @@ public function getData(): ?CustomAttributeEventData public function setData(?CustomAttributeEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/BookingCustomAttributeUpsertRequest.php b/src/Types/BookingCustomAttributeUpsertRequest.php index aeb096bf..79169b3c 100644 --- a/src/Types/BookingCustomAttributeUpsertRequest.php +++ b/src/Types/BookingCustomAttributeUpsertRequest.php @@ -74,6 +74,7 @@ public function getBookingId(): string public function setBookingId(string $value): self { $this->bookingId = $value; + $this->_setField('bookingId'); return $this; } @@ -91,6 +92,7 @@ public function getCustomAttribute(): CustomAttribute public function setCustomAttribute(CustomAttribute $value): self { $this->customAttribute = $value; + $this->_setField('customAttribute'); return $this; } @@ -108,6 +110,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } diff --git a/src/Types/BookingCustomAttributeUpsertResponse.php b/src/Types/BookingCustomAttributeUpsertResponse.php index db24529f..88c14d6d 100644 --- a/src/Types/BookingCustomAttributeUpsertResponse.php +++ b/src/Types/BookingCustomAttributeUpsertResponse.php @@ -58,6 +58,7 @@ public function getBookingId(): ?string public function setBookingId(?string $value = null): self { $this->bookingId = $value; + $this->_setField('bookingId'); return $this; } @@ -75,6 +76,7 @@ public function getCustomAttribute(): ?CustomAttribute public function setCustomAttribute(?CustomAttribute $value = null): self { $this->customAttribute = $value; + $this->_setField('customAttribute'); return $this; } @@ -92,6 +94,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/BookingCustomAttributeVisibleDeletedEvent.php b/src/Types/BookingCustomAttributeVisibleDeletedEvent.php index 9a0d047d..fdea37e7 100644 --- a/src/Types/BookingCustomAttributeVisibleDeletedEvent.php +++ b/src/Types/BookingCustomAttributeVisibleDeletedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?CustomAttributeEventData public function setData(?CustomAttributeEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/BookingCustomAttributeVisibleUpdatedEvent.php b/src/Types/BookingCustomAttributeVisibleUpdatedEvent.php index f300f208..c479ff6e 100644 --- a/src/Types/BookingCustomAttributeVisibleUpdatedEvent.php +++ b/src/Types/BookingCustomAttributeVisibleUpdatedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?CustomAttributeEventData public function setData(?CustomAttributeEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/BookingUpdatedEvent.php b/src/Types/BookingUpdatedEvent.php index 12d70338..ae0f1dd6 100644 --- a/src/Types/BookingUpdatedEvent.php +++ b/src/Types/BookingUpdatedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?BookingUpdatedEventData public function setData(?BookingUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/BookingUpdatedEventData.php b/src/Types/BookingUpdatedEventData.php index 0fcbc995..636bc791 100644 --- a/src/Types/BookingUpdatedEventData.php +++ b/src/Types/BookingUpdatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?BookingUpdatedEventObject public function setObject(?BookingUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/BookingUpdatedEventObject.php b/src/Types/BookingUpdatedEventObject.php index 169aa055..dde1c1bf 100644 --- a/src/Types/BookingUpdatedEventObject.php +++ b/src/Types/BookingUpdatedEventObject.php @@ -38,6 +38,7 @@ public function getBooking(): ?Booking public function setBooking(?Booking $value = null): self { $this->booking = $value; + $this->_setField('booking'); return $this; } diff --git a/src/Types/BreakType.php b/src/Types/BreakType.php index df58d08b..33feec7d 100644 --- a/src/Types/BreakType.php +++ b/src/Types/BreakType.php @@ -114,6 +114,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -131,6 +132,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -148,6 +150,7 @@ public function getBreakName(): string public function setBreakName(string $value): self { $this->breakName = $value; + $this->_setField('breakName'); return $this; } @@ -165,6 +168,7 @@ public function getExpectedDuration(): string public function setExpectedDuration(string $value): self { $this->expectedDuration = $value; + $this->_setField('expectedDuration'); return $this; } @@ -182,6 +186,7 @@ public function getIsPaid(): bool public function setIsPaid(bool $value): self { $this->isPaid = $value; + $this->_setField('isPaid'); return $this; } @@ -199,6 +204,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -216,6 +222,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -233,6 +240,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } diff --git a/src/Types/Break_.php b/src/Types/Break_.php index deca724a..f9f76ffd 100644 --- a/src/Types/Break_.php +++ b/src/Types/Break_.php @@ -103,6 +103,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -120,6 +121,7 @@ public function getStartAt(): string public function setStartAt(string $value): self { $this->startAt = $value; + $this->_setField('startAt'); return $this; } @@ -137,6 +139,7 @@ public function getEndAt(): ?string public function setEndAt(?string $value = null): self { $this->endAt = $value; + $this->_setField('endAt'); return $this; } @@ -154,6 +157,7 @@ public function getBreakTypeId(): string public function setBreakTypeId(string $value): self { $this->breakTypeId = $value; + $this->_setField('breakTypeId'); return $this; } @@ -171,6 +175,7 @@ public function getName(): string public function setName(string $value): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -188,6 +193,7 @@ public function getExpectedDuration(): string public function setExpectedDuration(string $value): self { $this->expectedDuration = $value; + $this->_setField('expectedDuration'); return $this; } @@ -205,6 +211,7 @@ public function getIsPaid(): bool public function setIsPaid(bool $value): self { $this->isPaid = $value; + $this->_setField('isPaid'); return $this; } diff --git a/src/Types/BulkCreateCustomerData.php b/src/Types/BulkCreateCustomerData.php index c6ac209f..f6197766 100644 --- a/src/Types/BulkCreateCustomerData.php +++ b/src/Types/BulkCreateCustomerData.php @@ -142,6 +142,7 @@ public function getGivenName(): ?string public function setGivenName(?string $value = null): self { $this->givenName = $value; + $this->_setField('givenName'); return $this; } @@ -159,6 +160,7 @@ public function getFamilyName(): ?string public function setFamilyName(?string $value = null): self { $this->familyName = $value; + $this->_setField('familyName'); return $this; } @@ -176,6 +178,7 @@ public function getCompanyName(): ?string public function setCompanyName(?string $value = null): self { $this->companyName = $value; + $this->_setField('companyName'); return $this; } @@ -193,6 +196,7 @@ public function getNickname(): ?string public function setNickname(?string $value = null): self { $this->nickname = $value; + $this->_setField('nickname'); return $this; } @@ -210,6 +214,7 @@ public function getEmailAddress(): ?string public function setEmailAddress(?string $value = null): self { $this->emailAddress = $value; + $this->_setField('emailAddress'); return $this; } @@ -227,6 +232,7 @@ public function getAddress(): ?Address public function setAddress(?Address $value = null): self { $this->address = $value; + $this->_setField('address'); return $this; } @@ -244,6 +250,7 @@ public function getPhoneNumber(): ?string public function setPhoneNumber(?string $value = null): self { $this->phoneNumber = $value; + $this->_setField('phoneNumber'); return $this; } @@ -261,6 +268,7 @@ public function getReferenceId(): ?string public function setReferenceId(?string $value = null): self { $this->referenceId = $value; + $this->_setField('referenceId'); return $this; } @@ -278,6 +286,7 @@ public function getNote(): ?string public function setNote(?string $value = null): self { $this->note = $value; + $this->_setField('note'); return $this; } @@ -295,6 +304,7 @@ public function getBirthday(): ?string public function setBirthday(?string $value = null): self { $this->birthday = $value; + $this->_setField('birthday'); return $this; } @@ -312,6 +322,7 @@ public function getTaxIds(): ?CustomerTaxIds public function setTaxIds(?CustomerTaxIds $value = null): self { $this->taxIds = $value; + $this->_setField('taxIds'); return $this; } diff --git a/src/Types/BulkCreateCustomersResponse.php b/src/Types/BulkCreateCustomersResponse.php index cec5ff9c..7c1405f5 100644 --- a/src/Types/BulkCreateCustomersResponse.php +++ b/src/Types/BulkCreateCustomersResponse.php @@ -59,6 +59,7 @@ public function getResponses(): ?array public function setResponses(?array $value = null): self { $this->responses = $value; + $this->_setField('responses'); return $this; } @@ -76,6 +77,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/BulkDeleteBookingCustomAttributesResponse.php b/src/Types/BulkDeleteBookingCustomAttributesResponse.php index a11645de..4296292e 100644 --- a/src/Types/BulkDeleteBookingCustomAttributesResponse.php +++ b/src/Types/BulkDeleteBookingCustomAttributesResponse.php @@ -54,6 +54,7 @@ public function getValues(): ?array public function setValues(?array $value = null): self { $this->values = $value; + $this->_setField('values'); return $this; } @@ -71,6 +72,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/BulkDeleteCustomersResponse.php b/src/Types/BulkDeleteCustomersResponse.php index 492ddfc5..ee621143 100644 --- a/src/Types/BulkDeleteCustomersResponse.php +++ b/src/Types/BulkDeleteCustomersResponse.php @@ -59,6 +59,7 @@ public function getResponses(): ?array public function setResponses(?array $value = null): self { $this->responses = $value; + $this->_setField('responses'); return $this; } @@ -76,6 +77,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest.php b/src/Types/BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest.php index caae0ce6..300eb504 100644 --- a/src/Types/BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest.php +++ b/src/Types/BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest.php @@ -46,6 +46,7 @@ public function getKey(): ?string public function setKey(?string $value = null): self { $this->key = $value; + $this->_setField('key'); return $this; } diff --git a/src/Types/BulkDeleteLocationCustomAttributesResponse.php b/src/Types/BulkDeleteLocationCustomAttributesResponse.php index 075e9e50..fae49a18 100644 --- a/src/Types/BulkDeleteLocationCustomAttributesResponse.php +++ b/src/Types/BulkDeleteLocationCustomAttributesResponse.php @@ -54,6 +54,7 @@ public function getValues(): array public function setValues(array $value): self { $this->values = $value; + $this->_setField('values'); return $this; } @@ -71,6 +72,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse.php b/src/Types/BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse.php index e9eabe56..da31878c 100644 --- a/src/Types/BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse.php +++ b/src/Types/BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse.php @@ -51,6 +51,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -68,6 +69,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest.php b/src/Types/BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest.php index 295b9afc..ad0f855c 100644 --- a/src/Types/BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest.php +++ b/src/Types/BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest.php @@ -46,6 +46,7 @@ public function getKey(): ?string public function setKey(?string $value = null): self { $this->key = $value; + $this->_setField('key'); return $this; } diff --git a/src/Types/BulkDeleteMerchantCustomAttributesResponse.php b/src/Types/BulkDeleteMerchantCustomAttributesResponse.php index b54d2fe6..360db11e 100644 --- a/src/Types/BulkDeleteMerchantCustomAttributesResponse.php +++ b/src/Types/BulkDeleteMerchantCustomAttributesResponse.php @@ -54,6 +54,7 @@ public function getValues(): array public function setValues(array $value): self { $this->values = $value; + $this->_setField('values'); return $this; } @@ -71,6 +72,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse.php b/src/Types/BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse.php index 260f35f5..bd3ebb28 100644 --- a/src/Types/BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse.php +++ b/src/Types/BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse.php @@ -43,6 +43,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute.php b/src/Types/BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute.php index 39b01bf5..9045272d 100644 --- a/src/Types/BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute.php +++ b/src/Types/BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute.php @@ -52,6 +52,7 @@ public function getKey(): ?string public function setKey(?string $value = null): self { $this->key = $value; + $this->_setField('key'); return $this; } @@ -69,6 +70,7 @@ public function getOrderId(): string public function setOrderId(string $value): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } diff --git a/src/Types/BulkDeleteOrderCustomAttributesResponse.php b/src/Types/BulkDeleteOrderCustomAttributesResponse.php index 15b4473b..97e8f134 100644 --- a/src/Types/BulkDeleteOrderCustomAttributesResponse.php +++ b/src/Types/BulkDeleteOrderCustomAttributesResponse.php @@ -53,6 +53,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -70,6 +71,7 @@ public function getValues(): array public function setValues(array $value): self { $this->values = $value; + $this->_setField('values'); return $this; } diff --git a/src/Types/BulkPublishScheduledShiftsData.php b/src/Types/BulkPublishScheduledShiftsData.php index 13fadd82..58e8e8be 100644 --- a/src/Types/BulkPublishScheduledShiftsData.php +++ b/src/Types/BulkPublishScheduledShiftsData.php @@ -47,6 +47,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } diff --git a/src/Types/BulkPublishScheduledShiftsResponse.php b/src/Types/BulkPublishScheduledShiftsResponse.php index ba6b45f1..3d852b3b 100644 --- a/src/Types/BulkPublishScheduledShiftsResponse.php +++ b/src/Types/BulkPublishScheduledShiftsResponse.php @@ -59,6 +59,7 @@ public function getResponses(): ?array public function setResponses(?array $value = null): self { $this->responses = $value; + $this->_setField('responses'); return $this; } @@ -76,6 +77,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/BulkRetrieveBookingsResponse.php b/src/Types/BulkRetrieveBookingsResponse.php index 7bc997fa..d1df8878 100644 --- a/src/Types/BulkRetrieveBookingsResponse.php +++ b/src/Types/BulkRetrieveBookingsResponse.php @@ -50,6 +50,7 @@ public function getBookings(): ?array public function setBookings(?array $value = null): self { $this->bookings = $value; + $this->_setField('bookings'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/BulkRetrieveChannelsResponse.php b/src/Types/BulkRetrieveChannelsResponse.php index 056c3e56..5d945135 100644 --- a/src/Types/BulkRetrieveChannelsResponse.php +++ b/src/Types/BulkRetrieveChannelsResponse.php @@ -56,6 +56,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -73,6 +74,7 @@ public function getResponses(): ?array public function setResponses(?array $value = null): self { $this->responses = $value; + $this->_setField('responses'); return $this; } diff --git a/src/Types/BulkRetrieveCustomersResponse.php b/src/Types/BulkRetrieveCustomersResponse.php index b316b33c..c850c5eb 100644 --- a/src/Types/BulkRetrieveCustomersResponse.php +++ b/src/Types/BulkRetrieveCustomersResponse.php @@ -59,6 +59,7 @@ public function getResponses(): ?array public function setResponses(?array $value = null): self { $this->responses = $value; + $this->_setField('responses'); return $this; } @@ -76,6 +77,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/BulkRetrieveTeamMemberBookingProfilesResponse.php b/src/Types/BulkRetrieveTeamMemberBookingProfilesResponse.php index cb6bb67e..8a90925e 100644 --- a/src/Types/BulkRetrieveTeamMemberBookingProfilesResponse.php +++ b/src/Types/BulkRetrieveTeamMemberBookingProfilesResponse.php @@ -50,6 +50,7 @@ public function getTeamMemberBookingProfiles(): ?array public function setTeamMemberBookingProfiles(?array $value = null): self { $this->teamMemberBookingProfiles = $value; + $this->_setField('teamMemberBookingProfiles'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/BulkSwapPlanResponse.php b/src/Types/BulkSwapPlanResponse.php index 9b37c17b..5d8e967c 100644 --- a/src/Types/BulkSwapPlanResponse.php +++ b/src/Types/BulkSwapPlanResponse.php @@ -51,6 +51,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -68,6 +69,7 @@ public function getAffectedSubscriptions(): ?int public function setAffectedSubscriptions(?int $value = null): self { $this->affectedSubscriptions = $value; + $this->_setField('affectedSubscriptions'); return $this; } diff --git a/src/Types/BulkUpdateCustomerData.php b/src/Types/BulkUpdateCustomerData.php index 365a916f..cd7615b0 100644 --- a/src/Types/BulkUpdateCustomerData.php +++ b/src/Types/BulkUpdateCustomerData.php @@ -156,6 +156,7 @@ public function getGivenName(): ?string public function setGivenName(?string $value = null): self { $this->givenName = $value; + $this->_setField('givenName'); return $this; } @@ -173,6 +174,7 @@ public function getFamilyName(): ?string public function setFamilyName(?string $value = null): self { $this->familyName = $value; + $this->_setField('familyName'); return $this; } @@ -190,6 +192,7 @@ public function getCompanyName(): ?string public function setCompanyName(?string $value = null): self { $this->companyName = $value; + $this->_setField('companyName'); return $this; } @@ -207,6 +210,7 @@ public function getNickname(): ?string public function setNickname(?string $value = null): self { $this->nickname = $value; + $this->_setField('nickname'); return $this; } @@ -224,6 +228,7 @@ public function getEmailAddress(): ?string public function setEmailAddress(?string $value = null): self { $this->emailAddress = $value; + $this->_setField('emailAddress'); return $this; } @@ -241,6 +246,7 @@ public function getAddress(): ?Address public function setAddress(?Address $value = null): self { $this->address = $value; + $this->_setField('address'); return $this; } @@ -258,6 +264,7 @@ public function getPhoneNumber(): ?string public function setPhoneNumber(?string $value = null): self { $this->phoneNumber = $value; + $this->_setField('phoneNumber'); return $this; } @@ -275,6 +282,7 @@ public function getReferenceId(): ?string public function setReferenceId(?string $value = null): self { $this->referenceId = $value; + $this->_setField('referenceId'); return $this; } @@ -292,6 +300,7 @@ public function getNote(): ?string public function setNote(?string $value = null): self { $this->note = $value; + $this->_setField('note'); return $this; } @@ -309,6 +318,7 @@ public function getBirthday(): ?string public function setBirthday(?string $value = null): self { $this->birthday = $value; + $this->_setField('birthday'); return $this; } @@ -326,6 +336,7 @@ public function getTaxIds(): ?CustomerTaxIds public function setTaxIds(?CustomerTaxIds $value = null): self { $this->taxIds = $value; + $this->_setField('taxIds'); return $this; } @@ -343,6 +354,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } diff --git a/src/Types/BulkUpdateCustomersResponse.php b/src/Types/BulkUpdateCustomersResponse.php index 7b65cde3..e295aa38 100644 --- a/src/Types/BulkUpdateCustomersResponse.php +++ b/src/Types/BulkUpdateCustomersResponse.php @@ -59,6 +59,7 @@ public function getResponses(): ?array public function setResponses(?array $value = null): self { $this->responses = $value; + $this->_setField('responses'); return $this; } @@ -76,6 +77,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/BulkUpsertBookingCustomAttributesResponse.php b/src/Types/BulkUpsertBookingCustomAttributesResponse.php index c160031c..c7f51db2 100644 --- a/src/Types/BulkUpsertBookingCustomAttributesResponse.php +++ b/src/Types/BulkUpsertBookingCustomAttributesResponse.php @@ -54,6 +54,7 @@ public function getValues(): ?array public function setValues(?array $value = null): self { $this->values = $value; + $this->_setField('values'); return $this; } @@ -71,6 +72,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest.php b/src/Types/BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest.php index f5a18370..f68bc3b9 100644 --- a/src/Types/BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest.php +++ b/src/Types/BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest.php @@ -71,6 +71,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -88,6 +89,7 @@ public function getCustomAttribute(): CustomAttribute public function setCustomAttribute(CustomAttribute $value): self { $this->customAttribute = $value; + $this->_setField('customAttribute'); return $this; } @@ -105,6 +107,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } diff --git a/src/Types/BulkUpsertLocationCustomAttributesResponse.php b/src/Types/BulkUpsertLocationCustomAttributesResponse.php index 0111fbca..1faae912 100644 --- a/src/Types/BulkUpsertLocationCustomAttributesResponse.php +++ b/src/Types/BulkUpsertLocationCustomAttributesResponse.php @@ -54,6 +54,7 @@ public function getValues(): ?array public function setValues(?array $value = null): self { $this->values = $value; + $this->_setField('values'); return $this; } @@ -71,6 +72,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse.php b/src/Types/BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse.php index a1512a76..b8268135 100644 --- a/src/Types/BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse.php +++ b/src/Types/BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse.php @@ -58,6 +58,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -75,6 +76,7 @@ public function getCustomAttribute(): ?CustomAttribute public function setCustomAttribute(?CustomAttribute $value = null): self { $this->customAttribute = $value; + $this->_setField('customAttribute'); return $this; } @@ -92,6 +94,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest.php b/src/Types/BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest.php index 0d951d9d..1cdbab42 100644 --- a/src/Types/BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest.php +++ b/src/Types/BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest.php @@ -71,6 +71,7 @@ public function getMerchantId(): string public function setMerchantId(string $value): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -88,6 +89,7 @@ public function getCustomAttribute(): CustomAttribute public function setCustomAttribute(CustomAttribute $value): self { $this->customAttribute = $value; + $this->_setField('customAttribute'); return $this; } @@ -105,6 +107,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } diff --git a/src/Types/BulkUpsertMerchantCustomAttributesResponse.php b/src/Types/BulkUpsertMerchantCustomAttributesResponse.php index 3923515a..11acdac8 100644 --- a/src/Types/BulkUpsertMerchantCustomAttributesResponse.php +++ b/src/Types/BulkUpsertMerchantCustomAttributesResponse.php @@ -54,6 +54,7 @@ public function getValues(): ?array public function setValues(?array $value = null): self { $this->values = $value; + $this->_setField('values'); return $this; } @@ -71,6 +72,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse.php b/src/Types/BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse.php index 84d65023..2ee25b2b 100644 --- a/src/Types/BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse.php +++ b/src/Types/BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse.php @@ -58,6 +58,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -75,6 +76,7 @@ public function getCustomAttribute(): ?CustomAttribute public function setCustomAttribute(?CustomAttribute $value = null): self { $this->customAttribute = $value; + $this->_setField('customAttribute'); return $this; } @@ -92,6 +94,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute.php b/src/Types/BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute.php index bbe715e0..bb5127b5 100644 --- a/src/Types/BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute.php +++ b/src/Types/BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute.php @@ -68,6 +68,7 @@ public function getCustomAttribute(): CustomAttribute public function setCustomAttribute(CustomAttribute $value): self { $this->customAttribute = $value; + $this->_setField('customAttribute'); return $this; } @@ -85,6 +86,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -102,6 +104,7 @@ public function getOrderId(): string public function setOrderId(string $value): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } diff --git a/src/Types/BulkUpsertOrderCustomAttributesResponse.php b/src/Types/BulkUpsertOrderCustomAttributesResponse.php index 6dd89f80..adb3ae26 100644 --- a/src/Types/BulkUpsertOrderCustomAttributesResponse.php +++ b/src/Types/BulkUpsertOrderCustomAttributesResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getValues(): array public function setValues(array $value): self { $this->values = $value; + $this->_setField('values'); return $this; } diff --git a/src/Types/BusinessAppointmentSettings.php b/src/Types/BusinessAppointmentSettings.php index 9fb7bfda..b06ce8d8 100644 --- a/src/Types/BusinessAppointmentSettings.php +++ b/src/Types/BusinessAppointmentSettings.php @@ -154,6 +154,7 @@ public function getLocationTypes(): ?array public function setLocationTypes(?array $value = null): self { $this->locationTypes = $value; + $this->_setField('locationTypes'); return $this; } @@ -171,6 +172,7 @@ public function getAlignmentTime(): ?string public function setAlignmentTime(?string $value = null): self { $this->alignmentTime = $value; + $this->_setField('alignmentTime'); return $this; } @@ -188,6 +190,7 @@ public function getMinBookingLeadTimeSeconds(): ?int public function setMinBookingLeadTimeSeconds(?int $value = null): self { $this->minBookingLeadTimeSeconds = $value; + $this->_setField('minBookingLeadTimeSeconds'); return $this; } @@ -205,6 +208,7 @@ public function getMaxBookingLeadTimeSeconds(): ?int public function setMaxBookingLeadTimeSeconds(?int $value = null): self { $this->maxBookingLeadTimeSeconds = $value; + $this->_setField('maxBookingLeadTimeSeconds'); return $this; } @@ -222,6 +226,7 @@ public function getAnyTeamMemberBookingEnabled(): ?bool public function setAnyTeamMemberBookingEnabled(?bool $value = null): self { $this->anyTeamMemberBookingEnabled = $value; + $this->_setField('anyTeamMemberBookingEnabled'); return $this; } @@ -239,6 +244,7 @@ public function getMultipleServiceBookingEnabled(): ?bool public function setMultipleServiceBookingEnabled(?bool $value = null): self { $this->multipleServiceBookingEnabled = $value; + $this->_setField('multipleServiceBookingEnabled'); return $this; } @@ -256,6 +262,7 @@ public function getMaxAppointmentsPerDayLimitType(): ?string public function setMaxAppointmentsPerDayLimitType(?string $value = null): self { $this->maxAppointmentsPerDayLimitType = $value; + $this->_setField('maxAppointmentsPerDayLimitType'); return $this; } @@ -273,6 +280,7 @@ public function getMaxAppointmentsPerDayLimit(): ?int public function setMaxAppointmentsPerDayLimit(?int $value = null): self { $this->maxAppointmentsPerDayLimit = $value; + $this->_setField('maxAppointmentsPerDayLimit'); return $this; } @@ -290,6 +298,7 @@ public function getCancellationWindowSeconds(): ?int public function setCancellationWindowSeconds(?int $value = null): self { $this->cancellationWindowSeconds = $value; + $this->_setField('cancellationWindowSeconds'); return $this; } @@ -307,6 +316,7 @@ public function getCancellationFeeMoney(): ?Money public function setCancellationFeeMoney(?Money $value = null): self { $this->cancellationFeeMoney = $value; + $this->_setField('cancellationFeeMoney'); return $this; } @@ -324,6 +334,7 @@ public function getCancellationPolicy(): ?string public function setCancellationPolicy(?string $value = null): self { $this->cancellationPolicy = $value; + $this->_setField('cancellationPolicy'); return $this; } @@ -341,6 +352,7 @@ public function getCancellationPolicyText(): ?string public function setCancellationPolicyText(?string $value = null): self { $this->cancellationPolicyText = $value; + $this->_setField('cancellationPolicyText'); return $this; } @@ -358,6 +370,7 @@ public function getSkipBookingFlowStaffSelection(): ?bool public function setSkipBookingFlowStaffSelection(?bool $value = null): self { $this->skipBookingFlowStaffSelection = $value; + $this->_setField('skipBookingFlowStaffSelection'); return $this; } diff --git a/src/Types/BusinessBookingProfile.php b/src/Types/BusinessBookingProfile.php index 7ce3dabe..2da851fb 100644 --- a/src/Types/BusinessBookingProfile.php +++ b/src/Types/BusinessBookingProfile.php @@ -105,6 +105,7 @@ public function getSellerId(): ?string public function setSellerId(?string $value = null): self { $this->sellerId = $value; + $this->_setField('sellerId'); return $this; } @@ -122,6 +123,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -139,6 +141,7 @@ public function getBookingEnabled(): ?bool public function setBookingEnabled(?bool $value = null): self { $this->bookingEnabled = $value; + $this->_setField('bookingEnabled'); return $this; } @@ -156,6 +159,7 @@ public function getCustomerTimezoneChoice(): ?string public function setCustomerTimezoneChoice(?string $value = null): self { $this->customerTimezoneChoice = $value; + $this->_setField('customerTimezoneChoice'); return $this; } @@ -173,6 +177,7 @@ public function getBookingPolicy(): ?string public function setBookingPolicy(?string $value = null): self { $this->bookingPolicy = $value; + $this->_setField('bookingPolicy'); return $this; } @@ -190,6 +195,7 @@ public function getAllowUserCancel(): ?bool public function setAllowUserCancel(?bool $value = null): self { $this->allowUserCancel = $value; + $this->_setField('allowUserCancel'); return $this; } @@ -207,6 +213,7 @@ public function getBusinessAppointmentSettings(): ?BusinessAppointmentSettings public function setBusinessAppointmentSettings(?BusinessAppointmentSettings $value = null): self { $this->businessAppointmentSettings = $value; + $this->_setField('businessAppointmentSettings'); return $this; } @@ -224,6 +231,7 @@ public function getSupportSellerLevelWrites(): ?bool public function setSupportSellerLevelWrites(?bool $value = null): self { $this->supportSellerLevelWrites = $value; + $this->_setField('supportSellerLevelWrites'); return $this; } diff --git a/src/Types/BusinessHours.php b/src/Types/BusinessHours.php index b35b9893..08515a1e 100644 --- a/src/Types/BusinessHours.php +++ b/src/Types/BusinessHours.php @@ -42,6 +42,7 @@ public function getPeriods(): ?array public function setPeriods(?array $value = null): self { $this->periods = $value; + $this->_setField('periods'); return $this; } diff --git a/src/Types/BusinessHoursPeriod.php b/src/Types/BusinessHoursPeriod.php index 131913ac..82fe576d 100644 --- a/src/Types/BusinessHoursPeriod.php +++ b/src/Types/BusinessHoursPeriod.php @@ -68,6 +68,7 @@ public function getDayOfWeek(): ?string public function setDayOfWeek(?string $value = null): self { $this->dayOfWeek = $value; + $this->_setField('dayOfWeek'); return $this; } @@ -85,6 +86,7 @@ public function getStartLocalTime(): ?string public function setStartLocalTime(?string $value = null): self { $this->startLocalTime = $value; + $this->_setField('startLocalTime'); return $this; } @@ -102,6 +104,7 @@ public function getEndLocalTime(): ?string public function setEndLocalTime(?string $value = null): self { $this->endLocalTime = $value; + $this->_setField('endLocalTime'); return $this; } diff --git a/src/Types/BuyNowPayLaterDetails.php b/src/Types/BuyNowPayLaterDetails.php index 7ee6b1bf..1ad1f9cb 100644 --- a/src/Types/BuyNowPayLaterDetails.php +++ b/src/Types/BuyNowPayLaterDetails.php @@ -75,6 +75,7 @@ public function getBrand(): ?string public function setBrand(?string $value = null): self { $this->brand = $value; + $this->_setField('brand'); return $this; } @@ -92,6 +93,7 @@ public function getAfterpayDetails(): ?AfterpayDetails public function setAfterpayDetails(?AfterpayDetails $value = null): self { $this->afterpayDetails = $value; + $this->_setField('afterpayDetails'); return $this; } @@ -109,6 +111,7 @@ public function getClearpayDetails(): ?ClearpayDetails public function setClearpayDetails(?ClearpayDetails $value = null): self { $this->clearpayDetails = $value; + $this->_setField('clearpayDetails'); return $this; } @@ -126,6 +129,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/CalculateLoyaltyPointsResponse.php b/src/Types/CalculateLoyaltyPointsResponse.php index 578bda46..cf3224f6 100644 --- a/src/Types/CalculateLoyaltyPointsResponse.php +++ b/src/Types/CalculateLoyaltyPointsResponse.php @@ -62,6 +62,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -79,6 +80,7 @@ public function getPoints(): ?int public function setPoints(?int $value = null): self { $this->points = $value; + $this->_setField('points'); return $this; } @@ -96,6 +98,7 @@ public function getPromotionPoints(): ?int public function setPromotionPoints(?int $value = null): self { $this->promotionPoints = $value; + $this->_setField('promotionPoints'); return $this; } diff --git a/src/Types/CalculateOrderResponse.php b/src/Types/CalculateOrderResponse.php index ad37ac9d..ff1ebc0c 100644 --- a/src/Types/CalculateOrderResponse.php +++ b/src/Types/CalculateOrderResponse.php @@ -47,6 +47,7 @@ public function getOrder(): ?Order public function setOrder(?Order $value = null): self { $this->order = $value; + $this->_setField('order'); return $this; } @@ -64,6 +65,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/CancelBookingResponse.php b/src/Types/CancelBookingResponse.php index 50d6c63c..37137eda 100644 --- a/src/Types/CancelBookingResponse.php +++ b/src/Types/CancelBookingResponse.php @@ -47,6 +47,7 @@ public function getBooking(): ?Booking public function setBooking(?Booking $value = null): self { $this->booking = $value; + $this->_setField('booking'); return $this; } @@ -64,6 +65,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/CancelInvoiceResponse.php b/src/Types/CancelInvoiceResponse.php index f3201d32..9a2b955d 100644 --- a/src/Types/CancelInvoiceResponse.php +++ b/src/Types/CancelInvoiceResponse.php @@ -50,6 +50,7 @@ public function getInvoice(): ?Invoice public function setInvoice(?Invoice $value = null): self { $this->invoice = $value; + $this->_setField('invoice'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/CancelLoyaltyPromotionResponse.php b/src/Types/CancelLoyaltyPromotionResponse.php index e79ee17d..ebf66f76 100644 --- a/src/Types/CancelLoyaltyPromotionResponse.php +++ b/src/Types/CancelLoyaltyPromotionResponse.php @@ -51,6 +51,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -68,6 +69,7 @@ public function getLoyaltyPromotion(): ?LoyaltyPromotion public function setLoyaltyPromotion(?LoyaltyPromotion $value = null): self { $this->loyaltyPromotion = $value; + $this->_setField('loyaltyPromotion'); return $this; } diff --git a/src/Types/CancelPaymentByIdempotencyKeyResponse.php b/src/Types/CancelPaymentByIdempotencyKeyResponse.php index e72b66fc..cacbad6f 100644 --- a/src/Types/CancelPaymentByIdempotencyKeyResponse.php +++ b/src/Types/CancelPaymentByIdempotencyKeyResponse.php @@ -44,6 +44,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/CancelPaymentResponse.php b/src/Types/CancelPaymentResponse.php index 2e63aa33..0e129f17 100644 --- a/src/Types/CancelPaymentResponse.php +++ b/src/Types/CancelPaymentResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getPayment(): ?Payment public function setPayment(?Payment $value = null): self { $this->payment = $value; + $this->_setField('payment'); return $this; } diff --git a/src/Types/CancelSubscriptionResponse.php b/src/Types/CancelSubscriptionResponse.php index 2d75d832..61a600cd 100644 --- a/src/Types/CancelSubscriptionResponse.php +++ b/src/Types/CancelSubscriptionResponse.php @@ -59,6 +59,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -76,6 +77,7 @@ public function getSubscription(): ?Subscription public function setSubscription(?Subscription $value = null): self { $this->subscription = $value; + $this->_setField('subscription'); return $this; } @@ -93,6 +95,7 @@ public function getActions(): ?array public function setActions(?array $value = null): self { $this->actions = $value; + $this->_setField('actions'); return $this; } diff --git a/src/Types/CancelTerminalActionResponse.php b/src/Types/CancelTerminalActionResponse.php index 335d046a..c58fceed 100644 --- a/src/Types/CancelTerminalActionResponse.php +++ b/src/Types/CancelTerminalActionResponse.php @@ -47,6 +47,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -64,6 +65,7 @@ public function getAction(): ?TerminalAction public function setAction(?TerminalAction $value = null): self { $this->action = $value; + $this->_setField('action'); return $this; } diff --git a/src/Types/CancelTerminalCheckoutResponse.php b/src/Types/CancelTerminalCheckoutResponse.php index 158df64d..a7b07e49 100644 --- a/src/Types/CancelTerminalCheckoutResponse.php +++ b/src/Types/CancelTerminalCheckoutResponse.php @@ -47,6 +47,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -64,6 +65,7 @@ public function getCheckout(): ?TerminalCheckout public function setCheckout(?TerminalCheckout $value = null): self { $this->checkout = $value; + $this->_setField('checkout'); return $this; } diff --git a/src/Types/CancelTerminalRefundResponse.php b/src/Types/CancelTerminalRefundResponse.php index c41ed373..93c744a7 100644 --- a/src/Types/CancelTerminalRefundResponse.php +++ b/src/Types/CancelTerminalRefundResponse.php @@ -47,6 +47,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -64,6 +65,7 @@ public function getRefund(): ?TerminalRefund public function setRefund(?TerminalRefund $value = null): self { $this->refund = $value; + $this->_setField('refund'); return $this; } diff --git a/src/Types/CancelTransferOrderResponse.php b/src/Types/CancelTransferOrderResponse.php index c2cfc77c..2f0f2772 100644 --- a/src/Types/CancelTransferOrderResponse.php +++ b/src/Types/CancelTransferOrderResponse.php @@ -50,6 +50,7 @@ public function getTransferOrder(): ?TransferOrder public function setTransferOrder(?TransferOrder $value = null): self { $this->transferOrder = $value; + $this->_setField('transferOrder'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/CaptureTransactionResponse.php b/src/Types/CaptureTransactionResponse.php index aa6852fc..99ac3d08 100644 --- a/src/Types/CaptureTransactionResponse.php +++ b/src/Types/CaptureTransactionResponse.php @@ -43,6 +43,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/Card.php b/src/Types/Card.php index d66295dd..c67ac235 100644 --- a/src/Types/Card.php +++ b/src/Types/Card.php @@ -258,6 +258,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -275,6 +276,7 @@ public function getCardBrand(): ?string public function setCardBrand(?string $value = null): self { $this->cardBrand = $value; + $this->_setField('cardBrand'); return $this; } @@ -292,6 +294,7 @@ public function getLast4(): ?string public function setLast4(?string $value = null): self { $this->last4 = $value; + $this->_setField('last4'); return $this; } @@ -309,6 +312,7 @@ public function getExpMonth(): ?int public function setExpMonth(?int $value = null): self { $this->expMonth = $value; + $this->_setField('expMonth'); return $this; } @@ -326,6 +330,7 @@ public function getExpYear(): ?int public function setExpYear(?int $value = null): self { $this->expYear = $value; + $this->_setField('expYear'); return $this; } @@ -343,6 +348,7 @@ public function getCardholderName(): ?string public function setCardholderName(?string $value = null): self { $this->cardholderName = $value; + $this->_setField('cardholderName'); return $this; } @@ -360,6 +366,7 @@ public function getBillingAddress(): ?Address public function setBillingAddress(?Address $value = null): self { $this->billingAddress = $value; + $this->_setField('billingAddress'); return $this; } @@ -377,6 +384,7 @@ public function getFingerprint(): ?string public function setFingerprint(?string $value = null): self { $this->fingerprint = $value; + $this->_setField('fingerprint'); return $this; } @@ -394,6 +402,7 @@ public function getCustomerId(): ?string public function setCustomerId(?string $value = null): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -411,6 +420,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -428,6 +438,7 @@ public function getReferenceId(): ?string public function setReferenceId(?string $value = null): self { $this->referenceId = $value; + $this->_setField('referenceId'); return $this; } @@ -445,6 +456,7 @@ public function getEnabled(): ?bool public function setEnabled(?bool $value = null): self { $this->enabled = $value; + $this->_setField('enabled'); return $this; } @@ -462,6 +474,7 @@ public function getCardType(): ?string public function setCardType(?string $value = null): self { $this->cardType = $value; + $this->_setField('cardType'); return $this; } @@ -479,6 +492,7 @@ public function getPrepaidType(): ?string public function setPrepaidType(?string $value = null): self { $this->prepaidType = $value; + $this->_setField('prepaidType'); return $this; } @@ -496,6 +510,7 @@ public function getBin(): ?string public function setBin(?string $value = null): self { $this->bin = $value; + $this->_setField('bin'); return $this; } @@ -513,6 +528,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -530,6 +546,7 @@ public function getDisabledAt(): ?string public function setDisabledAt(?string $value = null): self { $this->disabledAt = $value; + $this->_setField('disabledAt'); return $this; } @@ -547,6 +564,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -564,6 +582,7 @@ public function getCardCoBrand(): ?string public function setCardCoBrand(?string $value = null): self { $this->cardCoBrand = $value; + $this->_setField('cardCoBrand'); return $this; } @@ -581,6 +600,7 @@ public function getIssuerAlert(): ?string public function setIssuerAlert(?string $value = null): self { $this->issuerAlert = $value; + $this->_setField('issuerAlert'); return $this; } @@ -598,6 +618,7 @@ public function getIssuerAlertAt(): ?string public function setIssuerAlertAt(?string $value = null): self { $this->issuerAlertAt = $value; + $this->_setField('issuerAlertAt'); return $this; } @@ -615,6 +636,7 @@ public function getHsaFsa(): ?bool public function setHsaFsa(?bool $value = null): self { $this->hsaFsa = $value; + $this->_setField('hsaFsa'); return $this; } diff --git a/src/Types/CardAutomaticallyUpdatedEvent.php b/src/Types/CardAutomaticallyUpdatedEvent.php index 95d70c88..402d05b3 100644 --- a/src/Types/CardAutomaticallyUpdatedEvent.php +++ b/src/Types/CardAutomaticallyUpdatedEvent.php @@ -74,6 +74,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -91,6 +92,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -108,6 +110,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -125,6 +128,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -142,6 +146,7 @@ public function getData(): ?CardAutomaticallyUpdatedEventData public function setData(?CardAutomaticallyUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CardAutomaticallyUpdatedEventData.php b/src/Types/CardAutomaticallyUpdatedEventData.php index 9bc337cb..7d9be442 100644 --- a/src/Types/CardAutomaticallyUpdatedEventData.php +++ b/src/Types/CardAutomaticallyUpdatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?CardAutomaticallyUpdatedEventObject public function setObject(?CardAutomaticallyUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/CardAutomaticallyUpdatedEventObject.php b/src/Types/CardAutomaticallyUpdatedEventObject.php index eb992dcf..9dcb0477 100644 --- a/src/Types/CardAutomaticallyUpdatedEventObject.php +++ b/src/Types/CardAutomaticallyUpdatedEventObject.php @@ -38,6 +38,7 @@ public function getCard(): ?Card public function setCard(?Card $value = null): self { $this->card = $value; + $this->_setField('card'); return $this; } diff --git a/src/Types/CardCreatedEvent.php b/src/Types/CardCreatedEvent.php index 81de9790..75ad0212 100644 --- a/src/Types/CardCreatedEvent.php +++ b/src/Types/CardCreatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?CardCreatedEventData public function setData(?CardCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CardCreatedEventData.php b/src/Types/CardCreatedEventData.php index 160d8548..3e7d1f52 100644 --- a/src/Types/CardCreatedEventData.php +++ b/src/Types/CardCreatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?CardCreatedEventObject public function setObject(?CardCreatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/CardCreatedEventObject.php b/src/Types/CardCreatedEventObject.php index 9d807df5..e8f6c6cc 100644 --- a/src/Types/CardCreatedEventObject.php +++ b/src/Types/CardCreatedEventObject.php @@ -38,6 +38,7 @@ public function getCard(): ?Card public function setCard(?Card $value = null): self { $this->card = $value; + $this->_setField('card'); return $this; } diff --git a/src/Types/CardDisabledEvent.php b/src/Types/CardDisabledEvent.php index ed7d2304..3cdeec85 100644 --- a/src/Types/CardDisabledEvent.php +++ b/src/Types/CardDisabledEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?CardDisabledEventData public function setData(?CardDisabledEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CardDisabledEventData.php b/src/Types/CardDisabledEventData.php index e822ce7e..3f92036e 100644 --- a/src/Types/CardDisabledEventData.php +++ b/src/Types/CardDisabledEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?CardDisabledEventObject public function setObject(?CardDisabledEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/CardDisabledEventObject.php b/src/Types/CardDisabledEventObject.php index 62c224c3..cfe861e4 100644 --- a/src/Types/CardDisabledEventObject.php +++ b/src/Types/CardDisabledEventObject.php @@ -38,6 +38,7 @@ public function getCard(): ?Card public function setCard(?Card $value = null): self { $this->card = $value; + $this->_setField('card'); return $this; } diff --git a/src/Types/CardForgottenEvent.php b/src/Types/CardForgottenEvent.php index d5206eb1..6d9b4704 100644 --- a/src/Types/CardForgottenEvent.php +++ b/src/Types/CardForgottenEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?CardForgottenEventData public function setData(?CardForgottenEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CardForgottenEventCard.php b/src/Types/CardForgottenEventCard.php index 3b3bfe5f..14038d87 100644 --- a/src/Types/CardForgottenEventCard.php +++ b/src/Types/CardForgottenEventCard.php @@ -86,6 +86,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -103,6 +104,7 @@ public function getCustomerId(): ?string public function setCustomerId(?string $value = null): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -120,6 +122,7 @@ public function getEnabled(): ?bool public function setEnabled(?bool $value = null): self { $this->enabled = $value; + $this->_setField('enabled'); return $this; } @@ -137,6 +140,7 @@ public function getReferenceId(): ?string public function setReferenceId(?string $value = null): self { $this->referenceId = $value; + $this->_setField('referenceId'); return $this; } @@ -154,6 +158,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -171,6 +176,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } diff --git a/src/Types/CardForgottenEventData.php b/src/Types/CardForgottenEventData.php index 45876283..fda0671c 100644 --- a/src/Types/CardForgottenEventData.php +++ b/src/Types/CardForgottenEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?CardForgottenEventObject public function setObject(?CardForgottenEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/CardForgottenEventObject.php b/src/Types/CardForgottenEventObject.php index beb7fa8e..f95d42c6 100644 --- a/src/Types/CardForgottenEventObject.php +++ b/src/Types/CardForgottenEventObject.php @@ -38,6 +38,7 @@ public function getCard(): ?CardForgottenEventCard public function setCard(?CardForgottenEventCard $value = null): self { $this->card = $value; + $this->_setField('card'); return $this; } diff --git a/src/Types/CardPaymentDetails.php b/src/Types/CardPaymentDetails.php index d55f8988..34624c3f 100644 --- a/src/Types/CardPaymentDetails.php +++ b/src/Types/CardPaymentDetails.php @@ -195,6 +195,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -212,6 +213,7 @@ public function getCard(): ?Card public function setCard(?Card $value = null): self { $this->card = $value; + $this->_setField('card'); return $this; } @@ -229,6 +231,7 @@ public function getEntryMethod(): ?string public function setEntryMethod(?string $value = null): self { $this->entryMethod = $value; + $this->_setField('entryMethod'); return $this; } @@ -246,6 +249,7 @@ public function getCvvStatus(): ?string public function setCvvStatus(?string $value = null): self { $this->cvvStatus = $value; + $this->_setField('cvvStatus'); return $this; } @@ -263,6 +267,7 @@ public function getAvsStatus(): ?string public function setAvsStatus(?string $value = null): self { $this->avsStatus = $value; + $this->_setField('avsStatus'); return $this; } @@ -280,6 +285,7 @@ public function getAuthResultCode(): ?string public function setAuthResultCode(?string $value = null): self { $this->authResultCode = $value; + $this->_setField('authResultCode'); return $this; } @@ -297,6 +303,7 @@ public function getApplicationIdentifier(): ?string public function setApplicationIdentifier(?string $value = null): self { $this->applicationIdentifier = $value; + $this->_setField('applicationIdentifier'); return $this; } @@ -314,6 +321,7 @@ public function getApplicationName(): ?string public function setApplicationName(?string $value = null): self { $this->applicationName = $value; + $this->_setField('applicationName'); return $this; } @@ -331,6 +339,7 @@ public function getApplicationCryptogram(): ?string public function setApplicationCryptogram(?string $value = null): self { $this->applicationCryptogram = $value; + $this->_setField('applicationCryptogram'); return $this; } @@ -348,6 +357,7 @@ public function getVerificationMethod(): ?string public function setVerificationMethod(?string $value = null): self { $this->verificationMethod = $value; + $this->_setField('verificationMethod'); return $this; } @@ -365,6 +375,7 @@ public function getVerificationResults(): ?string public function setVerificationResults(?string $value = null): self { $this->verificationResults = $value; + $this->_setField('verificationResults'); return $this; } @@ -382,6 +393,7 @@ public function getStatementDescription(): ?string public function setStatementDescription(?string $value = null): self { $this->statementDescription = $value; + $this->_setField('statementDescription'); return $this; } @@ -399,6 +411,7 @@ public function getDeviceDetails(): ?DeviceDetails public function setDeviceDetails(?DeviceDetails $value = null): self { $this->deviceDetails = $value; + $this->_setField('deviceDetails'); return $this; } @@ -416,6 +429,7 @@ public function getCardPaymentTimeline(): ?CardPaymentTimeline public function setCardPaymentTimeline(?CardPaymentTimeline $value = null): self { $this->cardPaymentTimeline = $value; + $this->_setField('cardPaymentTimeline'); return $this; } @@ -433,6 +447,7 @@ public function getRefundRequiresCardPresence(): ?bool public function setRefundRequiresCardPresence(?bool $value = null): self { $this->refundRequiresCardPresence = $value; + $this->_setField('refundRequiresCardPresence'); return $this; } @@ -450,6 +465,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/CardPaymentTimeline.php b/src/Types/CardPaymentTimeline.php index da42ef7c..670105d0 100644 --- a/src/Types/CardPaymentTimeline.php +++ b/src/Types/CardPaymentTimeline.php @@ -57,6 +57,7 @@ public function getAuthorizedAt(): ?string public function setAuthorizedAt(?string $value = null): self { $this->authorizedAt = $value; + $this->_setField('authorizedAt'); return $this; } @@ -74,6 +75,7 @@ public function getCapturedAt(): ?string public function setCapturedAt(?string $value = null): self { $this->capturedAt = $value; + $this->_setField('capturedAt'); return $this; } @@ -91,6 +93,7 @@ public function getVoidedAt(): ?string public function setVoidedAt(?string $value = null): self { $this->voidedAt = $value; + $this->_setField('voidedAt'); return $this; } diff --git a/src/Types/CardUpdatedEvent.php b/src/Types/CardUpdatedEvent.php index a24a9979..3fbe3487 100644 --- a/src/Types/CardUpdatedEvent.php +++ b/src/Types/CardUpdatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?CardUpdatedEventData public function setData(?CardUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CardUpdatedEventData.php b/src/Types/CardUpdatedEventData.php index 18f3728b..096a0347 100644 --- a/src/Types/CardUpdatedEventData.php +++ b/src/Types/CardUpdatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?CardUpdatedEventObject public function setObject(?CardUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/CardUpdatedEventObject.php b/src/Types/CardUpdatedEventObject.php index 2985cadb..095cd5b6 100644 --- a/src/Types/CardUpdatedEventObject.php +++ b/src/Types/CardUpdatedEventObject.php @@ -38,6 +38,7 @@ public function getCard(): ?Card public function setCard(?Card $value = null): self { $this->card = $value; + $this->_setField('card'); return $this; } diff --git a/src/Types/CashAppDetails.php b/src/Types/CashAppDetails.php index 089ee52e..b8e9e1c2 100644 --- a/src/Types/CashAppDetails.php +++ b/src/Types/CashAppDetails.php @@ -61,6 +61,7 @@ public function getBuyerFullName(): ?string public function setBuyerFullName(?string $value = null): self { $this->buyerFullName = $value; + $this->_setField('buyerFullName'); return $this; } @@ -78,6 +79,7 @@ public function getBuyerCountryCode(): ?string public function setBuyerCountryCode(?string $value = null): self { $this->buyerCountryCode = $value; + $this->_setField('buyerCountryCode'); return $this; } @@ -95,6 +97,7 @@ public function getBuyerCashtag(): ?string public function setBuyerCashtag(?string $value = null): self { $this->buyerCashtag = $value; + $this->_setField('buyerCashtag'); return $this; } diff --git a/src/Types/CashDrawerDevice.php b/src/Types/CashDrawerDevice.php index 68f948cb..c576d4ee 100644 --- a/src/Types/CashDrawerDevice.php +++ b/src/Types/CashDrawerDevice.php @@ -46,6 +46,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -63,6 +64,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } diff --git a/src/Types/CashDrawerShift.php b/src/Types/CashDrawerShift.php index 459757b0..e37d141f 100644 --- a/src/Types/CashDrawerShift.php +++ b/src/Types/CashDrawerShift.php @@ -245,6 +245,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -262,6 +263,7 @@ public function getState(): ?string public function setState(?string $value = null): self { $this->state = $value; + $this->_setField('state'); return $this; } @@ -279,6 +281,7 @@ public function getOpenedAt(): ?string public function setOpenedAt(?string $value = null): self { $this->openedAt = $value; + $this->_setField('openedAt'); return $this; } @@ -296,6 +299,7 @@ public function getEndedAt(): ?string public function setEndedAt(?string $value = null): self { $this->endedAt = $value; + $this->_setField('endedAt'); return $this; } @@ -313,6 +317,7 @@ public function getClosedAt(): ?string public function setClosedAt(?string $value = null): self { $this->closedAt = $value; + $this->_setField('closedAt'); return $this; } @@ -330,6 +335,7 @@ public function getDescription(): ?string public function setDescription(?string $value = null): self { $this->description = $value; + $this->_setField('description'); return $this; } @@ -347,6 +353,7 @@ public function getOpenedCashMoney(): ?Money public function setOpenedCashMoney(?Money $value = null): self { $this->openedCashMoney = $value; + $this->_setField('openedCashMoney'); return $this; } @@ -364,6 +371,7 @@ public function getCashPaymentMoney(): ?Money public function setCashPaymentMoney(?Money $value = null): self { $this->cashPaymentMoney = $value; + $this->_setField('cashPaymentMoney'); return $this; } @@ -381,6 +389,7 @@ public function getCashRefundsMoney(): ?Money public function setCashRefundsMoney(?Money $value = null): self { $this->cashRefundsMoney = $value; + $this->_setField('cashRefundsMoney'); return $this; } @@ -398,6 +407,7 @@ public function getCashPaidInMoney(): ?Money public function setCashPaidInMoney(?Money $value = null): self { $this->cashPaidInMoney = $value; + $this->_setField('cashPaidInMoney'); return $this; } @@ -415,6 +425,7 @@ public function getCashPaidOutMoney(): ?Money public function setCashPaidOutMoney(?Money $value = null): self { $this->cashPaidOutMoney = $value; + $this->_setField('cashPaidOutMoney'); return $this; } @@ -432,6 +443,7 @@ public function getExpectedCashMoney(): ?Money public function setExpectedCashMoney(?Money $value = null): self { $this->expectedCashMoney = $value; + $this->_setField('expectedCashMoney'); return $this; } @@ -449,6 +461,7 @@ public function getClosedCashMoney(): ?Money public function setClosedCashMoney(?Money $value = null): self { $this->closedCashMoney = $value; + $this->_setField('closedCashMoney'); return $this; } @@ -466,6 +479,7 @@ public function getDevice(): ?CashDrawerDevice public function setDevice(?CashDrawerDevice $value = null): self { $this->device = $value; + $this->_setField('device'); return $this; } @@ -483,6 +497,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -500,6 +515,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -517,6 +533,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -534,6 +551,7 @@ public function getTeamMemberIds(): ?array public function setTeamMemberIds(?array $value = null): self { $this->teamMemberIds = $value; + $this->_setField('teamMemberIds'); return $this; } @@ -551,6 +569,7 @@ public function getOpeningTeamMemberId(): ?string public function setOpeningTeamMemberId(?string $value = null): self { $this->openingTeamMemberId = $value; + $this->_setField('openingTeamMemberId'); return $this; } @@ -568,6 +587,7 @@ public function getEndingTeamMemberId(): ?string public function setEndingTeamMemberId(?string $value = null): self { $this->endingTeamMemberId = $value; + $this->_setField('endingTeamMemberId'); return $this; } @@ -585,6 +605,7 @@ public function getClosingTeamMemberId(): ?string public function setClosingTeamMemberId(?string $value = null): self { $this->closingTeamMemberId = $value; + $this->_setField('closingTeamMemberId'); return $this; } diff --git a/src/Types/CashDrawerShiftEvent.php b/src/Types/CashDrawerShiftEvent.php index 9eda55bd..6e11774e 100644 --- a/src/Types/CashDrawerShiftEvent.php +++ b/src/Types/CashDrawerShiftEvent.php @@ -89,6 +89,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -106,6 +107,7 @@ public function getEventType(): ?string public function setEventType(?string $value = null): self { $this->eventType = $value; + $this->_setField('eventType'); return $this; } @@ -123,6 +125,7 @@ public function getEventMoney(): ?Money public function setEventMoney(?Money $value = null): self { $this->eventMoney = $value; + $this->_setField('eventMoney'); return $this; } @@ -140,6 +143,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -157,6 +161,7 @@ public function getDescription(): ?string public function setDescription(?string $value = null): self { $this->description = $value; + $this->_setField('description'); return $this; } @@ -174,6 +179,7 @@ public function getTeamMemberId(): ?string public function setTeamMemberId(?string $value = null): self { $this->teamMemberId = $value; + $this->_setField('teamMemberId'); return $this; } diff --git a/src/Types/CashDrawerShiftSummary.php b/src/Types/CashDrawerShiftSummary.php index 23187d84..68e9a9a1 100644 --- a/src/Types/CashDrawerShiftSummary.php +++ b/src/Types/CashDrawerShiftSummary.php @@ -147,6 +147,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -164,6 +165,7 @@ public function getState(): ?string public function setState(?string $value = null): self { $this->state = $value; + $this->_setField('state'); return $this; } @@ -181,6 +183,7 @@ public function getOpenedAt(): ?string public function setOpenedAt(?string $value = null): self { $this->openedAt = $value; + $this->_setField('openedAt'); return $this; } @@ -198,6 +201,7 @@ public function getEndedAt(): ?string public function setEndedAt(?string $value = null): self { $this->endedAt = $value; + $this->_setField('endedAt'); return $this; } @@ -215,6 +219,7 @@ public function getClosedAt(): ?string public function setClosedAt(?string $value = null): self { $this->closedAt = $value; + $this->_setField('closedAt'); return $this; } @@ -232,6 +237,7 @@ public function getDescription(): ?string public function setDescription(?string $value = null): self { $this->description = $value; + $this->_setField('description'); return $this; } @@ -249,6 +255,7 @@ public function getOpenedCashMoney(): ?Money public function setOpenedCashMoney(?Money $value = null): self { $this->openedCashMoney = $value; + $this->_setField('openedCashMoney'); return $this; } @@ -266,6 +273,7 @@ public function getExpectedCashMoney(): ?Money public function setExpectedCashMoney(?Money $value = null): self { $this->expectedCashMoney = $value; + $this->_setField('expectedCashMoney'); return $this; } @@ -283,6 +291,7 @@ public function getClosedCashMoney(): ?Money public function setClosedCashMoney(?Money $value = null): self { $this->closedCashMoney = $value; + $this->_setField('closedCashMoney'); return $this; } @@ -300,6 +309,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -317,6 +327,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -334,6 +345,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } diff --git a/src/Types/CashPaymentDetails.php b/src/Types/CashPaymentDetails.php index 045c165e..27089ab8 100644 --- a/src/Types/CashPaymentDetails.php +++ b/src/Types/CashPaymentDetails.php @@ -54,6 +54,7 @@ public function getBuyerSuppliedMoney(): Money public function setBuyerSuppliedMoney(Money $value): self { $this->buyerSuppliedMoney = $value; + $this->_setField('buyerSuppliedMoney'); return $this; } @@ -71,6 +72,7 @@ public function getChangeBackMoney(): ?Money public function setChangeBackMoney(?Money $value = null): self { $this->changeBackMoney = $value; + $this->_setField('changeBackMoney'); return $this; } diff --git a/src/Types/CatalogAvailabilityPeriod.php b/src/Types/CatalogAvailabilityPeriod.php index 7cb80ea0..5204ddb8 100644 --- a/src/Types/CatalogAvailabilityPeriod.php +++ b/src/Types/CatalogAvailabilityPeriod.php @@ -68,6 +68,7 @@ public function getStartLocalTime(): ?string public function setStartLocalTime(?string $value = null): self { $this->startLocalTime = $value; + $this->_setField('startLocalTime'); return $this; } @@ -85,6 +86,7 @@ public function getEndLocalTime(): ?string public function setEndLocalTime(?string $value = null): self { $this->endLocalTime = $value; + $this->_setField('endLocalTime'); return $this; } @@ -102,6 +104,7 @@ public function getDayOfWeek(): ?string public function setDayOfWeek(?string $value = null): self { $this->dayOfWeek = $value; + $this->_setField('dayOfWeek'); return $this; } diff --git a/src/Types/CatalogCategory.php b/src/Types/CatalogCategory.php index 2d3134d0..60c5f46d 100644 --- a/src/Types/CatalogCategory.php +++ b/src/Types/CatalogCategory.php @@ -131,6 +131,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -148,6 +149,7 @@ public function getImageIds(): ?array public function setImageIds(?array $value = null): self { $this->imageIds = $value; + $this->_setField('imageIds'); return $this; } @@ -165,6 +167,7 @@ public function getCategoryType(): ?string public function setCategoryType(?string $value = null): self { $this->categoryType = $value; + $this->_setField('categoryType'); return $this; } @@ -182,6 +185,7 @@ public function getParentCategory(): ?CatalogObjectCategory public function setParentCategory(?CatalogObjectCategory $value = null): self { $this->parentCategory = $value; + $this->_setField('parentCategory'); return $this; } @@ -199,6 +203,7 @@ public function getIsTopLevel(): ?bool public function setIsTopLevel(?bool $value = null): self { $this->isTopLevel = $value; + $this->_setField('isTopLevel'); return $this; } @@ -216,6 +221,7 @@ public function getChannels(): ?array public function setChannels(?array $value = null): self { $this->channels = $value; + $this->_setField('channels'); return $this; } @@ -233,6 +239,7 @@ public function getAvailabilityPeriodIds(): ?array public function setAvailabilityPeriodIds(?array $value = null): self { $this->availabilityPeriodIds = $value; + $this->_setField('availabilityPeriodIds'); return $this; } @@ -250,6 +257,7 @@ public function getOnlineVisibility(): ?bool public function setOnlineVisibility(?bool $value = null): self { $this->onlineVisibility = $value; + $this->_setField('onlineVisibility'); return $this; } @@ -267,6 +275,7 @@ public function getRootCategory(): ?string public function setRootCategory(?string $value = null): self { $this->rootCategory = $value; + $this->_setField('rootCategory'); return $this; } @@ -284,6 +293,7 @@ public function getEcomSeoData(): ?CatalogEcomSeoData public function setEcomSeoData(?CatalogEcomSeoData $value = null): self { $this->ecomSeoData = $value; + $this->_setField('ecomSeoData'); return $this; } @@ -301,6 +311,7 @@ public function getPathToRoot(): ?array public function setPathToRoot(?array $value = null): self { $this->pathToRoot = $value; + $this->_setField('pathToRoot'); return $this; } diff --git a/src/Types/CatalogCustomAttributeDefinition.php b/src/Types/CatalogCustomAttributeDefinition.php index 05227273..aae2798c 100644 --- a/src/Types/CatalogCustomAttributeDefinition.php +++ b/src/Types/CatalogCustomAttributeDefinition.php @@ -170,6 +170,7 @@ public function getType(): string public function setType(string $value): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -187,6 +188,7 @@ public function getName(): string public function setName(string $value): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -204,6 +206,7 @@ public function getDescription(): ?string public function setDescription(?string $value = null): self { $this->description = $value; + $this->_setField('description'); return $this; } @@ -221,6 +224,7 @@ public function getSourceApplication(): ?SourceApplication public function setSourceApplication(?SourceApplication $value = null): self { $this->sourceApplication = $value; + $this->_setField('sourceApplication'); return $this; } @@ -238,6 +242,7 @@ public function getAllowedObjectTypes(): array public function setAllowedObjectTypes(array $value): self { $this->allowedObjectTypes = $value; + $this->_setField('allowedObjectTypes'); return $this; } @@ -255,6 +260,7 @@ public function getSellerVisibility(): ?string public function setSellerVisibility(?string $value = null): self { $this->sellerVisibility = $value; + $this->_setField('sellerVisibility'); return $this; } @@ -272,6 +278,7 @@ public function getAppVisibility(): ?string public function setAppVisibility(?string $value = null): self { $this->appVisibility = $value; + $this->_setField('appVisibility'); return $this; } @@ -289,6 +296,7 @@ public function getStringConfig(): ?CatalogCustomAttributeDefinitionStringConfig public function setStringConfig(?CatalogCustomAttributeDefinitionStringConfig $value = null): self { $this->stringConfig = $value; + $this->_setField('stringConfig'); return $this; } @@ -306,6 +314,7 @@ public function getNumberConfig(): ?CatalogCustomAttributeDefinitionNumberConfig public function setNumberConfig(?CatalogCustomAttributeDefinitionNumberConfig $value = null): self { $this->numberConfig = $value; + $this->_setField('numberConfig'); return $this; } @@ -323,6 +332,7 @@ public function getSelectionConfig(): ?CatalogCustomAttributeDefinitionSelection public function setSelectionConfig(?CatalogCustomAttributeDefinitionSelectionConfig $value = null): self { $this->selectionConfig = $value; + $this->_setField('selectionConfig'); return $this; } @@ -340,6 +350,7 @@ public function getCustomAttributeUsageCount(): ?int public function setCustomAttributeUsageCount(?int $value = null): self { $this->customAttributeUsageCount = $value; + $this->_setField('customAttributeUsageCount'); return $this; } @@ -357,6 +368,7 @@ public function getKey(): ?string public function setKey(?string $value = null): self { $this->key = $value; + $this->_setField('key'); return $this; } diff --git a/src/Types/CatalogCustomAttributeDefinitionNumberConfig.php b/src/Types/CatalogCustomAttributeDefinitionNumberConfig.php index 7ad0957a..79f1592c 100644 --- a/src/Types/CatalogCustomAttributeDefinitionNumberConfig.php +++ b/src/Types/CatalogCustomAttributeDefinitionNumberConfig.php @@ -48,6 +48,7 @@ public function getPrecision(): ?int public function setPrecision(?int $value = null): self { $this->precision = $value; + $this->_setField('precision'); return $this; } diff --git a/src/Types/CatalogCustomAttributeDefinitionSelectionConfig.php b/src/Types/CatalogCustomAttributeDefinitionSelectionConfig.php index 983f7ae1..c2f599ef 100644 --- a/src/Types/CatalogCustomAttributeDefinitionSelectionConfig.php +++ b/src/Types/CatalogCustomAttributeDefinitionSelectionConfig.php @@ -58,6 +58,7 @@ public function getMaxAllowedSelections(): ?int public function setMaxAllowedSelections(?int $value = null): self { $this->maxAllowedSelections = $value; + $this->_setField('maxAllowedSelections'); return $this; } @@ -75,6 +76,7 @@ public function getAllowedSelections(): ?array public function setAllowedSelections(?array $value = null): self { $this->allowedSelections = $value; + $this->_setField('allowedSelections'); return $this; } diff --git a/src/Types/CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection.php b/src/Types/CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection.php index 5420e796..a27dd1e8 100644 --- a/src/Types/CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection.php +++ b/src/Types/CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection.php @@ -49,6 +49,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -66,6 +67,7 @@ public function getName(): string public function setName(string $value): self { $this->name = $value; + $this->_setField('name'); return $this; } diff --git a/src/Types/CatalogCustomAttributeDefinitionStringConfig.php b/src/Types/CatalogCustomAttributeDefinitionStringConfig.php index 4888071c..7e5e32ca 100644 --- a/src/Types/CatalogCustomAttributeDefinitionStringConfig.php +++ b/src/Types/CatalogCustomAttributeDefinitionStringConfig.php @@ -47,6 +47,7 @@ public function getEnforceUniqueness(): ?bool public function setEnforceUniqueness(?bool $value = null): self { $this->enforceUniqueness = $value; + $this->_setField('enforceUniqueness'); return $this; } diff --git a/src/Types/CatalogCustomAttributeValue.php b/src/Types/CatalogCustomAttributeValue.php index 4313ecc7..0f5e060b 100644 --- a/src/Types/CatalogCustomAttributeValue.php +++ b/src/Types/CatalogCustomAttributeValue.php @@ -110,6 +110,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -127,6 +128,7 @@ public function getStringValue(): ?string public function setStringValue(?string $value = null): self { $this->stringValue = $value; + $this->_setField('stringValue'); return $this; } @@ -144,6 +146,7 @@ public function getCustomAttributeDefinitionId(): ?string public function setCustomAttributeDefinitionId(?string $value = null): self { $this->customAttributeDefinitionId = $value; + $this->_setField('customAttributeDefinitionId'); return $this; } @@ -161,6 +164,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -178,6 +182,7 @@ public function getNumberValue(): ?string public function setNumberValue(?string $value = null): self { $this->numberValue = $value; + $this->_setField('numberValue'); return $this; } @@ -195,6 +200,7 @@ public function getBooleanValue(): ?bool public function setBooleanValue(?bool $value = null): self { $this->booleanValue = $value; + $this->_setField('booleanValue'); return $this; } @@ -212,6 +218,7 @@ public function getSelectionUidValues(): ?array public function setSelectionUidValues(?array $value = null): self { $this->selectionUidValues = $value; + $this->_setField('selectionUidValues'); return $this; } @@ -229,6 +236,7 @@ public function getKey(): ?string public function setKey(?string $value = null): self { $this->key = $value; + $this->_setField('key'); return $this; } diff --git a/src/Types/CatalogDiscount.php b/src/Types/CatalogDiscount.php index ff40ad7e..25768d58 100644 --- a/src/Types/CatalogDiscount.php +++ b/src/Types/CatalogDiscount.php @@ -129,6 +129,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -146,6 +147,7 @@ public function getDiscountType(): ?string public function setDiscountType(?string $value = null): self { $this->discountType = $value; + $this->_setField('discountType'); return $this; } @@ -163,6 +165,7 @@ public function getPercentage(): ?string public function setPercentage(?string $value = null): self { $this->percentage = $value; + $this->_setField('percentage'); return $this; } @@ -180,6 +183,7 @@ public function getAmountMoney(): ?Money public function setAmountMoney(?Money $value = null): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } @@ -197,6 +201,7 @@ public function getPinRequired(): ?bool public function setPinRequired(?bool $value = null): self { $this->pinRequired = $value; + $this->_setField('pinRequired'); return $this; } @@ -214,6 +219,7 @@ public function getLabelColor(): ?string public function setLabelColor(?string $value = null): self { $this->labelColor = $value; + $this->_setField('labelColor'); return $this; } @@ -231,6 +237,7 @@ public function getModifyTaxBasis(): ?string public function setModifyTaxBasis(?string $value = null): self { $this->modifyTaxBasis = $value; + $this->_setField('modifyTaxBasis'); return $this; } @@ -248,6 +255,7 @@ public function getMaximumAmountMoney(): ?Money public function setMaximumAmountMoney(?Money $value = null): self { $this->maximumAmountMoney = $value; + $this->_setField('maximumAmountMoney'); return $this; } diff --git a/src/Types/CatalogEcomSeoData.php b/src/Types/CatalogEcomSeoData.php index 81790a4b..92c27f36 100644 --- a/src/Types/CatalogEcomSeoData.php +++ b/src/Types/CatalogEcomSeoData.php @@ -57,6 +57,7 @@ public function getPageTitle(): ?string public function setPageTitle(?string $value = null): self { $this->pageTitle = $value; + $this->_setField('pageTitle'); return $this; } @@ -74,6 +75,7 @@ public function getPageDescription(): ?string public function setPageDescription(?string $value = null): self { $this->pageDescription = $value; + $this->_setField('pageDescription'); return $this; } @@ -91,6 +93,7 @@ public function getPermalink(): ?string public function setPermalink(?string $value = null): self { $this->permalink = $value; + $this->_setField('permalink'); return $this; } diff --git a/src/Types/CatalogIdMapping.php b/src/Types/CatalogIdMapping.php index fd11540e..6dc197a4 100644 --- a/src/Types/CatalogIdMapping.php +++ b/src/Types/CatalogIdMapping.php @@ -59,6 +59,7 @@ public function getClientObjectId(): ?string public function setClientObjectId(?string $value = null): self { $this->clientObjectId = $value; + $this->_setField('clientObjectId'); return $this; } @@ -76,6 +77,7 @@ public function getObjectId(): ?string public function setObjectId(?string $value = null): self { $this->objectId = $value; + $this->_setField('objectId'); return $this; } diff --git a/src/Types/CatalogImage.php b/src/Types/CatalogImage.php index bcde44ee..5347b953 100644 --- a/src/Types/CatalogImage.php +++ b/src/Types/CatalogImage.php @@ -83,6 +83,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -100,6 +101,7 @@ public function getUrl(): ?string public function setUrl(?string $value = null): self { $this->url = $value; + $this->_setField('url'); return $this; } @@ -117,6 +119,7 @@ public function getCaption(): ?string public function setCaption(?string $value = null): self { $this->caption = $value; + $this->_setField('caption'); return $this; } @@ -134,6 +137,7 @@ public function getPhotoStudioOrderId(): ?string public function setPhotoStudioOrderId(?string $value = null): self { $this->photoStudioOrderId = $value; + $this->_setField('photoStudioOrderId'); return $this; } diff --git a/src/Types/CatalogInfoResponse.php b/src/Types/CatalogInfoResponse.php index 3d7ac874..994b542c 100644 --- a/src/Types/CatalogInfoResponse.php +++ b/src/Types/CatalogInfoResponse.php @@ -55,6 +55,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -72,6 +73,7 @@ public function getLimits(): ?CatalogInfoResponseLimits public function setLimits(?CatalogInfoResponseLimits $value = null): self { $this->limits = $value; + $this->_setField('limits'); return $this; } @@ -89,6 +91,7 @@ public function getStandardUnitDescriptionGroup(): ?StandardUnitDescriptionGroup public function setStandardUnitDescriptionGroup(?StandardUnitDescriptionGroup $value = null): self { $this->standardUnitDescriptionGroup = $value; + $this->_setField('standardUnitDescriptionGroup'); return $this; } diff --git a/src/Types/CatalogInfoResponseLimits.php b/src/Types/CatalogInfoResponseLimits.php index 43ff0759..844a5afa 100644 --- a/src/Types/CatalogInfoResponseLimits.php +++ b/src/Types/CatalogInfoResponseLimits.php @@ -151,6 +151,7 @@ public function getBatchUpsertMaxObjectsPerBatch(): ?int public function setBatchUpsertMaxObjectsPerBatch(?int $value = null): self { $this->batchUpsertMaxObjectsPerBatch = $value; + $this->_setField('batchUpsertMaxObjectsPerBatch'); return $this; } @@ -168,6 +169,7 @@ public function getBatchUpsertMaxTotalObjects(): ?int public function setBatchUpsertMaxTotalObjects(?int $value = null): self { $this->batchUpsertMaxTotalObjects = $value; + $this->_setField('batchUpsertMaxTotalObjects'); return $this; } @@ -185,6 +187,7 @@ public function getBatchRetrieveMaxObjectIds(): ?int public function setBatchRetrieveMaxObjectIds(?int $value = null): self { $this->batchRetrieveMaxObjectIds = $value; + $this->_setField('batchRetrieveMaxObjectIds'); return $this; } @@ -202,6 +205,7 @@ public function getSearchMaxPageLimit(): ?int public function setSearchMaxPageLimit(?int $value = null): self { $this->searchMaxPageLimit = $value; + $this->_setField('searchMaxPageLimit'); return $this; } @@ -219,6 +223,7 @@ public function getBatchDeleteMaxObjectIds(): ?int public function setBatchDeleteMaxObjectIds(?int $value = null): self { $this->batchDeleteMaxObjectIds = $value; + $this->_setField('batchDeleteMaxObjectIds'); return $this; } @@ -236,6 +241,7 @@ public function getUpdateItemTaxesMaxItemIds(): ?int public function setUpdateItemTaxesMaxItemIds(?int $value = null): self { $this->updateItemTaxesMaxItemIds = $value; + $this->_setField('updateItemTaxesMaxItemIds'); return $this; } @@ -253,6 +259,7 @@ public function getUpdateItemTaxesMaxTaxesToEnable(): ?int public function setUpdateItemTaxesMaxTaxesToEnable(?int $value = null): self { $this->updateItemTaxesMaxTaxesToEnable = $value; + $this->_setField('updateItemTaxesMaxTaxesToEnable'); return $this; } @@ -270,6 +277,7 @@ public function getUpdateItemTaxesMaxTaxesToDisable(): ?int public function setUpdateItemTaxesMaxTaxesToDisable(?int $value = null): self { $this->updateItemTaxesMaxTaxesToDisable = $value; + $this->_setField('updateItemTaxesMaxTaxesToDisable'); return $this; } @@ -287,6 +295,7 @@ public function getUpdateItemModifierListsMaxItemIds(): ?int public function setUpdateItemModifierListsMaxItemIds(?int $value = null): self { $this->updateItemModifierListsMaxItemIds = $value; + $this->_setField('updateItemModifierListsMaxItemIds'); return $this; } @@ -304,6 +313,7 @@ public function getUpdateItemModifierListsMaxModifierListsToEnable(): ?int public function setUpdateItemModifierListsMaxModifierListsToEnable(?int $value = null): self { $this->updateItemModifierListsMaxModifierListsToEnable = $value; + $this->_setField('updateItemModifierListsMaxModifierListsToEnable'); return $this; } @@ -321,6 +331,7 @@ public function getUpdateItemModifierListsMaxModifierListsToDisable(): ?int public function setUpdateItemModifierListsMaxModifierListsToDisable(?int $value = null): self { $this->updateItemModifierListsMaxModifierListsToDisable = $value; + $this->_setField('updateItemModifierListsMaxModifierListsToDisable'); return $this; } diff --git a/src/Types/CatalogItem.php b/src/Types/CatalogItem.php index d33854e1..a2d6464e 100644 --- a/src/Types/CatalogItem.php +++ b/src/Types/CatalogItem.php @@ -335,6 +335,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -352,6 +353,7 @@ public function getDescription(): ?string public function setDescription(?string $value = null): self { $this->description = $value; + $this->_setField('description'); return $this; } @@ -369,6 +371,7 @@ public function getAbbreviation(): ?string public function setAbbreviation(?string $value = null): self { $this->abbreviation = $value; + $this->_setField('abbreviation'); return $this; } @@ -386,6 +389,7 @@ public function getLabelColor(): ?string public function setLabelColor(?string $value = null): self { $this->labelColor = $value; + $this->_setField('labelColor'); return $this; } @@ -403,6 +407,7 @@ public function getIsTaxable(): ?bool public function setIsTaxable(?bool $value = null): self { $this->isTaxable = $value; + $this->_setField('isTaxable'); return $this; } @@ -420,6 +425,7 @@ public function getCategoryId(): ?string public function setCategoryId(?string $value = null): self { $this->categoryId = $value; + $this->_setField('categoryId'); return $this; } @@ -437,6 +443,7 @@ public function getBuyerFacingName(): ?string public function setBuyerFacingName(?string $value = null): self { $this->buyerFacingName = $value; + $this->_setField('buyerFacingName'); return $this; } @@ -454,6 +461,7 @@ public function getTaxIds(): ?array public function setTaxIds(?array $value = null): self { $this->taxIds = $value; + $this->_setField('taxIds'); return $this; } @@ -471,6 +479,7 @@ public function getModifierListInfo(): ?array public function setModifierListInfo(?array $value = null): self { $this->modifierListInfo = $value; + $this->_setField('modifierListInfo'); return $this; } @@ -488,6 +497,7 @@ public function getVariations(): ?array public function setVariations(?array $value = null): self { $this->variations = $value; + $this->_setField('variations'); return $this; } @@ -505,6 +515,7 @@ public function getProductType(): ?string public function setProductType(?string $value = null): self { $this->productType = $value; + $this->_setField('productType'); return $this; } @@ -522,6 +533,7 @@ public function getSkipModifierScreen(): ?bool public function setSkipModifierScreen(?bool $value = null): self { $this->skipModifierScreen = $value; + $this->_setField('skipModifierScreen'); return $this; } @@ -539,6 +551,7 @@ public function getItemOptions(): ?array public function setItemOptions(?array $value = null): self { $this->itemOptions = $value; + $this->_setField('itemOptions'); return $this; } @@ -556,6 +569,7 @@ public function getEcomUri(): ?string public function setEcomUri(?string $value = null): self { $this->ecomUri = $value; + $this->_setField('ecomUri'); return $this; } @@ -573,6 +587,7 @@ public function getEcomImageUris(): ?array public function setEcomImageUris(?array $value = null): self { $this->ecomImageUris = $value; + $this->_setField('ecomImageUris'); return $this; } @@ -590,6 +605,7 @@ public function getImageIds(): ?array public function setImageIds(?array $value = null): self { $this->imageIds = $value; + $this->_setField('imageIds'); return $this; } @@ -607,6 +623,7 @@ public function getSortName(): ?string public function setSortName(?string $value = null): self { $this->sortName = $value; + $this->_setField('sortName'); return $this; } @@ -624,6 +641,7 @@ public function getCategories(): ?array public function setCategories(?array $value = null): self { $this->categories = $value; + $this->_setField('categories'); return $this; } @@ -641,6 +659,7 @@ public function getDescriptionHtml(): ?string public function setDescriptionHtml(?string $value = null): self { $this->descriptionHtml = $value; + $this->_setField('descriptionHtml'); return $this; } @@ -658,6 +677,7 @@ public function getDescriptionPlaintext(): ?string public function setDescriptionPlaintext(?string $value = null): self { $this->descriptionPlaintext = $value; + $this->_setField('descriptionPlaintext'); return $this; } @@ -675,6 +695,7 @@ public function getKitchenName(): ?string public function setKitchenName(?string $value = null): self { $this->kitchenName = $value; + $this->_setField('kitchenName'); return $this; } @@ -692,6 +713,7 @@ public function getChannels(): ?array public function setChannels(?array $value = null): self { $this->channels = $value; + $this->_setField('channels'); return $this; } @@ -709,6 +731,7 @@ public function getIsArchived(): ?bool public function setIsArchived(?bool $value = null): self { $this->isArchived = $value; + $this->_setField('isArchived'); return $this; } @@ -726,6 +749,7 @@ public function getEcomSeoData(): ?CatalogEcomSeoData public function setEcomSeoData(?CatalogEcomSeoData $value = null): self { $this->ecomSeoData = $value; + $this->_setField('ecomSeoData'); return $this; } @@ -743,6 +767,7 @@ public function getFoodAndBeverageDetails(): ?CatalogItemFoodAndBeverageDetails public function setFoodAndBeverageDetails(?CatalogItemFoodAndBeverageDetails $value = null): self { $this->foodAndBeverageDetails = $value; + $this->_setField('foodAndBeverageDetails'); return $this; } @@ -760,6 +785,7 @@ public function getReportingCategory(): ?CatalogObjectCategory public function setReportingCategory(?CatalogObjectCategory $value = null): self { $this->reportingCategory = $value; + $this->_setField('reportingCategory'); return $this; } @@ -777,6 +803,7 @@ public function getIsAlcoholic(): ?bool public function setIsAlcoholic(?bool $value = null): self { $this->isAlcoholic = $value; + $this->_setField('isAlcoholic'); return $this; } diff --git a/src/Types/CatalogItemFoodAndBeverageDetails.php b/src/Types/CatalogItemFoodAndBeverageDetails.php index f052ffe3..13e46235 100644 --- a/src/Types/CatalogItemFoodAndBeverageDetails.php +++ b/src/Types/CatalogItemFoodAndBeverageDetails.php @@ -58,6 +58,7 @@ public function getCalorieCount(): ?int public function setCalorieCount(?int $value = null): self { $this->calorieCount = $value; + $this->_setField('calorieCount'); return $this; } @@ -75,6 +76,7 @@ public function getDietaryPreferences(): ?array public function setDietaryPreferences(?array $value = null): self { $this->dietaryPreferences = $value; + $this->_setField('dietaryPreferences'); return $this; } @@ -92,6 +94,7 @@ public function getIngredients(): ?array public function setIngredients(?array $value = null): self { $this->ingredients = $value; + $this->_setField('ingredients'); return $this; } diff --git a/src/Types/CatalogItemFoodAndBeverageDetailsDietaryPreference.php b/src/Types/CatalogItemFoodAndBeverageDetailsDietaryPreference.php index 6479e104..bbec37b0 100644 --- a/src/Types/CatalogItemFoodAndBeverageDetailsDietaryPreference.php +++ b/src/Types/CatalogItemFoodAndBeverageDetailsDietaryPreference.php @@ -63,6 +63,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -80,6 +81,7 @@ public function getStandardName(): ?string public function setStandardName(?string $value = null): self { $this->standardName = $value; + $this->_setField('standardName'); return $this; } @@ -97,6 +99,7 @@ public function getCustomName(): ?string public function setCustomName(?string $value = null): self { $this->customName = $value; + $this->_setField('customName'); return $this; } diff --git a/src/Types/CatalogItemFoodAndBeverageDetailsIngredient.php b/src/Types/CatalogItemFoodAndBeverageDetailsIngredient.php index 2922c5e3..54abbd2f 100644 --- a/src/Types/CatalogItemFoodAndBeverageDetailsIngredient.php +++ b/src/Types/CatalogItemFoodAndBeverageDetailsIngredient.php @@ -63,6 +63,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -80,6 +81,7 @@ public function getStandardName(): ?string public function setStandardName(?string $value = null): self { $this->standardName = $value; + $this->_setField('standardName'); return $this; } @@ -97,6 +99,7 @@ public function getCustomName(): ?string public function setCustomName(?string $value = null): self { $this->customName = $value; + $this->_setField('customName'); return $this; } diff --git a/src/Types/CatalogItemModifierListInfo.php b/src/Types/CatalogItemModifierListInfo.php index f7616f83..56061d1d 100644 --- a/src/Types/CatalogItemModifierListInfo.php +++ b/src/Types/CatalogItemModifierListInfo.php @@ -149,6 +149,7 @@ public function getModifierListId(): string public function setModifierListId(string $value): self { $this->modifierListId = $value; + $this->_setField('modifierListId'); return $this; } @@ -166,6 +167,7 @@ public function getModifierOverrides(): ?array public function setModifierOverrides(?array $value = null): self { $this->modifierOverrides = $value; + $this->_setField('modifierOverrides'); return $this; } @@ -183,6 +185,7 @@ public function getMinSelectedModifiers(): ?int public function setMinSelectedModifiers(?int $value = null): self { $this->minSelectedModifiers = $value; + $this->_setField('minSelectedModifiers'); return $this; } @@ -200,6 +203,7 @@ public function getMaxSelectedModifiers(): ?int public function setMaxSelectedModifiers(?int $value = null): self { $this->maxSelectedModifiers = $value; + $this->_setField('maxSelectedModifiers'); return $this; } @@ -217,6 +221,7 @@ public function getEnabled(): ?bool public function setEnabled(?bool $value = null): self { $this->enabled = $value; + $this->_setField('enabled'); return $this; } @@ -234,6 +239,7 @@ public function getOrdinal(): ?int public function setOrdinal(?int $value = null): self { $this->ordinal = $value; + $this->_setField('ordinal'); return $this; } @@ -251,6 +257,7 @@ public function getAllowQuantities(): ?string public function setAllowQuantities(?string $value = null): self { $this->allowQuantities = $value; + $this->_setField('allowQuantities'); return $this; } @@ -268,6 +275,7 @@ public function getIsConversational(): ?string public function setIsConversational(?string $value = null): self { $this->isConversational = $value; + $this->_setField('isConversational'); return $this; } @@ -285,6 +293,7 @@ public function getHiddenFromCustomerOverride(): ?string public function setHiddenFromCustomerOverride(?string $value = null): self { $this->hiddenFromCustomerOverride = $value; + $this->_setField('hiddenFromCustomerOverride'); return $this; } diff --git a/src/Types/CatalogItemOption.php b/src/Types/CatalogItemOption.php index 20a33b86..68d16f01 100644 --- a/src/Types/CatalogItemOption.php +++ b/src/Types/CatalogItemOption.php @@ -84,6 +84,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -101,6 +102,7 @@ public function getDisplayName(): ?string public function setDisplayName(?string $value = null): self { $this->displayName = $value; + $this->_setField('displayName'); return $this; } @@ -118,6 +120,7 @@ public function getDescription(): ?string public function setDescription(?string $value = null): self { $this->description = $value; + $this->_setField('description'); return $this; } @@ -135,6 +138,7 @@ public function getShowColors(): ?bool public function setShowColors(?bool $value = null): self { $this->showColors = $value; + $this->_setField('showColors'); return $this; } @@ -152,6 +156,7 @@ public function getValues(): ?array public function setValues(?array $value = null): self { $this->values = $value; + $this->_setField('values'); return $this; } diff --git a/src/Types/CatalogItemOptionForItem.php b/src/Types/CatalogItemOptionForItem.php index 8f69d758..f6fc2a27 100644 --- a/src/Types/CatalogItemOptionForItem.php +++ b/src/Types/CatalogItemOptionForItem.php @@ -42,6 +42,7 @@ public function getItemOptionId(): ?string public function setItemOptionId(?string $value = null): self { $this->itemOptionId = $value; + $this->_setField('itemOptionId'); return $this; } diff --git a/src/Types/CatalogItemOptionValue.php b/src/Types/CatalogItemOptionValue.php index d99bb97d..131773a0 100644 --- a/src/Types/CatalogItemOptionValue.php +++ b/src/Types/CatalogItemOptionValue.php @@ -80,6 +80,7 @@ public function getItemOptionId(): ?string public function setItemOptionId(?string $value = null): self { $this->itemOptionId = $value; + $this->_setField('itemOptionId'); return $this; } @@ -97,6 +98,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -114,6 +116,7 @@ public function getDescription(): ?string public function setDescription(?string $value = null): self { $this->description = $value; + $this->_setField('description'); return $this; } @@ -131,6 +134,7 @@ public function getColor(): ?string public function setColor(?string $value = null): self { $this->color = $value; + $this->_setField('color'); return $this; } @@ -148,6 +152,7 @@ public function getOrdinal(): ?int public function setOrdinal(?int $value = null): self { $this->ordinal = $value; + $this->_setField('ordinal'); return $this; } diff --git a/src/Types/CatalogItemOptionValueForItemVariation.php b/src/Types/CatalogItemOptionValueForItemVariation.php index cb4affc9..b9af59f6 100644 --- a/src/Types/CatalogItemOptionValueForItemVariation.php +++ b/src/Types/CatalogItemOptionValueForItemVariation.php @@ -52,6 +52,7 @@ public function getItemOptionId(): ?string public function setItemOptionId(?string $value = null): self { $this->itemOptionId = $value; + $this->_setField('itemOptionId'); return $this; } @@ -69,6 +70,7 @@ public function getItemOptionValueId(): ?string public function setItemOptionValueId(?string $value = null): self { $this->itemOptionValueId = $value; + $this->_setField('itemOptionValueId'); return $this; } diff --git a/src/Types/CatalogItemVariation.php b/src/Types/CatalogItemVariation.php index 4d939719..3b145a72 100644 --- a/src/Types/CatalogItemVariation.php +++ b/src/Types/CatalogItemVariation.php @@ -289,6 +289,7 @@ public function getItemId(): ?string public function setItemId(?string $value = null): self { $this->itemId = $value; + $this->_setField('itemId'); return $this; } @@ -306,6 +307,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -323,6 +325,7 @@ public function getSku(): ?string public function setSku(?string $value = null): self { $this->sku = $value; + $this->_setField('sku'); return $this; } @@ -340,6 +343,7 @@ public function getUpc(): ?string public function setUpc(?string $value = null): self { $this->upc = $value; + $this->_setField('upc'); return $this; } @@ -357,6 +361,7 @@ public function getOrdinal(): ?int public function setOrdinal(?int $value = null): self { $this->ordinal = $value; + $this->_setField('ordinal'); return $this; } @@ -374,6 +379,7 @@ public function getPricingType(): ?string public function setPricingType(?string $value = null): self { $this->pricingType = $value; + $this->_setField('pricingType'); return $this; } @@ -391,6 +397,7 @@ public function getPriceMoney(): ?Money public function setPriceMoney(?Money $value = null): self { $this->priceMoney = $value; + $this->_setField('priceMoney'); return $this; } @@ -408,6 +415,7 @@ public function getLocationOverrides(): ?array public function setLocationOverrides(?array $value = null): self { $this->locationOverrides = $value; + $this->_setField('locationOverrides'); return $this; } @@ -425,6 +433,7 @@ public function getTrackInventory(): ?bool public function setTrackInventory(?bool $value = null): self { $this->trackInventory = $value; + $this->_setField('trackInventory'); return $this; } @@ -442,6 +451,7 @@ public function getInventoryAlertType(): ?string public function setInventoryAlertType(?string $value = null): self { $this->inventoryAlertType = $value; + $this->_setField('inventoryAlertType'); return $this; } @@ -459,6 +469,7 @@ public function getInventoryAlertThreshold(): ?int public function setInventoryAlertThreshold(?int $value = null): self { $this->inventoryAlertThreshold = $value; + $this->_setField('inventoryAlertThreshold'); return $this; } @@ -476,6 +487,7 @@ public function getUserData(): ?string public function setUserData(?string $value = null): self { $this->userData = $value; + $this->_setField('userData'); return $this; } @@ -493,6 +505,7 @@ public function getServiceDuration(): ?int public function setServiceDuration(?int $value = null): self { $this->serviceDuration = $value; + $this->_setField('serviceDuration'); return $this; } @@ -510,6 +523,7 @@ public function getAvailableForBooking(): ?bool public function setAvailableForBooking(?bool $value = null): self { $this->availableForBooking = $value; + $this->_setField('availableForBooking'); return $this; } @@ -527,6 +541,7 @@ public function getItemOptionValues(): ?array public function setItemOptionValues(?array $value = null): self { $this->itemOptionValues = $value; + $this->_setField('itemOptionValues'); return $this; } @@ -544,6 +559,7 @@ public function getMeasurementUnitId(): ?string public function setMeasurementUnitId(?string $value = null): self { $this->measurementUnitId = $value; + $this->_setField('measurementUnitId'); return $this; } @@ -561,6 +577,7 @@ public function getSellable(): ?bool public function setSellable(?bool $value = null): self { $this->sellable = $value; + $this->_setField('sellable'); return $this; } @@ -578,6 +595,7 @@ public function getStockable(): ?bool public function setStockable(?bool $value = null): self { $this->stockable = $value; + $this->_setField('stockable'); return $this; } @@ -595,6 +613,7 @@ public function getImageIds(): ?array public function setImageIds(?array $value = null): self { $this->imageIds = $value; + $this->_setField('imageIds'); return $this; } @@ -612,6 +631,7 @@ public function getTeamMemberIds(): ?array public function setTeamMemberIds(?array $value = null): self { $this->teamMemberIds = $value; + $this->_setField('teamMemberIds'); return $this; } @@ -629,6 +649,7 @@ public function getStockableConversion(): ?CatalogStockConversion public function setStockableConversion(?CatalogStockConversion $value = null): self { $this->stockableConversion = $value; + $this->_setField('stockableConversion'); return $this; } @@ -646,6 +667,7 @@ public function getKitchenName(): ?string public function setKitchenName(?string $value = null): self { $this->kitchenName = $value; + $this->_setField('kitchenName'); return $this; } diff --git a/src/Types/CatalogMeasurementUnit.php b/src/Types/CatalogMeasurementUnit.php index 3e792567..bf4710d6 100644 --- a/src/Types/CatalogMeasurementUnit.php +++ b/src/Types/CatalogMeasurementUnit.php @@ -60,6 +60,7 @@ public function getMeasurementUnit(): ?MeasurementUnit public function setMeasurementUnit(?MeasurementUnit $value = null): self { $this->measurementUnit = $value; + $this->_setField('measurementUnit'); return $this; } @@ -77,6 +78,7 @@ public function getPrecision(): ?int public function setPrecision(?int $value = null): self { $this->precision = $value; + $this->_setField('precision'); return $this; } diff --git a/src/Types/CatalogModifier.php b/src/Types/CatalogModifier.php index c58849ba..067d34ae 100644 --- a/src/Types/CatalogModifier.php +++ b/src/Types/CatalogModifier.php @@ -117,6 +117,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -134,6 +135,7 @@ public function getPriceMoney(): ?Money public function setPriceMoney(?Money $value = null): self { $this->priceMoney = $value; + $this->_setField('priceMoney'); return $this; } @@ -151,6 +153,7 @@ public function getOnByDefault(): ?bool public function setOnByDefault(?bool $value = null): self { $this->onByDefault = $value; + $this->_setField('onByDefault'); return $this; } @@ -168,6 +171,7 @@ public function getOrdinal(): ?int public function setOrdinal(?int $value = null): self { $this->ordinal = $value; + $this->_setField('ordinal'); return $this; } @@ -185,6 +189,7 @@ public function getModifierListId(): ?string public function setModifierListId(?string $value = null): self { $this->modifierListId = $value; + $this->_setField('modifierListId'); return $this; } @@ -202,6 +207,7 @@ public function getLocationOverrides(): ?array public function setLocationOverrides(?array $value = null): self { $this->locationOverrides = $value; + $this->_setField('locationOverrides'); return $this; } @@ -219,6 +225,7 @@ public function getKitchenName(): ?string public function setKitchenName(?string $value = null): self { $this->kitchenName = $value; + $this->_setField('kitchenName'); return $this; } @@ -236,6 +243,7 @@ public function getImageId(): ?string public function setImageId(?string $value = null): self { $this->imageId = $value; + $this->_setField('imageId'); return $this; } @@ -253,6 +261,7 @@ public function getHiddenOnline(): ?bool public function setHiddenOnline(?bool $value = null): self { $this->hiddenOnline = $value; + $this->_setField('hiddenOnline'); return $this; } diff --git a/src/Types/CatalogModifierList.php b/src/Types/CatalogModifierList.php index 876faea5..547c27cf 100644 --- a/src/Types/CatalogModifierList.php +++ b/src/Types/CatalogModifierList.php @@ -213,6 +213,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -230,6 +231,7 @@ public function getOrdinal(): ?int public function setOrdinal(?int $value = null): self { $this->ordinal = $value; + $this->_setField('ordinal'); return $this; } @@ -247,6 +249,7 @@ public function getSelectionType(): ?string public function setSelectionType(?string $value = null): self { $this->selectionType = $value; + $this->_setField('selectionType'); return $this; } @@ -264,6 +267,7 @@ public function getModifiers(): ?array public function setModifiers(?array $value = null): self { $this->modifiers = $value; + $this->_setField('modifiers'); return $this; } @@ -281,6 +285,7 @@ public function getImageIds(): ?array public function setImageIds(?array $value = null): self { $this->imageIds = $value; + $this->_setField('imageIds'); return $this; } @@ -298,6 +303,7 @@ public function getAllowQuantities(): ?bool public function setAllowQuantities(?bool $value = null): self { $this->allowQuantities = $value; + $this->_setField('allowQuantities'); return $this; } @@ -315,6 +321,7 @@ public function getIsConversational(): ?bool public function setIsConversational(?bool $value = null): self { $this->isConversational = $value; + $this->_setField('isConversational'); return $this; } @@ -332,6 +339,7 @@ public function getModifierType(): ?string public function setModifierType(?string $value = null): self { $this->modifierType = $value; + $this->_setField('modifierType'); return $this; } @@ -349,6 +357,7 @@ public function getMaxLength(): ?int public function setMaxLength(?int $value = null): self { $this->maxLength = $value; + $this->_setField('maxLength'); return $this; } @@ -366,6 +375,7 @@ public function getTextRequired(): ?bool public function setTextRequired(?bool $value = null): self { $this->textRequired = $value; + $this->_setField('textRequired'); return $this; } @@ -383,6 +393,7 @@ public function getInternalName(): ?string public function setInternalName(?string $value = null): self { $this->internalName = $value; + $this->_setField('internalName'); return $this; } @@ -400,6 +411,7 @@ public function getMinSelectedModifiers(): ?int public function setMinSelectedModifiers(?int $value = null): self { $this->minSelectedModifiers = $value; + $this->_setField('minSelectedModifiers'); return $this; } @@ -417,6 +429,7 @@ public function getMaxSelectedModifiers(): ?int public function setMaxSelectedModifiers(?int $value = null): self { $this->maxSelectedModifiers = $value; + $this->_setField('maxSelectedModifiers'); return $this; } @@ -434,6 +447,7 @@ public function getHiddenFromCustomer(): ?bool public function setHiddenFromCustomer(?bool $value = null): self { $this->hiddenFromCustomer = $value; + $this->_setField('hiddenFromCustomer'); return $this; } diff --git a/src/Types/CatalogModifierOverride.php b/src/Types/CatalogModifierOverride.php index 1cda2ad3..43dfcb64 100644 --- a/src/Types/CatalogModifierOverride.php +++ b/src/Types/CatalogModifierOverride.php @@ -78,6 +78,7 @@ public function getModifierId(): string public function setModifierId(string $value): self { $this->modifierId = $value; + $this->_setField('modifierId'); return $this; } @@ -95,6 +96,7 @@ public function getOnByDefault(): ?bool public function setOnByDefault(?bool $value = null): self { $this->onByDefault = $value; + $this->_setField('onByDefault'); return $this; } @@ -112,6 +114,7 @@ public function getHiddenOnlineOverride(): ?string public function setHiddenOnlineOverride(?string $value = null): self { $this->hiddenOnlineOverride = $value; + $this->_setField('hiddenOnlineOverride'); return $this; } @@ -129,6 +132,7 @@ public function getOnByDefaultOverride(): ?string public function setOnByDefaultOverride(?string $value = null): self { $this->onByDefaultOverride = $value; + $this->_setField('onByDefaultOverride'); return $this; } diff --git a/src/Types/CatalogObjectAvailabilityPeriod.php b/src/Types/CatalogObjectAvailabilityPeriod.php index 78a558a4..82279eb1 100644 --- a/src/Types/CatalogObjectAvailabilityPeriod.php +++ b/src/Types/CatalogObjectAvailabilityPeriod.php @@ -61,6 +61,7 @@ public function getAvailabilityPeriodData(): ?CatalogAvailabilityPeriod public function setAvailabilityPeriodData(?CatalogAvailabilityPeriod $value = null): self { $this->availabilityPeriodData = $value; + $this->_setField('availabilityPeriodData'); return $this; } diff --git a/src/Types/CatalogObjectBase.php b/src/Types/CatalogObjectBase.php index 66beefa1..6af6c8ca 100644 --- a/src/Types/CatalogObjectBase.php +++ b/src/Types/CatalogObjectBase.php @@ -159,6 +159,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -176,6 +177,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -193,6 +195,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -210,6 +213,7 @@ public function getIsDeleted(): ?bool public function setIsDeleted(?bool $value = null): self { $this->isDeleted = $value; + $this->_setField('isDeleted'); return $this; } @@ -227,6 +231,7 @@ public function getCustomAttributeValues(): ?array public function setCustomAttributeValues(?array $value = null): self { $this->customAttributeValues = $value; + $this->_setField('customAttributeValues'); return $this; } @@ -244,6 +249,7 @@ public function getCatalogV1Ids(): ?array public function setCatalogV1Ids(?array $value = null): self { $this->catalogV1Ids = $value; + $this->_setField('catalogV1Ids'); return $this; } @@ -261,6 +267,7 @@ public function getPresentAtAllLocations(): ?bool public function setPresentAtAllLocations(?bool $value = null): self { $this->presentAtAllLocations = $value; + $this->_setField('presentAtAllLocations'); return $this; } @@ -278,6 +285,7 @@ public function getPresentAtLocationIds(): ?array public function setPresentAtLocationIds(?array $value = null): self { $this->presentAtLocationIds = $value; + $this->_setField('presentAtLocationIds'); return $this; } @@ -295,6 +303,7 @@ public function getAbsentAtLocationIds(): ?array public function setAbsentAtLocationIds(?array $value = null): self { $this->absentAtLocationIds = $value; + $this->_setField('absentAtLocationIds'); return $this; } @@ -312,6 +321,7 @@ public function getImageId(): ?string public function setImageId(?string $value = null): self { $this->imageId = $value; + $this->_setField('imageId'); return $this; } diff --git a/src/Types/CatalogObjectBatch.php b/src/Types/CatalogObjectBatch.php index 32c95149..5b51849d 100644 --- a/src/Types/CatalogObjectBatch.php +++ b/src/Types/CatalogObjectBatch.php @@ -42,6 +42,7 @@ public function getObjects(): array public function setObjects(array $value): self { $this->objects = $value; + $this->_setField('objects'); return $this; } diff --git a/src/Types/CatalogObjectCategory.php b/src/Types/CatalogObjectCategory.php index 491d03df..3587e54c 100644 --- a/src/Types/CatalogObjectCategory.php +++ b/src/Types/CatalogObjectCategory.php @@ -180,6 +180,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -197,6 +198,7 @@ public function getOrdinal(): ?int public function setOrdinal(?int $value = null): self { $this->ordinal = $value; + $this->_setField('ordinal'); return $this; } @@ -214,6 +216,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -231,6 +234,7 @@ public function getCategoryData(): ?CatalogCategory public function setCategoryData(?CatalogCategory $value = null): self { $this->categoryData = $value; + $this->_setField('categoryData'); return $this; } @@ -248,6 +252,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -265,6 +270,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -282,6 +288,7 @@ public function getIsDeleted(): ?bool public function setIsDeleted(?bool $value = null): self { $this->isDeleted = $value; + $this->_setField('isDeleted'); return $this; } @@ -299,6 +306,7 @@ public function getCustomAttributeValues(): ?array public function setCustomAttributeValues(?array $value = null): self { $this->customAttributeValues = $value; + $this->_setField('customAttributeValues'); return $this; } @@ -316,6 +324,7 @@ public function getCatalogV1Ids(): ?array public function setCatalogV1Ids(?array $value = null): self { $this->catalogV1Ids = $value; + $this->_setField('catalogV1Ids'); return $this; } @@ -333,6 +342,7 @@ public function getPresentAtAllLocations(): ?bool public function setPresentAtAllLocations(?bool $value = null): self { $this->presentAtAllLocations = $value; + $this->_setField('presentAtAllLocations'); return $this; } @@ -350,6 +360,7 @@ public function getPresentAtLocationIds(): ?array public function setPresentAtLocationIds(?array $value = null): self { $this->presentAtLocationIds = $value; + $this->_setField('presentAtLocationIds'); return $this; } @@ -367,6 +378,7 @@ public function getAbsentAtLocationIds(): ?array public function setAbsentAtLocationIds(?array $value = null): self { $this->absentAtLocationIds = $value; + $this->_setField('absentAtLocationIds'); return $this; } @@ -384,6 +396,7 @@ public function getImageId(): ?string public function setImageId(?string $value = null): self { $this->imageId = $value; + $this->_setField('imageId'); return $this; } diff --git a/src/Types/CatalogObjectCustomAttributeDefinition.php b/src/Types/CatalogObjectCustomAttributeDefinition.php index b447e480..42f64f32 100644 --- a/src/Types/CatalogObjectCustomAttributeDefinition.php +++ b/src/Types/CatalogObjectCustomAttributeDefinition.php @@ -61,6 +61,7 @@ public function getCustomAttributeDefinitionData(): ?CatalogCustomAttributeDefin public function setCustomAttributeDefinitionData(?CatalogCustomAttributeDefinition $value = null): self { $this->customAttributeDefinitionData = $value; + $this->_setField('customAttributeDefinitionData'); return $this; } diff --git a/src/Types/CatalogObjectDiscount.php b/src/Types/CatalogObjectDiscount.php index 41d9a82f..e1248e38 100644 --- a/src/Types/CatalogObjectDiscount.php +++ b/src/Types/CatalogObjectDiscount.php @@ -61,6 +61,7 @@ public function getDiscountData(): ?CatalogDiscount public function setDiscountData(?CatalogDiscount $value = null): self { $this->discountData = $value; + $this->_setField('discountData'); return $this; } diff --git a/src/Types/CatalogObjectImage.php b/src/Types/CatalogObjectImage.php index 7db30c61..3f1b4779 100644 --- a/src/Types/CatalogObjectImage.php +++ b/src/Types/CatalogObjectImage.php @@ -61,6 +61,7 @@ public function getImageData(): ?CatalogImage public function setImageData(?CatalogImage $value = null): self { $this->imageData = $value; + $this->_setField('imageData'); return $this; } diff --git a/src/Types/CatalogObjectItem.php b/src/Types/CatalogObjectItem.php index d91f17a6..390744ed 100644 --- a/src/Types/CatalogObjectItem.php +++ b/src/Types/CatalogObjectItem.php @@ -61,6 +61,7 @@ public function getItemData(): ?CatalogItem public function setItemData(?CatalogItem $value = null): self { $this->itemData = $value; + $this->_setField('itemData'); return $this; } diff --git a/src/Types/CatalogObjectItemOption.php b/src/Types/CatalogObjectItemOption.php index 4e343e73..105ee97c 100644 --- a/src/Types/CatalogObjectItemOption.php +++ b/src/Types/CatalogObjectItemOption.php @@ -61,6 +61,7 @@ public function getItemOptionData(): ?CatalogItemOption public function setItemOptionData(?CatalogItemOption $value = null): self { $this->itemOptionData = $value; + $this->_setField('itemOptionData'); return $this; } diff --git a/src/Types/CatalogObjectItemOptionValue.php b/src/Types/CatalogObjectItemOptionValue.php index 562b5f15..bf4b5aae 100644 --- a/src/Types/CatalogObjectItemOptionValue.php +++ b/src/Types/CatalogObjectItemOptionValue.php @@ -61,6 +61,7 @@ public function getItemOptionValueData(): ?CatalogItemOptionValue public function setItemOptionValueData(?CatalogItemOptionValue $value = null): self { $this->itemOptionValueData = $value; + $this->_setField('itemOptionValueData'); return $this; } diff --git a/src/Types/CatalogObjectItemVariation.php b/src/Types/CatalogObjectItemVariation.php index 16c52b72..fb973d2b 100644 --- a/src/Types/CatalogObjectItemVariation.php +++ b/src/Types/CatalogObjectItemVariation.php @@ -61,6 +61,7 @@ public function getItemVariationData(): ?CatalogItemVariation public function setItemVariationData(?CatalogItemVariation $value = null): self { $this->itemVariationData = $value; + $this->_setField('itemVariationData'); return $this; } diff --git a/src/Types/CatalogObjectMeasurementUnit.php b/src/Types/CatalogObjectMeasurementUnit.php index 4c0694ae..153b3f36 100644 --- a/src/Types/CatalogObjectMeasurementUnit.php +++ b/src/Types/CatalogObjectMeasurementUnit.php @@ -61,6 +61,7 @@ public function getMeasurementUnitData(): ?CatalogMeasurementUnit public function setMeasurementUnitData(?CatalogMeasurementUnit $value = null): self { $this->measurementUnitData = $value; + $this->_setField('measurementUnitData'); return $this; } diff --git a/src/Types/CatalogObjectModifier.php b/src/Types/CatalogObjectModifier.php index e70f3fbd..527869c0 100644 --- a/src/Types/CatalogObjectModifier.php +++ b/src/Types/CatalogObjectModifier.php @@ -61,6 +61,7 @@ public function getModifierData(): ?CatalogModifier public function setModifierData(?CatalogModifier $value = null): self { $this->modifierData = $value; + $this->_setField('modifierData'); return $this; } diff --git a/src/Types/CatalogObjectModifierList.php b/src/Types/CatalogObjectModifierList.php index de68d62d..1fd1742f 100644 --- a/src/Types/CatalogObjectModifierList.php +++ b/src/Types/CatalogObjectModifierList.php @@ -61,6 +61,7 @@ public function getModifierListData(): ?CatalogModifierList public function setModifierListData(?CatalogModifierList $value = null): self { $this->modifierListData = $value; + $this->_setField('modifierListData'); return $this; } diff --git a/src/Types/CatalogObjectPricingRule.php b/src/Types/CatalogObjectPricingRule.php index aa409b88..8b634757 100644 --- a/src/Types/CatalogObjectPricingRule.php +++ b/src/Types/CatalogObjectPricingRule.php @@ -64,6 +64,7 @@ public function getPricingRuleData(): ?CatalogPricingRule public function setPricingRuleData(?CatalogPricingRule $value = null): self { $this->pricingRuleData = $value; + $this->_setField('pricingRuleData'); return $this; } diff --git a/src/Types/CatalogObjectProductSet.php b/src/Types/CatalogObjectProductSet.php index 7b6acd79..2b6f7b38 100644 --- a/src/Types/CatalogObjectProductSet.php +++ b/src/Types/CatalogObjectProductSet.php @@ -61,6 +61,7 @@ public function getProductSetData(): ?CatalogProductSet public function setProductSetData(?CatalogProductSet $value = null): self { $this->productSetData = $value; + $this->_setField('productSetData'); return $this; } diff --git a/src/Types/CatalogObjectQuickAmountsSettings.php b/src/Types/CatalogObjectQuickAmountsSettings.php index 40ce9f22..e1e1e614 100644 --- a/src/Types/CatalogObjectQuickAmountsSettings.php +++ b/src/Types/CatalogObjectQuickAmountsSettings.php @@ -61,6 +61,7 @@ public function getQuickAmountsSettingsData(): ?CatalogQuickAmountsSettings public function setQuickAmountsSettingsData(?CatalogQuickAmountsSettings $value = null): self { $this->quickAmountsSettingsData = $value; + $this->_setField('quickAmountsSettingsData'); return $this; } diff --git a/src/Types/CatalogObjectReference.php b/src/Types/CatalogObjectReference.php index fbe907a6..10eaf4dd 100644 --- a/src/Types/CatalogObjectReference.php +++ b/src/Types/CatalogObjectReference.php @@ -51,6 +51,7 @@ public function getObjectId(): ?string public function setObjectId(?string $value = null): self { $this->objectId = $value; + $this->_setField('objectId'); return $this; } @@ -68,6 +69,7 @@ public function getCatalogVersion(): ?int public function setCatalogVersion(?int $value = null): self { $this->catalogVersion = $value; + $this->_setField('catalogVersion'); return $this; } diff --git a/src/Types/CatalogObjectSubscriptionPlan.php b/src/Types/CatalogObjectSubscriptionPlan.php index d898a9d5..d0dbf1ae 100644 --- a/src/Types/CatalogObjectSubscriptionPlan.php +++ b/src/Types/CatalogObjectSubscriptionPlan.php @@ -61,6 +61,7 @@ public function getSubscriptionPlanData(): ?CatalogSubscriptionPlan public function setSubscriptionPlanData(?CatalogSubscriptionPlan $value = null): self { $this->subscriptionPlanData = $value; + $this->_setField('subscriptionPlanData'); return $this; } diff --git a/src/Types/CatalogObjectSubscriptionPlanVariation.php b/src/Types/CatalogObjectSubscriptionPlanVariation.php index dd5f27aa..ad2e89a9 100644 --- a/src/Types/CatalogObjectSubscriptionPlanVariation.php +++ b/src/Types/CatalogObjectSubscriptionPlanVariation.php @@ -61,6 +61,7 @@ public function getSubscriptionPlanVariationData(): ?CatalogSubscriptionPlanVari public function setSubscriptionPlanVariationData(?CatalogSubscriptionPlanVariation $value = null): self { $this->subscriptionPlanVariationData = $value; + $this->_setField('subscriptionPlanVariationData'); return $this; } diff --git a/src/Types/CatalogObjectTax.php b/src/Types/CatalogObjectTax.php index 7115105b..a64a2f5e 100644 --- a/src/Types/CatalogObjectTax.php +++ b/src/Types/CatalogObjectTax.php @@ -61,6 +61,7 @@ public function getTaxData(): ?CatalogTax public function setTaxData(?CatalogTax $value = null): self { $this->taxData = $value; + $this->_setField('taxData'); return $this; } diff --git a/src/Types/CatalogObjectTimePeriod.php b/src/Types/CatalogObjectTimePeriod.php index 614cfffa..1f48804b 100644 --- a/src/Types/CatalogObjectTimePeriod.php +++ b/src/Types/CatalogObjectTimePeriod.php @@ -61,6 +61,7 @@ public function getTimePeriodData(): ?CatalogTimePeriod public function setTimePeriodData(?CatalogTimePeriod $value = null): self { $this->timePeriodData = $value; + $this->_setField('timePeriodData'); return $this; } diff --git a/src/Types/CatalogPricingRule.php b/src/Types/CatalogPricingRule.php index 4118f8b1..efbccb0f 100644 --- a/src/Types/CatalogPricingRule.php +++ b/src/Types/CatalogPricingRule.php @@ -189,6 +189,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -206,6 +207,7 @@ public function getTimePeriodIds(): ?array public function setTimePeriodIds(?array $value = null): self { $this->timePeriodIds = $value; + $this->_setField('timePeriodIds'); return $this; } @@ -223,6 +225,7 @@ public function getDiscountId(): ?string public function setDiscountId(?string $value = null): self { $this->discountId = $value; + $this->_setField('discountId'); return $this; } @@ -240,6 +243,7 @@ public function getMatchProductsId(): ?string public function setMatchProductsId(?string $value = null): self { $this->matchProductsId = $value; + $this->_setField('matchProductsId'); return $this; } @@ -257,6 +261,7 @@ public function getApplyProductsId(): ?string public function setApplyProductsId(?string $value = null): self { $this->applyProductsId = $value; + $this->_setField('applyProductsId'); return $this; } @@ -274,6 +279,7 @@ public function getExcludeProductsId(): ?string public function setExcludeProductsId(?string $value = null): self { $this->excludeProductsId = $value; + $this->_setField('excludeProductsId'); return $this; } @@ -291,6 +297,7 @@ public function getValidFromDate(): ?string public function setValidFromDate(?string $value = null): self { $this->validFromDate = $value; + $this->_setField('validFromDate'); return $this; } @@ -308,6 +315,7 @@ public function getValidFromLocalTime(): ?string public function setValidFromLocalTime(?string $value = null): self { $this->validFromLocalTime = $value; + $this->_setField('validFromLocalTime'); return $this; } @@ -325,6 +333,7 @@ public function getValidUntilDate(): ?string public function setValidUntilDate(?string $value = null): self { $this->validUntilDate = $value; + $this->_setField('validUntilDate'); return $this; } @@ -342,6 +351,7 @@ public function getValidUntilLocalTime(): ?string public function setValidUntilLocalTime(?string $value = null): self { $this->validUntilLocalTime = $value; + $this->_setField('validUntilLocalTime'); return $this; } @@ -359,6 +369,7 @@ public function getExcludeStrategy(): ?string public function setExcludeStrategy(?string $value = null): self { $this->excludeStrategy = $value; + $this->_setField('excludeStrategy'); return $this; } @@ -376,6 +387,7 @@ public function getMinimumOrderSubtotalMoney(): ?Money public function setMinimumOrderSubtotalMoney(?Money $value = null): self { $this->minimumOrderSubtotalMoney = $value; + $this->_setField('minimumOrderSubtotalMoney'); return $this; } @@ -393,6 +405,7 @@ public function getCustomerGroupIdsAny(): ?array public function setCustomerGroupIdsAny(?array $value = null): self { $this->customerGroupIdsAny = $value; + $this->_setField('customerGroupIdsAny'); return $this; } diff --git a/src/Types/CatalogProductSet.php b/src/Types/CatalogProductSet.php index 8907434f..28bb1eb2 100644 --- a/src/Types/CatalogProductSet.php +++ b/src/Types/CatalogProductSet.php @@ -130,6 +130,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -147,6 +148,7 @@ public function getProductIdsAny(): ?array public function setProductIdsAny(?array $value = null): self { $this->productIdsAny = $value; + $this->_setField('productIdsAny'); return $this; } @@ -164,6 +166,7 @@ public function getProductIdsAll(): ?array public function setProductIdsAll(?array $value = null): self { $this->productIdsAll = $value; + $this->_setField('productIdsAll'); return $this; } @@ -181,6 +184,7 @@ public function getQuantityExact(): ?int public function setQuantityExact(?int $value = null): self { $this->quantityExact = $value; + $this->_setField('quantityExact'); return $this; } @@ -198,6 +202,7 @@ public function getQuantityMin(): ?int public function setQuantityMin(?int $value = null): self { $this->quantityMin = $value; + $this->_setField('quantityMin'); return $this; } @@ -215,6 +220,7 @@ public function getQuantityMax(): ?int public function setQuantityMax(?int $value = null): self { $this->quantityMax = $value; + $this->_setField('quantityMax'); return $this; } @@ -232,6 +238,7 @@ public function getAllProducts(): ?bool public function setAllProducts(?bool $value = null): self { $this->allProducts = $value; + $this->_setField('allProducts'); return $this; } diff --git a/src/Types/CatalogQuery.php b/src/Types/CatalogQuery.php index 0cb4caa3..cc58f7b4 100644 --- a/src/Types/CatalogQuery.php +++ b/src/Types/CatalogQuery.php @@ -159,6 +159,7 @@ public function getSortedAttributeQuery(): ?CatalogQuerySortedAttribute public function setSortedAttributeQuery(?CatalogQuerySortedAttribute $value = null): self { $this->sortedAttributeQuery = $value; + $this->_setField('sortedAttributeQuery'); return $this; } @@ -176,6 +177,7 @@ public function getExactQuery(): ?CatalogQueryExact public function setExactQuery(?CatalogQueryExact $value = null): self { $this->exactQuery = $value; + $this->_setField('exactQuery'); return $this; } @@ -193,6 +195,7 @@ public function getSetQuery(): ?CatalogQuerySet public function setSetQuery(?CatalogQuerySet $value = null): self { $this->setQuery = $value; + $this->_setField('setQuery'); return $this; } @@ -210,6 +213,7 @@ public function getPrefixQuery(): ?CatalogQueryPrefix public function setPrefixQuery(?CatalogQueryPrefix $value = null): self { $this->prefixQuery = $value; + $this->_setField('prefixQuery'); return $this; } @@ -227,6 +231,7 @@ public function getRangeQuery(): ?CatalogQueryRange public function setRangeQuery(?CatalogQueryRange $value = null): self { $this->rangeQuery = $value; + $this->_setField('rangeQuery'); return $this; } @@ -244,6 +249,7 @@ public function getTextQuery(): ?CatalogQueryText public function setTextQuery(?CatalogQueryText $value = null): self { $this->textQuery = $value; + $this->_setField('textQuery'); return $this; } @@ -261,6 +267,7 @@ public function getItemsForTaxQuery(): ?CatalogQueryItemsForTax public function setItemsForTaxQuery(?CatalogQueryItemsForTax $value = null): self { $this->itemsForTaxQuery = $value; + $this->_setField('itemsForTaxQuery'); return $this; } @@ -278,6 +285,7 @@ public function getItemsForModifierListQuery(): ?CatalogQueryItemsForModifierLis public function setItemsForModifierListQuery(?CatalogQueryItemsForModifierList $value = null): self { $this->itemsForModifierListQuery = $value; + $this->_setField('itemsForModifierListQuery'); return $this; } @@ -295,6 +303,7 @@ public function getItemsForItemOptionsQuery(): ?CatalogQueryItemsForItemOptions public function setItemsForItemOptionsQuery(?CatalogQueryItemsForItemOptions $value = null): self { $this->itemsForItemOptionsQuery = $value; + $this->_setField('itemsForItemOptionsQuery'); return $this; } @@ -312,6 +321,7 @@ public function getItemVariationsForItemOptionValuesQuery(): ?CatalogQueryItemVa public function setItemVariationsForItemOptionValuesQuery(?CatalogQueryItemVariationsForItemOptionValues $value = null): self { $this->itemVariationsForItemOptionValuesQuery = $value; + $this->_setField('itemVariationsForItemOptionValuesQuery'); return $this; } diff --git a/src/Types/CatalogQueryExact.php b/src/Types/CatalogQueryExact.php index a84d64b1..70343707 100644 --- a/src/Types/CatalogQueryExact.php +++ b/src/Types/CatalogQueryExact.php @@ -52,6 +52,7 @@ public function getAttributeName(): string public function setAttributeName(string $value): self { $this->attributeName = $value; + $this->_setField('attributeName'); return $this; } @@ -69,6 +70,7 @@ public function getAttributeValue(): string public function setAttributeValue(string $value): self { $this->attributeValue = $value; + $this->_setField('attributeValue'); return $this; } diff --git a/src/Types/CatalogQueryItemVariationsForItemOptionValues.php b/src/Types/CatalogQueryItemVariationsForItemOptionValues.php index a53b8902..2cb3457e 100644 --- a/src/Types/CatalogQueryItemVariationsForItemOptionValues.php +++ b/src/Types/CatalogQueryItemVariationsForItemOptionValues.php @@ -46,6 +46,7 @@ public function getItemOptionValueIds(): ?array public function setItemOptionValueIds(?array $value = null): self { $this->itemOptionValueIds = $value; + $this->_setField('itemOptionValueIds'); return $this; } diff --git a/src/Types/CatalogQueryItemsForItemOptions.php b/src/Types/CatalogQueryItemsForItemOptions.php index 4bb16726..8f4198a9 100644 --- a/src/Types/CatalogQueryItemsForItemOptions.php +++ b/src/Types/CatalogQueryItemsForItemOptions.php @@ -46,6 +46,7 @@ public function getItemOptionIds(): ?array public function setItemOptionIds(?array $value = null): self { $this->itemOptionIds = $value; + $this->_setField('itemOptionIds'); return $this; } diff --git a/src/Types/CatalogQueryItemsForModifierList.php b/src/Types/CatalogQueryItemsForModifierList.php index 29323f56..f4be81eb 100644 --- a/src/Types/CatalogQueryItemsForModifierList.php +++ b/src/Types/CatalogQueryItemsForModifierList.php @@ -42,6 +42,7 @@ public function getModifierListIds(): array public function setModifierListIds(array $value): self { $this->modifierListIds = $value; + $this->_setField('modifierListIds'); return $this; } diff --git a/src/Types/CatalogQueryItemsForTax.php b/src/Types/CatalogQueryItemsForTax.php index eacef6cc..9c6af1f9 100644 --- a/src/Types/CatalogQueryItemsForTax.php +++ b/src/Types/CatalogQueryItemsForTax.php @@ -42,6 +42,7 @@ public function getTaxIds(): array public function setTaxIds(array $value): self { $this->taxIds = $value; + $this->_setField('taxIds'); return $this; } diff --git a/src/Types/CatalogQueryPrefix.php b/src/Types/CatalogQueryPrefix.php index a7d36361..385b7665 100644 --- a/src/Types/CatalogQueryPrefix.php +++ b/src/Types/CatalogQueryPrefix.php @@ -49,6 +49,7 @@ public function getAttributeName(): string public function setAttributeName(string $value): self { $this->attributeName = $value; + $this->_setField('attributeName'); return $this; } @@ -66,6 +67,7 @@ public function getAttributePrefix(): string public function setAttributePrefix(string $value): self { $this->attributePrefix = $value; + $this->_setField('attributePrefix'); return $this; } diff --git a/src/Types/CatalogQueryRange.php b/src/Types/CatalogQueryRange.php index 83d0257e..0062924d 100644 --- a/src/Types/CatalogQueryRange.php +++ b/src/Types/CatalogQueryRange.php @@ -57,6 +57,7 @@ public function getAttributeName(): string public function setAttributeName(string $value): self { $this->attributeName = $value; + $this->_setField('attributeName'); return $this; } @@ -74,6 +75,7 @@ public function getAttributeMinValue(): ?int public function setAttributeMinValue(?int $value = null): self { $this->attributeMinValue = $value; + $this->_setField('attributeMinValue'); return $this; } @@ -91,6 +93,7 @@ public function getAttributeMaxValue(): ?int public function setAttributeMaxValue(?int $value = null): self { $this->attributeMaxValue = $value; + $this->_setField('attributeMaxValue'); return $this; } diff --git a/src/Types/CatalogQuerySet.php b/src/Types/CatalogQuerySet.php index c9865992..74b5249c 100644 --- a/src/Types/CatalogQuerySet.php +++ b/src/Types/CatalogQuerySet.php @@ -54,6 +54,7 @@ public function getAttributeName(): string public function setAttributeName(string $value): self { $this->attributeName = $value; + $this->_setField('attributeName'); return $this; } @@ -71,6 +72,7 @@ public function getAttributeValues(): array public function setAttributeValues(array $value): self { $this->attributeValues = $value; + $this->_setField('attributeValues'); return $this; } diff --git a/src/Types/CatalogQuerySortedAttribute.php b/src/Types/CatalogQuerySortedAttribute.php index 937022e0..4c04f0c1 100644 --- a/src/Types/CatalogQuerySortedAttribute.php +++ b/src/Types/CatalogQuerySortedAttribute.php @@ -64,6 +64,7 @@ public function getAttributeName(): string public function setAttributeName(string $value): self { $this->attributeName = $value; + $this->_setField('attributeName'); return $this; } @@ -81,6 +82,7 @@ public function getInitialAttributeValue(): ?string public function setInitialAttributeValue(?string $value = null): self { $this->initialAttributeValue = $value; + $this->_setField('initialAttributeValue'); return $this; } @@ -98,6 +100,7 @@ public function getSortOrder(): ?string public function setSortOrder(?string $value = null): self { $this->sortOrder = $value; + $this->_setField('sortOrder'); return $this; } diff --git a/src/Types/CatalogQueryText.php b/src/Types/CatalogQueryText.php index a49cc07b..a17e2d74 100644 --- a/src/Types/CatalogQueryText.php +++ b/src/Types/CatalogQueryText.php @@ -42,6 +42,7 @@ public function getKeywords(): array public function setKeywords(array $value): self { $this->keywords = $value; + $this->_setField('keywords'); return $this; } diff --git a/src/Types/CatalogQuickAmount.php b/src/Types/CatalogQuickAmount.php index 8c34538c..86d5595e 100644 --- a/src/Types/CatalogQuickAmount.php +++ b/src/Types/CatalogQuickAmount.php @@ -71,6 +71,7 @@ public function getType(): string public function setType(string $value): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -88,6 +89,7 @@ public function getAmount(): Money public function setAmount(Money $value): self { $this->amount = $value; + $this->_setField('amount'); return $this; } @@ -105,6 +107,7 @@ public function getScore(): ?int public function setScore(?int $value = null): self { $this->score = $value; + $this->_setField('score'); return $this; } @@ -122,6 +125,7 @@ public function getOrdinal(): ?int public function setOrdinal(?int $value = null): self { $this->ordinal = $value; + $this->_setField('ordinal'); return $this; } diff --git a/src/Types/CatalogQuickAmountsSettings.php b/src/Types/CatalogQuickAmountsSettings.php index 8a9de97d..43fe6a02 100644 --- a/src/Types/CatalogQuickAmountsSettings.php +++ b/src/Types/CatalogQuickAmountsSettings.php @@ -64,6 +64,7 @@ public function getOption(): string public function setOption(string $value): self { $this->option = $value; + $this->_setField('option'); return $this; } @@ -81,6 +82,7 @@ public function getEligibleForAutoAmounts(): ?bool public function setEligibleForAutoAmounts(?bool $value = null): self { $this->eligibleForAutoAmounts = $value; + $this->_setField('eligibleForAutoAmounts'); return $this; } @@ -98,6 +100,7 @@ public function getAmounts(): ?array public function setAmounts(?array $value = null): self { $this->amounts = $value; + $this->_setField('amounts'); return $this; } diff --git a/src/Types/CatalogStockConversion.php b/src/Types/CatalogStockConversion.php index 3d61bb55..364e58b9 100644 --- a/src/Types/CatalogStockConversion.php +++ b/src/Types/CatalogStockConversion.php @@ -76,6 +76,7 @@ public function getStockableItemVariationId(): string public function setStockableItemVariationId(string $value): self { $this->stockableItemVariationId = $value; + $this->_setField('stockableItemVariationId'); return $this; } @@ -93,6 +94,7 @@ public function getStockableQuantity(): string public function setStockableQuantity(string $value): self { $this->stockableQuantity = $value; + $this->_setField('stockableQuantity'); return $this; } @@ -110,6 +112,7 @@ public function getNonstockableQuantity(): string public function setNonstockableQuantity(string $value): self { $this->nonstockableQuantity = $value; + $this->_setField('nonstockableQuantity'); return $this; } diff --git a/src/Types/CatalogSubscriptionPlan.php b/src/Types/CatalogSubscriptionPlan.php index 03a55944..ec7711c6 100644 --- a/src/Types/CatalogSubscriptionPlan.php +++ b/src/Types/CatalogSubscriptionPlan.php @@ -86,6 +86,7 @@ public function getName(): string public function setName(string $value): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -103,6 +104,7 @@ public function getPhases(): ?array public function setPhases(?array $value = null): self { $this->phases = $value; + $this->_setField('phases'); return $this; } @@ -120,6 +122,7 @@ public function getSubscriptionPlanVariations(): ?array public function setSubscriptionPlanVariations(?array $value = null): self { $this->subscriptionPlanVariations = $value; + $this->_setField('subscriptionPlanVariations'); return $this; } @@ -137,6 +140,7 @@ public function getEligibleItemIds(): ?array public function setEligibleItemIds(?array $value = null): self { $this->eligibleItemIds = $value; + $this->_setField('eligibleItemIds'); return $this; } @@ -154,6 +158,7 @@ public function getEligibleCategoryIds(): ?array public function setEligibleCategoryIds(?array $value = null): self { $this->eligibleCategoryIds = $value; + $this->_setField('eligibleCategoryIds'); return $this; } @@ -171,6 +176,7 @@ public function getAllItems(): ?bool public function setAllItems(?bool $value = null): self { $this->allItems = $value; + $this->_setField('allItems'); return $this; } diff --git a/src/Types/CatalogSubscriptionPlanVariation.php b/src/Types/CatalogSubscriptionPlanVariation.php index ace0d144..01a8a76a 100644 --- a/src/Types/CatalogSubscriptionPlanVariation.php +++ b/src/Types/CatalogSubscriptionPlanVariation.php @@ -87,6 +87,7 @@ public function getName(): string public function setName(string $value): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -104,6 +105,7 @@ public function getPhases(): array public function setPhases(array $value): self { $this->phases = $value; + $this->_setField('phases'); return $this; } @@ -121,6 +123,7 @@ public function getSubscriptionPlanId(): ?string public function setSubscriptionPlanId(?string $value = null): self { $this->subscriptionPlanId = $value; + $this->_setField('subscriptionPlanId'); return $this; } @@ -138,6 +141,7 @@ public function getMonthlyBillingAnchorDate(): ?int public function setMonthlyBillingAnchorDate(?int $value = null): self { $this->monthlyBillingAnchorDate = $value; + $this->_setField('monthlyBillingAnchorDate'); return $this; } @@ -155,6 +159,7 @@ public function getCanProrate(): ?bool public function setCanProrate(?bool $value = null): self { $this->canProrate = $value; + $this->_setField('canProrate'); return $this; } @@ -172,6 +177,7 @@ public function getSuccessorPlanVariationId(): ?string public function setSuccessorPlanVariationId(?string $value = null): self { $this->successorPlanVariationId = $value; + $this->_setField('successorPlanVariationId'); return $this; } diff --git a/src/Types/CatalogTax.php b/src/Types/CatalogTax.php index c4e397f6..9635a5db 100644 --- a/src/Types/CatalogTax.php +++ b/src/Types/CatalogTax.php @@ -101,6 +101,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -118,6 +119,7 @@ public function getCalculationPhase(): ?string public function setCalculationPhase(?string $value = null): self { $this->calculationPhase = $value; + $this->_setField('calculationPhase'); return $this; } @@ -135,6 +137,7 @@ public function getInclusionType(): ?string public function setInclusionType(?string $value = null): self { $this->inclusionType = $value; + $this->_setField('inclusionType'); return $this; } @@ -152,6 +155,7 @@ public function getPercentage(): ?string public function setPercentage(?string $value = null): self { $this->percentage = $value; + $this->_setField('percentage'); return $this; } @@ -169,6 +173,7 @@ public function getAppliesToCustomAmounts(): ?bool public function setAppliesToCustomAmounts(?bool $value = null): self { $this->appliesToCustomAmounts = $value; + $this->_setField('appliesToCustomAmounts'); return $this; } @@ -186,6 +191,7 @@ public function getEnabled(): ?bool public function setEnabled(?bool $value = null): self { $this->enabled = $value; + $this->_setField('enabled'); return $this; } @@ -203,6 +209,7 @@ public function getAppliesToProductSetId(): ?string public function setAppliesToProductSetId(?string $value = null): self { $this->appliesToProductSetId = $value; + $this->_setField('appliesToProductSetId'); return $this; } diff --git a/src/Types/CatalogTimePeriod.php b/src/Types/CatalogTimePeriod.php index d0dc8b73..57798301 100644 --- a/src/Types/CatalogTimePeriod.php +++ b/src/Types/CatalogTimePeriod.php @@ -57,6 +57,7 @@ public function getEvent(): ?string public function setEvent(?string $value = null): self { $this->event = $value; + $this->_setField('event'); return $this; } diff --git a/src/Types/CatalogV1Id.php b/src/Types/CatalogV1Id.php index 5b81ce91..ac5f83cb 100644 --- a/src/Types/CatalogV1Id.php +++ b/src/Types/CatalogV1Id.php @@ -49,6 +49,7 @@ public function getCatalogV1Id(): ?string public function setCatalogV1Id(?string $value = null): self { $this->catalogV1Id = $value; + $this->_setField('catalogV1Id'); return $this; } @@ -66,6 +67,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } diff --git a/src/Types/CatalogVersionUpdatedEvent.php b/src/Types/CatalogVersionUpdatedEvent.php index 0c440734..a39c22e9 100644 --- a/src/Types/CatalogVersionUpdatedEvent.php +++ b/src/Types/CatalogVersionUpdatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?CatalogVersionUpdatedEventData public function setData(?CatalogVersionUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CatalogVersionUpdatedEventCatalogVersion.php b/src/Types/CatalogVersionUpdatedEventCatalogVersion.php index 0add6667..b032273b 100644 --- a/src/Types/CatalogVersionUpdatedEventCatalogVersion.php +++ b/src/Types/CatalogVersionUpdatedEventCatalogVersion.php @@ -38,6 +38,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } diff --git a/src/Types/CatalogVersionUpdatedEventData.php b/src/Types/CatalogVersionUpdatedEventData.php index a4235abf..412407d9 100644 --- a/src/Types/CatalogVersionUpdatedEventData.php +++ b/src/Types/CatalogVersionUpdatedEventData.php @@ -46,6 +46,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -63,6 +64,7 @@ public function getObject(): ?CatalogVersionUpdatedEventObject public function setObject(?CatalogVersionUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/CatalogVersionUpdatedEventObject.php b/src/Types/CatalogVersionUpdatedEventObject.php index c063da8a..0d8623c2 100644 --- a/src/Types/CatalogVersionUpdatedEventObject.php +++ b/src/Types/CatalogVersionUpdatedEventObject.php @@ -38,6 +38,7 @@ public function getCatalogVersion(): ?CatalogVersionUpdatedEventCatalogVersion public function setCatalogVersion(?CatalogVersionUpdatedEventCatalogVersion $value = null): self { $this->catalogVersion = $value; + $this->_setField('catalogVersion'); return $this; } diff --git a/src/Types/CategoryPathToRootNode.php b/src/Types/CategoryPathToRootNode.php index eceb4308..e174bb2b 100644 --- a/src/Types/CategoryPathToRootNode.php +++ b/src/Types/CategoryPathToRootNode.php @@ -49,6 +49,7 @@ public function getCategoryId(): ?string public function setCategoryId(?string $value = null): self { $this->categoryId = $value; + $this->_setField('categoryId'); return $this; } @@ -66,6 +67,7 @@ public function getCategoryName(): ?string public function setCategoryName(?string $value = null): self { $this->categoryName = $value; + $this->_setField('categoryName'); return $this; } diff --git a/src/Types/ChangeBillingAnchorDateResponse.php b/src/Types/ChangeBillingAnchorDateResponse.php index d2d0e64f..6d2d90f3 100644 --- a/src/Types/ChangeBillingAnchorDateResponse.php +++ b/src/Types/ChangeBillingAnchorDateResponse.php @@ -59,6 +59,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -76,6 +77,7 @@ public function getSubscription(): ?Subscription public function setSubscription(?Subscription $value = null): self { $this->subscription = $value; + $this->_setField('subscription'); return $this; } @@ -93,6 +95,7 @@ public function getActions(): ?array public function setActions(?array $value = null): self { $this->actions = $value; + $this->_setField('actions'); return $this; } diff --git a/src/Types/Channel.php b/src/Types/Channel.php index ea6ff38f..b08280d4 100644 --- a/src/Types/Channel.php +++ b/src/Types/Channel.php @@ -103,6 +103,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -120,6 +121,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -137,6 +139,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -154,6 +157,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -171,6 +175,7 @@ public function getReference(): ?Reference public function setReference(?Reference $value = null): self { $this->reference = $value; + $this->_setField('reference'); return $this; } @@ -188,6 +193,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -205,6 +211,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -222,6 +229,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } diff --git a/src/Types/ChargeRequestAdditionalRecipient.php b/src/Types/ChargeRequestAdditionalRecipient.php index 764d77ad..5cf05ad8 100644 --- a/src/Types/ChargeRequestAdditionalRecipient.php +++ b/src/Types/ChargeRequestAdditionalRecipient.php @@ -58,6 +58,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -75,6 +76,7 @@ public function getDescription(): string public function setDescription(string $value): self { $this->description = $value; + $this->_setField('description'); return $this; } @@ -92,6 +94,7 @@ public function getAmountMoney(): Money public function setAmountMoney(Money $value): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } diff --git a/src/Types/Checkout.php b/src/Types/Checkout.php index b3a5c663..5cc04702 100644 --- a/src/Types/Checkout.php +++ b/src/Types/Checkout.php @@ -158,6 +158,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -175,6 +176,7 @@ public function getCheckoutPageUrl(): ?string public function setCheckoutPageUrl(?string $value = null): self { $this->checkoutPageUrl = $value; + $this->_setField('checkoutPageUrl'); return $this; } @@ -192,6 +194,7 @@ public function getAskForShippingAddress(): ?bool public function setAskForShippingAddress(?bool $value = null): self { $this->askForShippingAddress = $value; + $this->_setField('askForShippingAddress'); return $this; } @@ -209,6 +212,7 @@ public function getMerchantSupportEmail(): ?string public function setMerchantSupportEmail(?string $value = null): self { $this->merchantSupportEmail = $value; + $this->_setField('merchantSupportEmail'); return $this; } @@ -226,6 +230,7 @@ public function getPrePopulateBuyerEmail(): ?string public function setPrePopulateBuyerEmail(?string $value = null): self { $this->prePopulateBuyerEmail = $value; + $this->_setField('prePopulateBuyerEmail'); return $this; } @@ -243,6 +248,7 @@ public function getPrePopulateShippingAddress(): ?Address public function setPrePopulateShippingAddress(?Address $value = null): self { $this->prePopulateShippingAddress = $value; + $this->_setField('prePopulateShippingAddress'); return $this; } @@ -260,6 +266,7 @@ public function getRedirectUrl(): ?string public function setRedirectUrl(?string $value = null): self { $this->redirectUrl = $value; + $this->_setField('redirectUrl'); return $this; } @@ -277,6 +284,7 @@ public function getOrder(): ?Order public function setOrder(?Order $value = null): self { $this->order = $value; + $this->_setField('order'); return $this; } @@ -294,6 +302,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -311,6 +320,7 @@ public function getAdditionalRecipients(): ?array public function setAdditionalRecipients(?array $value = null): self { $this->additionalRecipients = $value; + $this->_setField('additionalRecipients'); return $this; } diff --git a/src/Types/CheckoutLocationSettings.php b/src/Types/CheckoutLocationSettings.php index edfdbd76..a98f0f0d 100644 --- a/src/Types/CheckoutLocationSettings.php +++ b/src/Types/CheckoutLocationSettings.php @@ -95,6 +95,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -112,6 +113,7 @@ public function getCustomerNotesEnabled(): ?bool public function setCustomerNotesEnabled(?bool $value = null): self { $this->customerNotesEnabled = $value; + $this->_setField('customerNotesEnabled'); return $this; } @@ -129,6 +131,7 @@ public function getPolicies(): ?array public function setPolicies(?array $value = null): self { $this->policies = $value; + $this->_setField('policies'); return $this; } @@ -146,6 +149,7 @@ public function getBranding(): ?CheckoutLocationSettingsBranding public function setBranding(?CheckoutLocationSettingsBranding $value = null): self { $this->branding = $value; + $this->_setField('branding'); return $this; } @@ -163,6 +167,7 @@ public function getTipping(): ?CheckoutLocationSettingsTipping public function setTipping(?CheckoutLocationSettingsTipping $value = null): self { $this->tipping = $value; + $this->_setField('tipping'); return $this; } @@ -180,6 +185,7 @@ public function getCoupons(): ?CheckoutLocationSettingsCoupons public function setCoupons(?CheckoutLocationSettingsCoupons $value = null): self { $this->coupons = $value; + $this->_setField('coupons'); return $this; } @@ -197,6 +203,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } diff --git a/src/Types/CheckoutLocationSettingsBranding.php b/src/Types/CheckoutLocationSettingsBranding.php index 7ba3a0bd..4f8e657f 100644 --- a/src/Types/CheckoutLocationSettingsBranding.php +++ b/src/Types/CheckoutLocationSettingsBranding.php @@ -60,6 +60,7 @@ public function getHeaderType(): ?string public function setHeaderType(?string $value = null): self { $this->headerType = $value; + $this->_setField('headerType'); return $this; } @@ -77,6 +78,7 @@ public function getButtonColor(): ?string public function setButtonColor(?string $value = null): self { $this->buttonColor = $value; + $this->_setField('buttonColor'); return $this; } @@ -94,6 +96,7 @@ public function getButtonShape(): ?string public function setButtonShape(?string $value = null): self { $this->buttonShape = $value; + $this->_setField('buttonShape'); return $this; } diff --git a/src/Types/CheckoutLocationSettingsCoupons.php b/src/Types/CheckoutLocationSettingsCoupons.php index 31d42889..cfcd1fee 100644 --- a/src/Types/CheckoutLocationSettingsCoupons.php +++ b/src/Types/CheckoutLocationSettingsCoupons.php @@ -38,6 +38,7 @@ public function getEnabled(): ?bool public function setEnabled(?bool $value = null): self { $this->enabled = $value; + $this->_setField('enabled'); return $this; } diff --git a/src/Types/CheckoutLocationSettingsPolicy.php b/src/Types/CheckoutLocationSettingsPolicy.php index 21c2aaa4..0107f515 100644 --- a/src/Types/CheckoutLocationSettingsPolicy.php +++ b/src/Types/CheckoutLocationSettingsPolicy.php @@ -54,6 +54,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -71,6 +72,7 @@ public function getTitle(): ?string public function setTitle(?string $value = null): self { $this->title = $value; + $this->_setField('title'); return $this; } @@ -88,6 +90,7 @@ public function getDescription(): ?string public function setDescription(?string $value = null): self { $this->description = $value; + $this->_setField('description'); return $this; } diff --git a/src/Types/CheckoutLocationSettingsTipping.php b/src/Types/CheckoutLocationSettingsTipping.php index e10544ff..ad5d9426 100644 --- a/src/Types/CheckoutLocationSettingsTipping.php +++ b/src/Types/CheckoutLocationSettingsTipping.php @@ -76,6 +76,7 @@ public function getPercentages(): ?array public function setPercentages(?array $value = null): self { $this->percentages = $value; + $this->_setField('percentages'); return $this; } @@ -93,6 +94,7 @@ public function getSmartTippingEnabled(): ?bool public function setSmartTippingEnabled(?bool $value = null): self { $this->smartTippingEnabled = $value; + $this->_setField('smartTippingEnabled'); return $this; } @@ -110,6 +112,7 @@ public function getDefaultPercent(): ?int public function setDefaultPercent(?int $value = null): self { $this->defaultPercent = $value; + $this->_setField('defaultPercent'); return $this; } @@ -127,6 +130,7 @@ public function getSmartTips(): ?array public function setSmartTips(?array $value = null): self { $this->smartTips = $value; + $this->_setField('smartTips'); return $this; } @@ -144,6 +148,7 @@ public function getDefaultSmartTip(): ?Money public function setDefaultSmartTip(?Money $value = null): self { $this->defaultSmartTip = $value; + $this->_setField('defaultSmartTip'); return $this; } diff --git a/src/Types/CheckoutMerchantSettings.php b/src/Types/CheckoutMerchantSettings.php index 4e20b464..719ba782 100644 --- a/src/Types/CheckoutMerchantSettings.php +++ b/src/Types/CheckoutMerchantSettings.php @@ -51,6 +51,7 @@ public function getPaymentMethods(): ?CheckoutMerchantSettingsPaymentMethods public function setPaymentMethods(?CheckoutMerchantSettingsPaymentMethods $value = null): self { $this->paymentMethods = $value; + $this->_setField('paymentMethods'); return $this; } @@ -68,6 +69,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } diff --git a/src/Types/CheckoutMerchantSettingsPaymentMethods.php b/src/Types/CheckoutMerchantSettingsPaymentMethods.php index bdf488b5..371f626c 100644 --- a/src/Types/CheckoutMerchantSettingsPaymentMethods.php +++ b/src/Types/CheckoutMerchantSettingsPaymentMethods.php @@ -62,6 +62,7 @@ public function getApplePay(): ?CheckoutMerchantSettingsPaymentMethodsPaymentMet public function setApplePay(?CheckoutMerchantSettingsPaymentMethodsPaymentMethod $value = null): self { $this->applePay = $value; + $this->_setField('applePay'); return $this; } @@ -79,6 +80,7 @@ public function getGooglePay(): ?CheckoutMerchantSettingsPaymentMethodsPaymentMe public function setGooglePay(?CheckoutMerchantSettingsPaymentMethodsPaymentMethod $value = null): self { $this->googlePay = $value; + $this->_setField('googlePay'); return $this; } @@ -96,6 +98,7 @@ public function getCashApp(): ?CheckoutMerchantSettingsPaymentMethodsPaymentMeth public function setCashApp(?CheckoutMerchantSettingsPaymentMethodsPaymentMethod $value = null): self { $this->cashApp = $value; + $this->_setField('cashApp'); return $this; } @@ -113,6 +116,7 @@ public function getAfterpayClearpay(): ?CheckoutMerchantSettingsPaymentMethodsAf public function setAfterpayClearpay(?CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay $value = null): self { $this->afterpayClearpay = $value; + $this->_setField('afterpayClearpay'); return $this; } diff --git a/src/Types/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay.php b/src/Types/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay.php index cbd727b0..ece846f1 100644 --- a/src/Types/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay.php +++ b/src/Types/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay.php @@ -57,6 +57,7 @@ public function getOrderEligibilityRange(): ?CheckoutMerchantSettingsPaymentMeth public function setOrderEligibilityRange(?CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange $value = null): self { $this->orderEligibilityRange = $value; + $this->_setField('orderEligibilityRange'); return $this; } @@ -74,6 +75,7 @@ public function getItemEligibilityRange(): ?CheckoutMerchantSettingsPaymentMetho public function setItemEligibilityRange(?CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange $value = null): self { $this->itemEligibilityRange = $value; + $this->_setField('itemEligibilityRange'); return $this; } @@ -91,6 +93,7 @@ public function getEnabled(): ?bool public function setEnabled(?bool $value = null): self { $this->enabled = $value; + $this->_setField('enabled'); return $this; } diff --git a/src/Types/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange.php b/src/Types/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange.php index 1dd8adaa..ec19d550 100644 --- a/src/Types/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange.php +++ b/src/Types/CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange.php @@ -49,6 +49,7 @@ public function getMin(): Money public function setMin(Money $value): self { $this->min = $value; + $this->_setField('min'); return $this; } @@ -66,6 +67,7 @@ public function getMax(): Money public function setMax(Money $value): self { $this->max = $value; + $this->_setField('max'); return $this; } diff --git a/src/Types/CheckoutMerchantSettingsPaymentMethodsPaymentMethod.php b/src/Types/CheckoutMerchantSettingsPaymentMethodsPaymentMethod.php index ec73c401..3b1db742 100644 --- a/src/Types/CheckoutMerchantSettingsPaymentMethodsPaymentMethod.php +++ b/src/Types/CheckoutMerchantSettingsPaymentMethodsPaymentMethod.php @@ -41,6 +41,7 @@ public function getEnabled(): ?bool public function setEnabled(?bool $value = null): self { $this->enabled = $value; + $this->_setField('enabled'); return $this; } diff --git a/src/Types/CheckoutOptions.php b/src/Types/CheckoutOptions.php index e8877dc0..5cfeab2f 100644 --- a/src/Types/CheckoutOptions.php +++ b/src/Types/CheckoutOptions.php @@ -132,6 +132,7 @@ public function getAllowTipping(): ?bool public function setAllowTipping(?bool $value = null): self { $this->allowTipping = $value; + $this->_setField('allowTipping'); return $this; } @@ -149,6 +150,7 @@ public function getCustomFields(): ?array public function setCustomFields(?array $value = null): self { $this->customFields = $value; + $this->_setField('customFields'); return $this; } @@ -166,6 +168,7 @@ public function getSubscriptionPlanId(): ?string public function setSubscriptionPlanId(?string $value = null): self { $this->subscriptionPlanId = $value; + $this->_setField('subscriptionPlanId'); return $this; } @@ -183,6 +186,7 @@ public function getRedirectUrl(): ?string public function setRedirectUrl(?string $value = null): self { $this->redirectUrl = $value; + $this->_setField('redirectUrl'); return $this; } @@ -200,6 +204,7 @@ public function getMerchantSupportEmail(): ?string public function setMerchantSupportEmail(?string $value = null): self { $this->merchantSupportEmail = $value; + $this->_setField('merchantSupportEmail'); return $this; } @@ -217,6 +222,7 @@ public function getAskForShippingAddress(): ?bool public function setAskForShippingAddress(?bool $value = null): self { $this->askForShippingAddress = $value; + $this->_setField('askForShippingAddress'); return $this; } @@ -234,6 +240,7 @@ public function getAcceptedPaymentMethods(): ?AcceptedPaymentMethods public function setAcceptedPaymentMethods(?AcceptedPaymentMethods $value = null): self { $this->acceptedPaymentMethods = $value; + $this->_setField('acceptedPaymentMethods'); return $this; } @@ -251,6 +258,7 @@ public function getAppFeeMoney(): ?Money public function setAppFeeMoney(?Money $value = null): self { $this->appFeeMoney = $value; + $this->_setField('appFeeMoney'); return $this; } @@ -268,6 +276,7 @@ public function getShippingFee(): ?ShippingFee public function setShippingFee(?ShippingFee $value = null): self { $this->shippingFee = $value; + $this->_setField('shippingFee'); return $this; } @@ -285,6 +294,7 @@ public function getEnableCoupon(): ?bool public function setEnableCoupon(?bool $value = null): self { $this->enableCoupon = $value; + $this->_setField('enableCoupon'); return $this; } @@ -302,6 +312,7 @@ public function getEnableLoyalty(): ?bool public function setEnableLoyalty(?bool $value = null): self { $this->enableLoyalty = $value; + $this->_setField('enableLoyalty'); return $this; } diff --git a/src/Types/ClearpayDetails.php b/src/Types/ClearpayDetails.php index b88f2244..6c17150f 100644 --- a/src/Types/ClearpayDetails.php +++ b/src/Types/ClearpayDetails.php @@ -41,6 +41,7 @@ public function getEmailAddress(): ?string public function setEmailAddress(?string $value = null): self { $this->emailAddress = $value; + $this->_setField('emailAddress'); return $this; } diff --git a/src/Types/CloneOrderResponse.php b/src/Types/CloneOrderResponse.php index e21bd1c0..5c6fdf07 100644 --- a/src/Types/CloneOrderResponse.php +++ b/src/Types/CloneOrderResponse.php @@ -51,6 +51,7 @@ public function getOrder(): ?Order public function setOrder(?Order $value = null): self { $this->order = $value; + $this->_setField('order'); return $this; } @@ -68,6 +69,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/CollectedData.php b/src/Types/CollectedData.php index d50ebd9d..ce07f1a3 100644 --- a/src/Types/CollectedData.php +++ b/src/Types/CollectedData.php @@ -38,6 +38,7 @@ public function getInputText(): ?string public function setInputText(?string $value = null): self { $this->inputText = $value; + $this->_setField('inputText'); return $this; } diff --git a/src/Types/CompletePaymentResponse.php b/src/Types/CompletePaymentResponse.php index 30ba5af2..db9edc27 100644 --- a/src/Types/CompletePaymentResponse.php +++ b/src/Types/CompletePaymentResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getPayment(): ?Payment public function setPayment(?Payment $value = null): self { $this->payment = $value; + $this->_setField('payment'); return $this; } diff --git a/src/Types/Component.php b/src/Types/Component.php index cc7e345c..c9d7352b 100644 --- a/src/Types/Component.php +++ b/src/Types/Component.php @@ -85,6 +85,7 @@ public function getType(): string public function setType(string $value): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -102,6 +103,7 @@ public function getApplicationDetails(): ?DeviceComponentDetailsApplicationDetai public function setApplicationDetails(?DeviceComponentDetailsApplicationDetails $value = null): self { $this->applicationDetails = $value; + $this->_setField('applicationDetails'); return $this; } @@ -119,6 +121,7 @@ public function getCardReaderDetails(): ?DeviceComponentDetailsCardReaderDetails public function setCardReaderDetails(?DeviceComponentDetailsCardReaderDetails $value = null): self { $this->cardReaderDetails = $value; + $this->_setField('cardReaderDetails'); return $this; } @@ -136,6 +139,7 @@ public function getBatteryDetails(): ?DeviceComponentDetailsBatteryDetails public function setBatteryDetails(?DeviceComponentDetailsBatteryDetails $value = null): self { $this->batteryDetails = $value; + $this->_setField('batteryDetails'); return $this; } @@ -153,6 +157,7 @@ public function getWifiDetails(): ?DeviceComponentDetailsWiFiDetails public function setWifiDetails(?DeviceComponentDetailsWiFiDetails $value = null): self { $this->wifiDetails = $value; + $this->_setField('wifiDetails'); return $this; } @@ -170,6 +175,7 @@ public function getEthernetDetails(): ?DeviceComponentDetailsEthernetDetails public function setEthernetDetails(?DeviceComponentDetailsEthernetDetails $value = null): self { $this->ethernetDetails = $value; + $this->_setField('ethernetDetails'); return $this; } diff --git a/src/Types/ConfirmationDecision.php b/src/Types/ConfirmationDecision.php index e5e5337f..58cbaac3 100644 --- a/src/Types/ConfirmationDecision.php +++ b/src/Types/ConfirmationDecision.php @@ -38,6 +38,7 @@ public function getHasAgreed(): ?bool public function setHasAgreed(?bool $value = null): self { $this->hasAgreed = $value; + $this->_setField('hasAgreed'); return $this; } diff --git a/src/Types/ConfirmationOptions.php b/src/Types/ConfirmationOptions.php index 9cf9104c..38b92347 100644 --- a/src/Types/ConfirmationOptions.php +++ b/src/Types/ConfirmationOptions.php @@ -70,6 +70,7 @@ public function getTitle(): string public function setTitle(string $value): self { $this->title = $value; + $this->_setField('title'); return $this; } @@ -87,6 +88,7 @@ public function getBody(): string public function setBody(string $value): self { $this->body = $value; + $this->_setField('body'); return $this; } @@ -104,6 +106,7 @@ public function getAgreeButtonText(): string public function setAgreeButtonText(string $value): self { $this->agreeButtonText = $value; + $this->_setField('agreeButtonText'); return $this; } @@ -121,6 +124,7 @@ public function getDisagreeButtonText(): ?string public function setDisagreeButtonText(?string $value = null): self { $this->disagreeButtonText = $value; + $this->_setField('disagreeButtonText'); return $this; } @@ -138,6 +142,7 @@ public function getDecision(): ?ConfirmationDecision public function setDecision(?ConfirmationDecision $value = null): self { $this->decision = $value; + $this->_setField('decision'); return $this; } diff --git a/src/Types/Coordinates.php b/src/Types/Coordinates.php index c0ceadcb..4a1fb4b7 100644 --- a/src/Types/Coordinates.php +++ b/src/Types/Coordinates.php @@ -49,6 +49,7 @@ public function getLatitude(): ?float public function setLatitude(?float $value = null): self { $this->latitude = $value; + $this->_setField('latitude'); return $this; } @@ -66,6 +67,7 @@ public function getLongitude(): ?float public function setLongitude(?float $value = null): self { $this->longitude = $value; + $this->_setField('longitude'); return $this; } diff --git a/src/Types/CreateBankAccountResponse.php b/src/Types/CreateBankAccountResponse.php index 01fc673b..c9443f07 100644 --- a/src/Types/CreateBankAccountResponse.php +++ b/src/Types/CreateBankAccountResponse.php @@ -50,6 +50,7 @@ public function getBankAccount(): ?BankAccount public function setBankAccount(?BankAccount $value = null): self { $this->bankAccount = $value; + $this->_setField('bankAccount'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/CreateBookingCustomAttributeDefinitionResponse.php b/src/Types/CreateBookingCustomAttributeDefinitionResponse.php index 50abca7e..7c6404e8 100644 --- a/src/Types/CreateBookingCustomAttributeDefinitionResponse.php +++ b/src/Types/CreateBookingCustomAttributeDefinitionResponse.php @@ -51,6 +51,7 @@ public function getCustomAttributeDefinition(): ?CustomAttributeDefinition public function setCustomAttributeDefinition(?CustomAttributeDefinition $value = null): self { $this->customAttributeDefinition = $value; + $this->_setField('customAttributeDefinition'); return $this; } @@ -68,6 +69,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/CreateBookingResponse.php b/src/Types/CreateBookingResponse.php index 23f52c35..58034c5e 100644 --- a/src/Types/CreateBookingResponse.php +++ b/src/Types/CreateBookingResponse.php @@ -47,6 +47,7 @@ public function getBooking(): ?Booking public function setBooking(?Booking $value = null): self { $this->booking = $value; + $this->_setField('booking'); return $this; } @@ -64,6 +65,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/CreateBreakTypeResponse.php b/src/Types/CreateBreakTypeResponse.php index a980b3a0..f307b041 100644 --- a/src/Types/CreateBreakTypeResponse.php +++ b/src/Types/CreateBreakTypeResponse.php @@ -52,6 +52,7 @@ public function getBreakType(): ?BreakType public function setBreakType(?BreakType $value = null): self { $this->breakType = $value; + $this->_setField('breakType'); return $this; } @@ -69,6 +70,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/CreateCardResponse.php b/src/Types/CreateCardResponse.php index 8036aac6..b02e787e 100644 --- a/src/Types/CreateCardResponse.php +++ b/src/Types/CreateCardResponse.php @@ -54,6 +54,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -71,6 +72,7 @@ public function getCard(): ?Card public function setCard(?Card $value = null): self { $this->card = $value; + $this->_setField('card'); return $this; } diff --git a/src/Types/CreateCatalogImageRequest.php b/src/Types/CreateCatalogImageRequest.php index 6ad8e092..e0ff05d7 100644 --- a/src/Types/CreateCatalogImageRequest.php +++ b/src/Types/CreateCatalogImageRequest.php @@ -77,6 +77,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -94,6 +95,7 @@ public function getObjectId(): ?string public function setObjectId(?string $value = null): self { $this->objectId = $value; + $this->_setField('objectId'); return $this; } @@ -111,6 +113,7 @@ public function getImage(): CatalogObject public function setImage(CatalogObject $value): self { $this->image = $value; + $this->_setField('image'); return $this; } @@ -128,6 +131,7 @@ public function getIsPrimary(): ?bool public function setIsPrimary(?bool $value = null): self { $this->isPrimary = $value; + $this->_setField('isPrimary'); return $this; } diff --git a/src/Types/CreateCatalogImageResponse.php b/src/Types/CreateCatalogImageResponse.php index 4fe41995..8bf20536 100644 --- a/src/Types/CreateCatalogImageResponse.php +++ b/src/Types/CreateCatalogImageResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getImage(): ?CatalogObject public function setImage(?CatalogObject $value = null): self { $this->image = $value; + $this->_setField('image'); return $this; } diff --git a/src/Types/CreateCheckoutResponse.php b/src/Types/CreateCheckoutResponse.php index ed541751..450ee3ff 100644 --- a/src/Types/CreateCheckoutResponse.php +++ b/src/Types/CreateCheckoutResponse.php @@ -51,6 +51,7 @@ public function getCheckout(): ?Checkout public function setCheckout(?Checkout $value = null): self { $this->checkout = $value; + $this->_setField('checkout'); return $this; } @@ -68,6 +69,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/CreateCustomerCardResponse.php b/src/Types/CreateCustomerCardResponse.php index 82f74635..39bb9c26 100644 --- a/src/Types/CreateCustomerCardResponse.php +++ b/src/Types/CreateCustomerCardResponse.php @@ -53,6 +53,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -70,6 +71,7 @@ public function getCard(): ?Card public function setCard(?Card $value = null): self { $this->card = $value; + $this->_setField('card'); return $this; } diff --git a/src/Types/CreateCustomerCustomAttributeDefinitionResponse.php b/src/Types/CreateCustomerCustomAttributeDefinitionResponse.php index c00bdf6a..824c2081 100644 --- a/src/Types/CreateCustomerCustomAttributeDefinitionResponse.php +++ b/src/Types/CreateCustomerCustomAttributeDefinitionResponse.php @@ -51,6 +51,7 @@ public function getCustomAttributeDefinition(): ?CustomAttributeDefinition public function setCustomAttributeDefinition(?CustomAttributeDefinition $value = null): self { $this->customAttributeDefinition = $value; + $this->_setField('customAttributeDefinition'); return $this; } @@ -68,6 +69,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/CreateCustomerGroupResponse.php b/src/Types/CreateCustomerGroupResponse.php index 537d08d5..cb353b41 100644 --- a/src/Types/CreateCustomerGroupResponse.php +++ b/src/Types/CreateCustomerGroupResponse.php @@ -53,6 +53,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -70,6 +71,7 @@ public function getGroup(): ?CustomerGroup public function setGroup(?CustomerGroup $value = null): self { $this->group = $value; + $this->_setField('group'); return $this; } diff --git a/src/Types/CreateCustomerResponse.php b/src/Types/CreateCustomerResponse.php index 75e24005..e89ca158 100644 --- a/src/Types/CreateCustomerResponse.php +++ b/src/Types/CreateCustomerResponse.php @@ -54,6 +54,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -71,6 +72,7 @@ public function getCustomer(): ?Customer public function setCustomer(?Customer $value = null): self { $this->customer = $value; + $this->_setField('customer'); return $this; } diff --git a/src/Types/CreateDeviceCodeResponse.php b/src/Types/CreateDeviceCodeResponse.php index 1c08e331..b6d208d0 100644 --- a/src/Types/CreateDeviceCodeResponse.php +++ b/src/Types/CreateDeviceCodeResponse.php @@ -47,6 +47,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -64,6 +65,7 @@ public function getDeviceCode(): ?DeviceCode public function setDeviceCode(?DeviceCode $value = null): self { $this->deviceCode = $value; + $this->_setField('deviceCode'); return $this; } diff --git a/src/Types/CreateDisputeEvidenceFileRequest.php b/src/Types/CreateDisputeEvidenceFileRequest.php index 75f73bcc..6c4ea78a 100644 --- a/src/Types/CreateDisputeEvidenceFileRequest.php +++ b/src/Types/CreateDisputeEvidenceFileRequest.php @@ -63,6 +63,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -80,6 +81,7 @@ public function getEvidenceType(): ?string public function setEvidenceType(?string $value = null): self { $this->evidenceType = $value; + $this->_setField('evidenceType'); return $this; } @@ -97,6 +99,7 @@ public function getContentType(): ?string public function setContentType(?string $value = null): self { $this->contentType = $value; + $this->_setField('contentType'); return $this; } diff --git a/src/Types/CreateDisputeEvidenceFileResponse.php b/src/Types/CreateDisputeEvidenceFileResponse.php index f9d52c25..5d75daab 100644 --- a/src/Types/CreateDisputeEvidenceFileResponse.php +++ b/src/Types/CreateDisputeEvidenceFileResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getEvidence(): ?DisputeEvidence public function setEvidence(?DisputeEvidence $value = null): self { $this->evidence = $value; + $this->_setField('evidence'); return $this; } diff --git a/src/Types/CreateDisputeEvidenceTextResponse.php b/src/Types/CreateDisputeEvidenceTextResponse.php index 8d1de018..8f3a2921 100644 --- a/src/Types/CreateDisputeEvidenceTextResponse.php +++ b/src/Types/CreateDisputeEvidenceTextResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getEvidence(): ?DisputeEvidence public function setEvidence(?DisputeEvidence $value = null): self { $this->evidence = $value; + $this->_setField('evidence'); return $this; } diff --git a/src/Types/CreateGiftCardActivityResponse.php b/src/Types/CreateGiftCardActivityResponse.php index 8caffbad..2c3e197d 100644 --- a/src/Types/CreateGiftCardActivityResponse.php +++ b/src/Types/CreateGiftCardActivityResponse.php @@ -51,6 +51,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -68,6 +69,7 @@ public function getGiftCardActivity(): ?GiftCardActivity public function setGiftCardActivity(?GiftCardActivity $value = null): self { $this->giftCardActivity = $value; + $this->_setField('giftCardActivity'); return $this; } diff --git a/src/Types/CreateGiftCardResponse.php b/src/Types/CreateGiftCardResponse.php index 53f55af3..8e9da71e 100644 --- a/src/Types/CreateGiftCardResponse.php +++ b/src/Types/CreateGiftCardResponse.php @@ -51,6 +51,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -68,6 +69,7 @@ public function getGiftCard(): ?GiftCard public function setGiftCard(?GiftCard $value = null): self { $this->giftCard = $value; + $this->_setField('giftCard'); return $this; } diff --git a/src/Types/CreateInvoiceAttachmentRequestData.php b/src/Types/CreateInvoiceAttachmentRequestData.php index 7b502d5f..04ea4435 100644 --- a/src/Types/CreateInvoiceAttachmentRequestData.php +++ b/src/Types/CreateInvoiceAttachmentRequestData.php @@ -52,6 +52,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -69,6 +70,7 @@ public function getDescription(): ?string public function setDescription(?string $value = null): self { $this->description = $value; + $this->_setField('description'); return $this; } diff --git a/src/Types/CreateInvoiceAttachmentResponse.php b/src/Types/CreateInvoiceAttachmentResponse.php index 7fafbc4f..ffeed381 100644 --- a/src/Types/CreateInvoiceAttachmentResponse.php +++ b/src/Types/CreateInvoiceAttachmentResponse.php @@ -50,6 +50,7 @@ public function getAttachment(): ?InvoiceAttachment public function setAttachment(?InvoiceAttachment $value = null): self { $this->attachment = $value; + $this->_setField('attachment'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/CreateInvoiceResponse.php b/src/Types/CreateInvoiceResponse.php index 727dd35b..74810dbc 100644 --- a/src/Types/CreateInvoiceResponse.php +++ b/src/Types/CreateInvoiceResponse.php @@ -50,6 +50,7 @@ public function getInvoice(): ?Invoice public function setInvoice(?Invoice $value = null): self { $this->invoice = $value; + $this->_setField('invoice'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/CreateJobResponse.php b/src/Types/CreateJobResponse.php index a3701a7e..69b43057 100644 --- a/src/Types/CreateJobResponse.php +++ b/src/Types/CreateJobResponse.php @@ -51,6 +51,7 @@ public function getJob(): ?Job public function setJob(?Job $value = null): self { $this->job = $value; + $this->_setField('job'); return $this; } @@ -68,6 +69,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/CreateLocationCustomAttributeDefinitionResponse.php b/src/Types/CreateLocationCustomAttributeDefinitionResponse.php index a30ee59c..db7abcf1 100644 --- a/src/Types/CreateLocationCustomAttributeDefinitionResponse.php +++ b/src/Types/CreateLocationCustomAttributeDefinitionResponse.php @@ -51,6 +51,7 @@ public function getCustomAttributeDefinition(): ?CustomAttributeDefinition public function setCustomAttributeDefinition(?CustomAttributeDefinition $value = null): self { $this->customAttributeDefinition = $value; + $this->_setField('customAttributeDefinition'); return $this; } @@ -68,6 +69,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/CreateLocationResponse.php b/src/Types/CreateLocationResponse.php index 9e196e00..3f9a98c8 100644 --- a/src/Types/CreateLocationResponse.php +++ b/src/Types/CreateLocationResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getLocation(): ?Location public function setLocation(?Location $value = null): self { $this->location = $value; + $this->_setField('location'); return $this; } diff --git a/src/Types/CreateLoyaltyAccountResponse.php b/src/Types/CreateLoyaltyAccountResponse.php index 3dd12a3e..355620d9 100644 --- a/src/Types/CreateLoyaltyAccountResponse.php +++ b/src/Types/CreateLoyaltyAccountResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getLoyaltyAccount(): ?LoyaltyAccount public function setLoyaltyAccount(?LoyaltyAccount $value = null): self { $this->loyaltyAccount = $value; + $this->_setField('loyaltyAccount'); return $this; } diff --git a/src/Types/CreateLoyaltyPromotionResponse.php b/src/Types/CreateLoyaltyPromotionResponse.php index b8343fd3..c78168cc 100644 --- a/src/Types/CreateLoyaltyPromotionResponse.php +++ b/src/Types/CreateLoyaltyPromotionResponse.php @@ -51,6 +51,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -68,6 +69,7 @@ public function getLoyaltyPromotion(): ?LoyaltyPromotion public function setLoyaltyPromotion(?LoyaltyPromotion $value = null): self { $this->loyaltyPromotion = $value; + $this->_setField('loyaltyPromotion'); return $this; } diff --git a/src/Types/CreateLoyaltyRewardResponse.php b/src/Types/CreateLoyaltyRewardResponse.php index 4f585210..eb15dca9 100644 --- a/src/Types/CreateLoyaltyRewardResponse.php +++ b/src/Types/CreateLoyaltyRewardResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getReward(): ?LoyaltyReward public function setReward(?LoyaltyReward $value = null): self { $this->reward = $value; + $this->_setField('reward'); return $this; } diff --git a/src/Types/CreateMerchantCustomAttributeDefinitionResponse.php b/src/Types/CreateMerchantCustomAttributeDefinitionResponse.php index e44a0bfc..ca4ad563 100644 --- a/src/Types/CreateMerchantCustomAttributeDefinitionResponse.php +++ b/src/Types/CreateMerchantCustomAttributeDefinitionResponse.php @@ -51,6 +51,7 @@ public function getCustomAttributeDefinition(): ?CustomAttributeDefinition public function setCustomAttributeDefinition(?CustomAttributeDefinition $value = null): self { $this->customAttributeDefinition = $value; + $this->_setField('customAttributeDefinition'); return $this; } @@ -68,6 +69,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/CreateOrderCustomAttributeDefinitionResponse.php b/src/Types/CreateOrderCustomAttributeDefinitionResponse.php index 023ca42a..8b0aac85 100644 --- a/src/Types/CreateOrderCustomAttributeDefinitionResponse.php +++ b/src/Types/CreateOrderCustomAttributeDefinitionResponse.php @@ -50,6 +50,7 @@ public function getCustomAttributeDefinition(): ?CustomAttributeDefinition public function setCustomAttributeDefinition(?CustomAttributeDefinition $value = null): self { $this->customAttributeDefinition = $value; + $this->_setField('customAttributeDefinition'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/CreateOrderRequest.php b/src/Types/CreateOrderRequest.php index f18a8a8c..50a109a6 100644 --- a/src/Types/CreateOrderRequest.php +++ b/src/Types/CreateOrderRequest.php @@ -58,6 +58,7 @@ public function getOrder(): ?Order public function setOrder(?Order $value = null): self { $this->order = $value; + $this->_setField('order'); return $this; } @@ -75,6 +76,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } diff --git a/src/Types/CreateOrderResponse.php b/src/Types/CreateOrderResponse.php index b96b2b31..cb872892 100644 --- a/src/Types/CreateOrderResponse.php +++ b/src/Types/CreateOrderResponse.php @@ -53,6 +53,7 @@ public function getOrder(): ?Order public function setOrder(?Order $value = null): self { $this->order = $value; + $this->_setField('order'); return $this; } @@ -70,6 +71,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/CreatePaymentLinkResponse.php b/src/Types/CreatePaymentLinkResponse.php index 849f0cd2..2c9bc92c 100644 --- a/src/Types/CreatePaymentLinkResponse.php +++ b/src/Types/CreatePaymentLinkResponse.php @@ -55,6 +55,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -72,6 +73,7 @@ public function getPaymentLink(): ?PaymentLink public function setPaymentLink(?PaymentLink $value = null): self { $this->paymentLink = $value; + $this->_setField('paymentLink'); return $this; } @@ -89,6 +91,7 @@ public function getRelatedResources(): ?PaymentLinkRelatedResources public function setRelatedResources(?PaymentLinkRelatedResources $value = null): self { $this->relatedResources = $value; + $this->_setField('relatedResources'); return $this; } diff --git a/src/Types/CreatePaymentResponse.php b/src/Types/CreatePaymentResponse.php index e32e0197..59485df9 100644 --- a/src/Types/CreatePaymentResponse.php +++ b/src/Types/CreatePaymentResponse.php @@ -53,6 +53,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -70,6 +71,7 @@ public function getPayment(): ?Payment public function setPayment(?Payment $value = null): self { $this->payment = $value; + $this->_setField('payment'); return $this; } diff --git a/src/Types/CreateScheduledShiftResponse.php b/src/Types/CreateScheduledShiftResponse.php index 3c3e80e9..f559b8e3 100644 --- a/src/Types/CreateScheduledShiftResponse.php +++ b/src/Types/CreateScheduledShiftResponse.php @@ -55,6 +55,7 @@ public function getScheduledShift(): ?ScheduledShift public function setScheduledShift(?ScheduledShift $value = null): self { $this->scheduledShift = $value; + $this->_setField('scheduledShift'); return $this; } @@ -72,6 +73,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/CreateShiftResponse.php b/src/Types/CreateShiftResponse.php index cc3cf68c..be7ffd72 100644 --- a/src/Types/CreateShiftResponse.php +++ b/src/Types/CreateShiftResponse.php @@ -52,6 +52,7 @@ public function getShift(): ?Shift public function setShift(?Shift $value = null): self { $this->shift = $value; + $this->_setField('shift'); return $this; } @@ -69,6 +70,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/CreateSubscriptionResponse.php b/src/Types/CreateSubscriptionResponse.php index eee2dd08..e5acc0e2 100644 --- a/src/Types/CreateSubscriptionResponse.php +++ b/src/Types/CreateSubscriptionResponse.php @@ -56,6 +56,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -73,6 +74,7 @@ public function getSubscription(): ?Subscription public function setSubscription(?Subscription $value = null): self { $this->subscription = $value; + $this->_setField('subscription'); return $this; } diff --git a/src/Types/CreateTeamMemberRequest.php b/src/Types/CreateTeamMemberRequest.php index 3adea9d0..65d7c2d6 100644 --- a/src/Types/CreateTeamMemberRequest.php +++ b/src/Types/CreateTeamMemberRequest.php @@ -58,6 +58,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -75,6 +76,7 @@ public function getTeamMember(): ?TeamMember public function setTeamMember(?TeamMember $value = null): self { $this->teamMember = $value; + $this->_setField('teamMember'); return $this; } diff --git a/src/Types/CreateTeamMemberResponse.php b/src/Types/CreateTeamMemberResponse.php index 19d94043..d045535b 100644 --- a/src/Types/CreateTeamMemberResponse.php +++ b/src/Types/CreateTeamMemberResponse.php @@ -50,6 +50,7 @@ public function getTeamMember(): ?TeamMember public function setTeamMember(?TeamMember $value = null): self { $this->teamMember = $value; + $this->_setField('teamMember'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/CreateTerminalActionResponse.php b/src/Types/CreateTerminalActionResponse.php index ce8685a3..616ee90e 100644 --- a/src/Types/CreateTerminalActionResponse.php +++ b/src/Types/CreateTerminalActionResponse.php @@ -47,6 +47,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -64,6 +65,7 @@ public function getAction(): ?TerminalAction public function setAction(?TerminalAction $value = null): self { $this->action = $value; + $this->_setField('action'); return $this; } diff --git a/src/Types/CreateTerminalCheckoutResponse.php b/src/Types/CreateTerminalCheckoutResponse.php index 563900f6..bf816a18 100644 --- a/src/Types/CreateTerminalCheckoutResponse.php +++ b/src/Types/CreateTerminalCheckoutResponse.php @@ -47,6 +47,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -64,6 +65,7 @@ public function getCheckout(): ?TerminalCheckout public function setCheckout(?TerminalCheckout $value = null): self { $this->checkout = $value; + $this->_setField('checkout'); return $this; } diff --git a/src/Types/CreateTerminalRefundResponse.php b/src/Types/CreateTerminalRefundResponse.php index 181b899a..921f34fc 100644 --- a/src/Types/CreateTerminalRefundResponse.php +++ b/src/Types/CreateTerminalRefundResponse.php @@ -47,6 +47,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -64,6 +65,7 @@ public function getRefund(): ?TerminalRefund public function setRefund(?TerminalRefund $value = null): self { $this->refund = $value; + $this->_setField('refund'); return $this; } diff --git a/src/Types/CreateTimecardResponse.php b/src/Types/CreateTimecardResponse.php index fceaab12..b7055ebb 100644 --- a/src/Types/CreateTimecardResponse.php +++ b/src/Types/CreateTimecardResponse.php @@ -52,6 +52,7 @@ public function getTimecard(): ?Timecard public function setTimecard(?Timecard $value = null): self { $this->timecard = $value; + $this->_setField('timecard'); return $this; } @@ -69,6 +70,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/CreateTransferOrderData.php b/src/Types/CreateTransferOrderData.php index fac01d5d..69f8242a 100644 --- a/src/Types/CreateTransferOrderData.php +++ b/src/Types/CreateTransferOrderData.php @@ -101,6 +101,7 @@ public function getSourceLocationId(): string public function setSourceLocationId(string $value): self { $this->sourceLocationId = $value; + $this->_setField('sourceLocationId'); return $this; } @@ -118,6 +119,7 @@ public function getDestinationLocationId(): string public function setDestinationLocationId(string $value): self { $this->destinationLocationId = $value; + $this->_setField('destinationLocationId'); return $this; } @@ -135,6 +137,7 @@ public function getExpectedAt(): ?string public function setExpectedAt(?string $value = null): self { $this->expectedAt = $value; + $this->_setField('expectedAt'); return $this; } @@ -152,6 +155,7 @@ public function getNotes(): ?string public function setNotes(?string $value = null): self { $this->notes = $value; + $this->_setField('notes'); return $this; } @@ -169,6 +173,7 @@ public function getTrackingNumber(): ?string public function setTrackingNumber(?string $value = null): self { $this->trackingNumber = $value; + $this->_setField('trackingNumber'); return $this; } @@ -186,6 +191,7 @@ public function getCreatedByTeamMemberId(): ?string public function setCreatedByTeamMemberId(?string $value = null): self { $this->createdByTeamMemberId = $value; + $this->_setField('createdByTeamMemberId'); return $this; } @@ -203,6 +209,7 @@ public function getLineItems(): ?array public function setLineItems(?array $value = null): self { $this->lineItems = $value; + $this->_setField('lineItems'); return $this; } diff --git a/src/Types/CreateTransferOrderLineData.php b/src/Types/CreateTransferOrderLineData.php index f8389a96..894a644e 100644 --- a/src/Types/CreateTransferOrderLineData.php +++ b/src/Types/CreateTransferOrderLineData.php @@ -56,6 +56,7 @@ public function getItemVariationId(): string public function setItemVariationId(string $value): self { $this->itemVariationId = $value; + $this->_setField('itemVariationId'); return $this; } @@ -73,6 +74,7 @@ public function getQuantityOrdered(): string public function setQuantityOrdered(string $value): self { $this->quantityOrdered = $value; + $this->_setField('quantityOrdered'); return $this; } diff --git a/src/Types/CreateTransferOrderResponse.php b/src/Types/CreateTransferOrderResponse.php index 34a44621..4e5f584e 100644 --- a/src/Types/CreateTransferOrderResponse.php +++ b/src/Types/CreateTransferOrderResponse.php @@ -50,6 +50,7 @@ public function getTransferOrder(): ?TransferOrder public function setTransferOrder(?TransferOrder $value = null): self { $this->transferOrder = $value; + $this->_setField('transferOrder'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/CreateVendorResponse.php b/src/Types/CreateVendorResponse.php index 805421d0..f07ae76f 100644 --- a/src/Types/CreateVendorResponse.php +++ b/src/Types/CreateVendorResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getVendor(): ?Vendor public function setVendor(?Vendor $value = null): self { $this->vendor = $value; + $this->_setField('vendor'); return $this; } diff --git a/src/Types/CreateWebhookSubscriptionResponse.php b/src/Types/CreateWebhookSubscriptionResponse.php index 5c1d54e8..4e21fe12 100644 --- a/src/Types/CreateWebhookSubscriptionResponse.php +++ b/src/Types/CreateWebhookSubscriptionResponse.php @@ -54,6 +54,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -71,6 +72,7 @@ public function getSubscription(): ?WebhookSubscription public function setSubscription(?WebhookSubscription $value = null): self { $this->subscription = $value; + $this->_setField('subscription'); return $this; } diff --git a/src/Types/CustomAttribute.php b/src/Types/CustomAttribute.php index c7d68cbb..c5e9efb1 100644 --- a/src/Types/CustomAttribute.php +++ b/src/Types/CustomAttribute.php @@ -123,6 +123,7 @@ public function getKey(): ?string public function setKey(?string $value = null): self { $this->key = $value; + $this->_setField('key'); return $this; } @@ -140,6 +141,7 @@ public function getValue(): mixed public function setValue(mixed $value = null): self { $this->value = $value; + $this->_setField('value'); return $this; } @@ -157,6 +159,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -174,6 +177,7 @@ public function getVisibility(): ?string public function setVisibility(?string $value = null): self { $this->visibility = $value; + $this->_setField('visibility'); return $this; } @@ -191,6 +195,7 @@ public function getDefinition(): ?CustomAttributeDefinition public function setDefinition(?CustomAttributeDefinition $value = null): self { $this->definition = $value; + $this->_setField('definition'); return $this; } @@ -208,6 +213,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -225,6 +231,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } diff --git a/src/Types/CustomAttributeDefinition.php b/src/Types/CustomAttributeDefinition.php index 2a599c82..6328983d 100644 --- a/src/Types/CustomAttributeDefinition.php +++ b/src/Types/CustomAttributeDefinition.php @@ -144,6 +144,7 @@ public function getKey(): ?string public function setKey(?string $value = null): self { $this->key = $value; + $this->_setField('key'); return $this; } @@ -161,6 +162,7 @@ public function getSchema(): ?array public function setSchema(?array $value = null): self { $this->schema = $value; + $this->_setField('schema'); return $this; } @@ -178,6 +180,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -195,6 +198,7 @@ public function getDescription(): ?string public function setDescription(?string $value = null): self { $this->description = $value; + $this->_setField('description'); return $this; } @@ -212,6 +216,7 @@ public function getVisibility(): ?string public function setVisibility(?string $value = null): self { $this->visibility = $value; + $this->_setField('visibility'); return $this; } @@ -229,6 +234,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -246,6 +252,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -263,6 +270,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } diff --git a/src/Types/CustomAttributeDefinitionEventData.php b/src/Types/CustomAttributeDefinitionEventData.php index e9c9d3d3..9aa11f95 100644 --- a/src/Types/CustomAttributeDefinitionEventData.php +++ b/src/Types/CustomAttributeDefinitionEventData.php @@ -58,6 +58,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -75,6 +76,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -92,6 +94,7 @@ public function getObject(): ?CustomAttributeDefinitionEventDataObject public function setObject(?CustomAttributeDefinitionEventDataObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/CustomAttributeDefinitionEventDataObject.php b/src/Types/CustomAttributeDefinitionEventDataObject.php index 1517fada..757e1f18 100644 --- a/src/Types/CustomAttributeDefinitionEventDataObject.php +++ b/src/Types/CustomAttributeDefinitionEventDataObject.php @@ -38,6 +38,7 @@ public function getCustomAttributeDefinition(): ?CustomAttributeDefinition public function setCustomAttributeDefinition(?CustomAttributeDefinition $value = null): self { $this->customAttributeDefinition = $value; + $this->_setField('customAttributeDefinition'); return $this; } diff --git a/src/Types/CustomAttributeEventData.php b/src/Types/CustomAttributeEventData.php index 69de8244..875d93d1 100644 --- a/src/Types/CustomAttributeEventData.php +++ b/src/Types/CustomAttributeEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?CustomAttributeEventDataObject public function setObject(?CustomAttributeEventDataObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/CustomAttributeEventDataObject.php b/src/Types/CustomAttributeEventDataObject.php index 0d6fcb5b..f0b9d017 100644 --- a/src/Types/CustomAttributeEventDataObject.php +++ b/src/Types/CustomAttributeEventDataObject.php @@ -38,6 +38,7 @@ public function getCustomAttribute(): ?CustomAttribute public function setCustomAttribute(?CustomAttribute $value = null): self { $this->customAttribute = $value; + $this->_setField('customAttribute'); return $this; } diff --git a/src/Types/CustomAttributeFilter.php b/src/Types/CustomAttributeFilter.php index 792187b9..a8614ef4 100644 --- a/src/Types/CustomAttributeFilter.php +++ b/src/Types/CustomAttributeFilter.php @@ -108,6 +108,7 @@ public function getCustomAttributeDefinitionId(): ?string public function setCustomAttributeDefinitionId(?string $value = null): self { $this->customAttributeDefinitionId = $value; + $this->_setField('customAttributeDefinitionId'); return $this; } @@ -125,6 +126,7 @@ public function getKey(): ?string public function setKey(?string $value = null): self { $this->key = $value; + $this->_setField('key'); return $this; } @@ -142,6 +144,7 @@ public function getStringFilter(): ?string public function setStringFilter(?string $value = null): self { $this->stringFilter = $value; + $this->_setField('stringFilter'); return $this; } @@ -159,6 +162,7 @@ public function getNumberFilter(): ?Range public function setNumberFilter(?Range $value = null): self { $this->numberFilter = $value; + $this->_setField('numberFilter'); return $this; } @@ -176,6 +180,7 @@ public function getSelectionUidsFilter(): ?array public function setSelectionUidsFilter(?array $value = null): self { $this->selectionUidsFilter = $value; + $this->_setField('selectionUidsFilter'); return $this; } @@ -193,6 +198,7 @@ public function getBoolFilter(): ?bool public function setBoolFilter(?bool $value = null): self { $this->boolFilter = $value; + $this->_setField('boolFilter'); return $this; } diff --git a/src/Types/CustomField.php b/src/Types/CustomField.php index 8462a927..9bbe195c 100644 --- a/src/Types/CustomField.php +++ b/src/Types/CustomField.php @@ -43,6 +43,7 @@ public function getTitle(): string public function setTitle(string $value): self { $this->title = $value; + $this->_setField('title'); return $this; } diff --git a/src/Types/Customer.php b/src/Types/Customer.php index c2898013..3a6e86ad 100644 --- a/src/Types/Customer.php +++ b/src/Types/Customer.php @@ -203,6 +203,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -220,6 +221,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -237,6 +239,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -254,6 +257,7 @@ public function getGivenName(): ?string public function setGivenName(?string $value = null): self { $this->givenName = $value; + $this->_setField('givenName'); return $this; } @@ -271,6 +275,7 @@ public function getFamilyName(): ?string public function setFamilyName(?string $value = null): self { $this->familyName = $value; + $this->_setField('familyName'); return $this; } @@ -288,6 +293,7 @@ public function getNickname(): ?string public function setNickname(?string $value = null): self { $this->nickname = $value; + $this->_setField('nickname'); return $this; } @@ -305,6 +311,7 @@ public function getCompanyName(): ?string public function setCompanyName(?string $value = null): self { $this->companyName = $value; + $this->_setField('companyName'); return $this; } @@ -322,6 +329,7 @@ public function getEmailAddress(): ?string public function setEmailAddress(?string $value = null): self { $this->emailAddress = $value; + $this->_setField('emailAddress'); return $this; } @@ -339,6 +347,7 @@ public function getAddress(): ?Address public function setAddress(?Address $value = null): self { $this->address = $value; + $this->_setField('address'); return $this; } @@ -356,6 +365,7 @@ public function getPhoneNumber(): ?string public function setPhoneNumber(?string $value = null): self { $this->phoneNumber = $value; + $this->_setField('phoneNumber'); return $this; } @@ -373,6 +383,7 @@ public function getBirthday(): ?string public function setBirthday(?string $value = null): self { $this->birthday = $value; + $this->_setField('birthday'); return $this; } @@ -390,6 +401,7 @@ public function getReferenceId(): ?string public function setReferenceId(?string $value = null): self { $this->referenceId = $value; + $this->_setField('referenceId'); return $this; } @@ -407,6 +419,7 @@ public function getNote(): ?string public function setNote(?string $value = null): self { $this->note = $value; + $this->_setField('note'); return $this; } @@ -424,6 +437,7 @@ public function getPreferences(): ?CustomerPreferences public function setPreferences(?CustomerPreferences $value = null): self { $this->preferences = $value; + $this->_setField('preferences'); return $this; } @@ -441,6 +455,7 @@ public function getCreationSource(): ?string public function setCreationSource(?string $value = null): self { $this->creationSource = $value; + $this->_setField('creationSource'); return $this; } @@ -458,6 +473,7 @@ public function getGroupIds(): ?array public function setGroupIds(?array $value = null): self { $this->groupIds = $value; + $this->_setField('groupIds'); return $this; } @@ -475,6 +491,7 @@ public function getSegmentIds(): ?array public function setSegmentIds(?array $value = null): self { $this->segmentIds = $value; + $this->_setField('segmentIds'); return $this; } @@ -492,6 +509,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -509,6 +527,7 @@ public function getTaxIds(): ?CustomerTaxIds public function setTaxIds(?CustomerTaxIds $value = null): self { $this->taxIds = $value; + $this->_setField('taxIds'); return $this; } diff --git a/src/Types/CustomerAddressFilter.php b/src/Types/CustomerAddressFilter.php index c9bcbbfb..0904e41c 100644 --- a/src/Types/CustomerAddressFilter.php +++ b/src/Types/CustomerAddressFilter.php @@ -53,6 +53,7 @@ public function getPostalCode(): ?CustomerTextFilter public function setPostalCode(?CustomerTextFilter $value = null): self { $this->postalCode = $value; + $this->_setField('postalCode'); return $this; } @@ -70,6 +71,7 @@ public function getCountry(): ?string public function setCountry(?string $value = null): self { $this->country = $value; + $this->_setField('country'); return $this; } diff --git a/src/Types/CustomerCreatedEvent.php b/src/Types/CustomerCreatedEvent.php index b1823182..9c1a3657 100644 --- a/src/Types/CustomerCreatedEvent.php +++ b/src/Types/CustomerCreatedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?CustomerCreatedEventData public function setData(?CustomerCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CustomerCreatedEventData.php b/src/Types/CustomerCreatedEventData.php index c54f9c65..d86322a3 100644 --- a/src/Types/CustomerCreatedEventData.php +++ b/src/Types/CustomerCreatedEventData.php @@ -57,6 +57,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -74,6 +75,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -91,6 +93,7 @@ public function getObject(): ?CustomerCreatedEventObject public function setObject(?CustomerCreatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/CustomerCreatedEventEventContext.php b/src/Types/CustomerCreatedEventEventContext.php index 6f50d463..30c211d0 100644 --- a/src/Types/CustomerCreatedEventEventContext.php +++ b/src/Types/CustomerCreatedEventEventContext.php @@ -41,6 +41,7 @@ public function getMerge(): ?CustomerCreatedEventEventContextMerge public function setMerge(?CustomerCreatedEventEventContextMerge $value = null): self { $this->merge = $value; + $this->_setField('merge'); return $this; } diff --git a/src/Types/CustomerCreatedEventEventContextMerge.php b/src/Types/CustomerCreatedEventEventContextMerge.php index 4bc0f406..7d2f720e 100644 --- a/src/Types/CustomerCreatedEventEventContextMerge.php +++ b/src/Types/CustomerCreatedEventEventContextMerge.php @@ -50,6 +50,7 @@ public function getFromCustomerIds(): ?array public function setFromCustomerIds(?array $value = null): self { $this->fromCustomerIds = $value; + $this->_setField('fromCustomerIds'); return $this; } @@ -67,6 +68,7 @@ public function getToCustomerId(): ?string public function setToCustomerId(?string $value = null): self { $this->toCustomerId = $value; + $this->_setField('toCustomerId'); return $this; } diff --git a/src/Types/CustomerCreatedEventObject.php b/src/Types/CustomerCreatedEventObject.php index 305d04ea..a1ea77ec 100644 --- a/src/Types/CustomerCreatedEventObject.php +++ b/src/Types/CustomerCreatedEventObject.php @@ -49,6 +49,7 @@ public function getCustomer(): ?Customer public function setCustomer(?Customer $value = null): self { $this->customer = $value; + $this->_setField('customer'); return $this; } @@ -66,6 +67,7 @@ public function getEventContext(): ?CustomerCreatedEventEventContext public function setEventContext(?CustomerCreatedEventEventContext $value = null): self { $this->eventContext = $value; + $this->_setField('eventContext'); return $this; } diff --git a/src/Types/CustomerCreationSourceFilter.php b/src/Types/CustomerCreationSourceFilter.php index b160eba0..1f881421 100644 --- a/src/Types/CustomerCreationSourceFilter.php +++ b/src/Types/CustomerCreationSourceFilter.php @@ -62,6 +62,7 @@ public function getValues(): ?array public function setValues(?array $value = null): self { $this->values = $value; + $this->_setField('values'); return $this; } @@ -79,6 +80,7 @@ public function getRule(): ?string public function setRule(?string $value = null): self { $this->rule = $value; + $this->_setField('rule'); return $this; } diff --git a/src/Types/CustomerCustomAttributeDefinitionCreatedEvent.php b/src/Types/CustomerCustomAttributeDefinitionCreatedEvent.php index 9793d370..07b3e390 100644 --- a/src/Types/CustomerCustomAttributeDefinitionCreatedEvent.php +++ b/src/Types/CustomerCustomAttributeDefinitionCreatedEvent.php @@ -77,6 +77,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -94,6 +95,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -111,6 +113,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -128,6 +131,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -145,6 +149,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CustomerCustomAttributeDefinitionCreatedPublicEvent.php b/src/Types/CustomerCustomAttributeDefinitionCreatedPublicEvent.php index 0a67569a..b02e4b1d 100644 --- a/src/Types/CustomerCustomAttributeDefinitionCreatedPublicEvent.php +++ b/src/Types/CustomerCustomAttributeDefinitionCreatedPublicEvent.php @@ -79,6 +79,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -96,6 +97,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -113,6 +115,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -130,6 +133,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -147,6 +151,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CustomerCustomAttributeDefinitionDeletedEvent.php b/src/Types/CustomerCustomAttributeDefinitionDeletedEvent.php index 95c2afae..9ae7a176 100644 --- a/src/Types/CustomerCustomAttributeDefinitionDeletedEvent.php +++ b/src/Types/CustomerCustomAttributeDefinitionDeletedEvent.php @@ -78,6 +78,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -95,6 +96,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -112,6 +114,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -129,6 +132,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -146,6 +150,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CustomerCustomAttributeDefinitionDeletedPublicEvent.php b/src/Types/CustomerCustomAttributeDefinitionDeletedPublicEvent.php index 4587782e..97133fcf 100644 --- a/src/Types/CustomerCustomAttributeDefinitionDeletedPublicEvent.php +++ b/src/Types/CustomerCustomAttributeDefinitionDeletedPublicEvent.php @@ -79,6 +79,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -96,6 +97,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -113,6 +115,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -130,6 +133,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -147,6 +151,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CustomerCustomAttributeDefinitionOwnedCreatedEvent.php b/src/Types/CustomerCustomAttributeDefinitionOwnedCreatedEvent.php index e21eb3be..5653c3b6 100644 --- a/src/Types/CustomerCustomAttributeDefinitionOwnedCreatedEvent.php +++ b/src/Types/CustomerCustomAttributeDefinitionOwnedCreatedEvent.php @@ -74,6 +74,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -91,6 +92,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -108,6 +110,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -125,6 +128,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -142,6 +146,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CustomerCustomAttributeDefinitionOwnedDeletedEvent.php b/src/Types/CustomerCustomAttributeDefinitionOwnedDeletedEvent.php index 4bb9efbd..6aa4718b 100644 --- a/src/Types/CustomerCustomAttributeDefinitionOwnedDeletedEvent.php +++ b/src/Types/CustomerCustomAttributeDefinitionOwnedDeletedEvent.php @@ -75,6 +75,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -92,6 +93,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -109,6 +111,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -126,6 +129,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -143,6 +147,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CustomerCustomAttributeDefinitionOwnedUpdatedEvent.php b/src/Types/CustomerCustomAttributeDefinitionOwnedUpdatedEvent.php index a52d96dd..08506694 100644 --- a/src/Types/CustomerCustomAttributeDefinitionOwnedUpdatedEvent.php +++ b/src/Types/CustomerCustomAttributeDefinitionOwnedUpdatedEvent.php @@ -75,6 +75,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -92,6 +93,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -109,6 +111,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -126,6 +129,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -143,6 +147,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CustomerCustomAttributeDefinitionUpdatedEvent.php b/src/Types/CustomerCustomAttributeDefinitionUpdatedEvent.php index c851b9c9..761bd23c 100644 --- a/src/Types/CustomerCustomAttributeDefinitionUpdatedEvent.php +++ b/src/Types/CustomerCustomAttributeDefinitionUpdatedEvent.php @@ -78,6 +78,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -95,6 +96,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -112,6 +114,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -129,6 +132,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -146,6 +150,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CustomerCustomAttributeDefinitionUpdatedPublicEvent.php b/src/Types/CustomerCustomAttributeDefinitionUpdatedPublicEvent.php index f06dd3de..87aa10d9 100644 --- a/src/Types/CustomerCustomAttributeDefinitionUpdatedPublicEvent.php +++ b/src/Types/CustomerCustomAttributeDefinitionUpdatedPublicEvent.php @@ -79,6 +79,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -96,6 +97,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -113,6 +115,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -130,6 +133,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -147,6 +151,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CustomerCustomAttributeDefinitionVisibleCreatedEvent.php b/src/Types/CustomerCustomAttributeDefinitionVisibleCreatedEvent.php index 63346ca6..00108b89 100644 --- a/src/Types/CustomerCustomAttributeDefinitionVisibleCreatedEvent.php +++ b/src/Types/CustomerCustomAttributeDefinitionVisibleCreatedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CustomerCustomAttributeDefinitionVisibleDeletedEvent.php b/src/Types/CustomerCustomAttributeDefinitionVisibleDeletedEvent.php index 7754be1e..51590337 100644 --- a/src/Types/CustomerCustomAttributeDefinitionVisibleDeletedEvent.php +++ b/src/Types/CustomerCustomAttributeDefinitionVisibleDeletedEvent.php @@ -77,6 +77,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -94,6 +95,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -111,6 +113,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -128,6 +131,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -145,6 +149,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CustomerCustomAttributeDefinitionVisibleUpdatedEvent.php b/src/Types/CustomerCustomAttributeDefinitionVisibleUpdatedEvent.php index f4a25da3..c3ba6e9d 100644 --- a/src/Types/CustomerCustomAttributeDefinitionVisibleUpdatedEvent.php +++ b/src/Types/CustomerCustomAttributeDefinitionVisibleUpdatedEvent.php @@ -77,6 +77,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -94,6 +95,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -111,6 +113,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -128,6 +131,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -145,6 +149,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CustomerCustomAttributeDeletedEvent.php b/src/Types/CustomerCustomAttributeDeletedEvent.php index b1e61767..7e7d9cd4 100644 --- a/src/Types/CustomerCustomAttributeDeletedEvent.php +++ b/src/Types/CustomerCustomAttributeDeletedEvent.php @@ -79,6 +79,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -96,6 +97,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -113,6 +115,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -130,6 +133,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -147,6 +151,7 @@ public function getData(): ?CustomAttributeEventData public function setData(?CustomAttributeEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CustomerCustomAttributeDeletedPublicEvent.php b/src/Types/CustomerCustomAttributeDeletedPublicEvent.php index dd784133..b2ffa205 100644 --- a/src/Types/CustomerCustomAttributeDeletedPublicEvent.php +++ b/src/Types/CustomerCustomAttributeDeletedPublicEvent.php @@ -79,6 +79,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -96,6 +97,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -113,6 +115,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -130,6 +133,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -147,6 +151,7 @@ public function getData(): ?CustomAttributeEventData public function setData(?CustomAttributeEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CustomerCustomAttributeFilter.php b/src/Types/CustomerCustomAttributeFilter.php index 0cbd3c92..7a3e4294 100644 --- a/src/Types/CustomerCustomAttributeFilter.php +++ b/src/Types/CustomerCustomAttributeFilter.php @@ -72,6 +72,7 @@ public function getKey(): string public function setKey(string $value): self { $this->key = $value; + $this->_setField('key'); return $this; } @@ -89,6 +90,7 @@ public function getFilter(): ?CustomerCustomAttributeFilterValue public function setFilter(?CustomerCustomAttributeFilterValue $value = null): self { $this->filter = $value; + $this->_setField('filter'); return $this; } @@ -106,6 +108,7 @@ public function getUpdatedAt(): ?TimeRange public function setUpdatedAt(?TimeRange $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } diff --git a/src/Types/CustomerCustomAttributeFilterValue.php b/src/Types/CustomerCustomAttributeFilterValue.php index 5bd65000..5e703cb4 100644 --- a/src/Types/CustomerCustomAttributeFilterValue.php +++ b/src/Types/CustomerCustomAttributeFilterValue.php @@ -151,6 +151,7 @@ public function getEmail(): ?CustomerTextFilter public function setEmail(?CustomerTextFilter $value = null): self { $this->email = $value; + $this->_setField('email'); return $this; } @@ -168,6 +169,7 @@ public function getPhone(): ?CustomerTextFilter public function setPhone(?CustomerTextFilter $value = null): self { $this->phone = $value; + $this->_setField('phone'); return $this; } @@ -185,6 +187,7 @@ public function getText(): ?CustomerTextFilter public function setText(?CustomerTextFilter $value = null): self { $this->text = $value; + $this->_setField('text'); return $this; } @@ -202,6 +205,7 @@ public function getSelection(): ?FilterValue public function setSelection(?FilterValue $value = null): self { $this->selection = $value; + $this->_setField('selection'); return $this; } @@ -219,6 +223,7 @@ public function getDate(): ?TimeRange public function setDate(?TimeRange $value = null): self { $this->date = $value; + $this->_setField('date'); return $this; } @@ -236,6 +241,7 @@ public function getNumber(): ?FloatNumberRange public function setNumber(?FloatNumberRange $value = null): self { $this->number = $value; + $this->_setField('number'); return $this; } @@ -253,6 +259,7 @@ public function getBoolean(): ?bool public function setBoolean(?bool $value = null): self { $this->boolean = $value; + $this->_setField('boolean'); return $this; } @@ -270,6 +277,7 @@ public function getAddress(): ?CustomerAddressFilter public function setAddress(?CustomerAddressFilter $value = null): self { $this->address = $value; + $this->_setField('address'); return $this; } diff --git a/src/Types/CustomerCustomAttributeFilters.php b/src/Types/CustomerCustomAttributeFilters.php index 10eecc1c..c142e528 100644 --- a/src/Types/CustomerCustomAttributeFilters.php +++ b/src/Types/CustomerCustomAttributeFilters.php @@ -47,6 +47,7 @@ public function getFilters(): ?array public function setFilters(?array $value = null): self { $this->filters = $value; + $this->_setField('filters'); return $this; } diff --git a/src/Types/CustomerCustomAttributeOwnedDeletedEvent.php b/src/Types/CustomerCustomAttributeOwnedDeletedEvent.php index f2320952..6114f6b4 100644 --- a/src/Types/CustomerCustomAttributeOwnedDeletedEvent.php +++ b/src/Types/CustomerCustomAttributeOwnedDeletedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?CustomAttributeEventData public function setData(?CustomAttributeEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CustomerCustomAttributeOwnedUpdatedEvent.php b/src/Types/CustomerCustomAttributeOwnedUpdatedEvent.php index 06f28358..a4c8ddb0 100644 --- a/src/Types/CustomerCustomAttributeOwnedUpdatedEvent.php +++ b/src/Types/CustomerCustomAttributeOwnedUpdatedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?CustomAttributeEventData public function setData(?CustomAttributeEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CustomerCustomAttributeUpdatedEvent.php b/src/Types/CustomerCustomAttributeUpdatedEvent.php index bf4a5551..5a8ebfe9 100644 --- a/src/Types/CustomerCustomAttributeUpdatedEvent.php +++ b/src/Types/CustomerCustomAttributeUpdatedEvent.php @@ -79,6 +79,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -96,6 +97,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -113,6 +115,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -130,6 +133,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -147,6 +151,7 @@ public function getData(): ?CustomAttributeEventData public function setData(?CustomAttributeEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CustomerCustomAttributeUpdatedPublicEvent.php b/src/Types/CustomerCustomAttributeUpdatedPublicEvent.php index 32292619..fb1318a5 100644 --- a/src/Types/CustomerCustomAttributeUpdatedPublicEvent.php +++ b/src/Types/CustomerCustomAttributeUpdatedPublicEvent.php @@ -79,6 +79,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -96,6 +97,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -113,6 +115,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -130,6 +133,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -147,6 +151,7 @@ public function getData(): ?CustomAttributeEventData public function setData(?CustomAttributeEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CustomerCustomAttributeVisibleDeletedEvent.php b/src/Types/CustomerCustomAttributeVisibleDeletedEvent.php index 16d76885..8fbc6799 100644 --- a/src/Types/CustomerCustomAttributeVisibleDeletedEvent.php +++ b/src/Types/CustomerCustomAttributeVisibleDeletedEvent.php @@ -81,6 +81,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -98,6 +99,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -115,6 +117,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -132,6 +135,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -149,6 +153,7 @@ public function getData(): ?CustomAttributeEventData public function setData(?CustomAttributeEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CustomerCustomAttributeVisibleUpdatedEvent.php b/src/Types/CustomerCustomAttributeVisibleUpdatedEvent.php index 0e21b655..e2e6c96e 100644 --- a/src/Types/CustomerCustomAttributeVisibleUpdatedEvent.php +++ b/src/Types/CustomerCustomAttributeVisibleUpdatedEvent.php @@ -81,6 +81,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -98,6 +99,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -115,6 +117,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -132,6 +135,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -149,6 +153,7 @@ public function getData(): ?CustomAttributeEventData public function setData(?CustomAttributeEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CustomerDeletedEvent.php b/src/Types/CustomerDeletedEvent.php index f77d2ee5..f9f4e9f4 100644 --- a/src/Types/CustomerDeletedEvent.php +++ b/src/Types/CustomerDeletedEvent.php @@ -75,6 +75,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -92,6 +93,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -109,6 +111,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -126,6 +129,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -143,6 +147,7 @@ public function getData(): ?CustomerDeletedEventData public function setData(?CustomerDeletedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CustomerDeletedEventData.php b/src/Types/CustomerDeletedEventData.php index 8b0266ff..98467191 100644 --- a/src/Types/CustomerDeletedEventData.php +++ b/src/Types/CustomerDeletedEventData.php @@ -57,6 +57,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -74,6 +75,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -91,6 +93,7 @@ public function getObject(): ?CustomerDeletedEventObject public function setObject(?CustomerDeletedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/CustomerDeletedEventEventContext.php b/src/Types/CustomerDeletedEventEventContext.php index 84455c49..2ac6c45c 100644 --- a/src/Types/CustomerDeletedEventEventContext.php +++ b/src/Types/CustomerDeletedEventEventContext.php @@ -41,6 +41,7 @@ public function getMerge(): ?CustomerDeletedEventEventContextMerge public function setMerge(?CustomerDeletedEventEventContextMerge $value = null): self { $this->merge = $value; + $this->_setField('merge'); return $this; } diff --git a/src/Types/CustomerDeletedEventEventContextMerge.php b/src/Types/CustomerDeletedEventEventContextMerge.php index 47b0b5fa..a52b2651 100644 --- a/src/Types/CustomerDeletedEventEventContextMerge.php +++ b/src/Types/CustomerDeletedEventEventContextMerge.php @@ -50,6 +50,7 @@ public function getFromCustomerIds(): ?array public function setFromCustomerIds(?array $value = null): self { $this->fromCustomerIds = $value; + $this->_setField('fromCustomerIds'); return $this; } @@ -67,6 +68,7 @@ public function getToCustomerId(): ?string public function setToCustomerId(?string $value = null): self { $this->toCustomerId = $value; + $this->_setField('toCustomerId'); return $this; } diff --git a/src/Types/CustomerDeletedEventObject.php b/src/Types/CustomerDeletedEventObject.php index b384c8eb..3dbf2071 100644 --- a/src/Types/CustomerDeletedEventObject.php +++ b/src/Types/CustomerDeletedEventObject.php @@ -49,6 +49,7 @@ public function getCustomer(): ?Customer public function setCustomer(?Customer $value = null): self { $this->customer = $value; + $this->_setField('customer'); return $this; } @@ -66,6 +67,7 @@ public function getEventContext(): ?CustomerDeletedEventEventContext public function setEventContext(?CustomerDeletedEventEventContext $value = null): self { $this->eventContext = $value; + $this->_setField('eventContext'); return $this; } diff --git a/src/Types/CustomerDetails.php b/src/Types/CustomerDetails.php index b7546c1b..6edbd4d9 100644 --- a/src/Types/CustomerDetails.php +++ b/src/Types/CustomerDetails.php @@ -52,6 +52,7 @@ public function getCustomerInitiated(): ?bool public function setCustomerInitiated(?bool $value = null): self { $this->customerInitiated = $value; + $this->_setField('customerInitiated'); return $this; } @@ -69,6 +70,7 @@ public function getSellerKeyedIn(): ?bool public function setSellerKeyedIn(?bool $value = null): self { $this->sellerKeyedIn = $value; + $this->_setField('sellerKeyedIn'); return $this; } diff --git a/src/Types/CustomerFilter.php b/src/Types/CustomerFilter.php index 7dc4b2c7..c7f6e208 100644 --- a/src/Types/CustomerFilter.php +++ b/src/Types/CustomerFilter.php @@ -202,6 +202,7 @@ public function getCreationSource(): ?CustomerCreationSourceFilter public function setCreationSource(?CustomerCreationSourceFilter $value = null): self { $this->creationSource = $value; + $this->_setField('creationSource'); return $this; } @@ -219,6 +220,7 @@ public function getCreatedAt(): ?TimeRange public function setCreatedAt(?TimeRange $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -236,6 +238,7 @@ public function getUpdatedAt(): ?TimeRange public function setUpdatedAt(?TimeRange $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -253,6 +256,7 @@ public function getEmailAddress(): ?CustomerTextFilter public function setEmailAddress(?CustomerTextFilter $value = null): self { $this->emailAddress = $value; + $this->_setField('emailAddress'); return $this; } @@ -270,6 +274,7 @@ public function getPhoneNumber(): ?CustomerTextFilter public function setPhoneNumber(?CustomerTextFilter $value = null): self { $this->phoneNumber = $value; + $this->_setField('phoneNumber'); return $this; } @@ -287,6 +292,7 @@ public function getReferenceId(): ?CustomerTextFilter public function setReferenceId(?CustomerTextFilter $value = null): self { $this->referenceId = $value; + $this->_setField('referenceId'); return $this; } @@ -304,6 +310,7 @@ public function getGroupIds(): ?FilterValue public function setGroupIds(?FilterValue $value = null): self { $this->groupIds = $value; + $this->_setField('groupIds'); return $this; } @@ -321,6 +328,7 @@ public function getCustomAttribute(): ?CustomerCustomAttributeFilters public function setCustomAttribute(?CustomerCustomAttributeFilters $value = null): self { $this->customAttribute = $value; + $this->_setField('customAttribute'); return $this; } @@ -338,6 +346,7 @@ public function getSegmentIds(): ?FilterValue public function setSegmentIds(?FilterValue $value = null): self { $this->segmentIds = $value; + $this->_setField('segmentIds'); return $this; } diff --git a/src/Types/CustomerGroup.php b/src/Types/CustomerGroup.php index ae0e364f..0de71e19 100644 --- a/src/Types/CustomerGroup.php +++ b/src/Types/CustomerGroup.php @@ -68,6 +68,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -85,6 +86,7 @@ public function getName(): string public function setName(string $value): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -102,6 +104,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -119,6 +122,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } diff --git a/src/Types/CustomerPreferences.php b/src/Types/CustomerPreferences.php index e00a284f..b021e493 100644 --- a/src/Types/CustomerPreferences.php +++ b/src/Types/CustomerPreferences.php @@ -41,6 +41,7 @@ public function getEmailUnsubscribed(): ?bool public function setEmailUnsubscribed(?bool $value = null): self { $this->emailUnsubscribed = $value; + $this->_setField('emailUnsubscribed'); return $this; } diff --git a/src/Types/CustomerQuery.php b/src/Types/CustomerQuery.php index 5ecf28b4..6866e52f 100644 --- a/src/Types/CustomerQuery.php +++ b/src/Types/CustomerQuery.php @@ -58,6 +58,7 @@ public function getFilter(): ?CustomerFilter public function setFilter(?CustomerFilter $value = null): self { $this->filter = $value; + $this->_setField('filter'); return $this; } @@ -75,6 +76,7 @@ public function getSort(): ?CustomerSort public function setSort(?CustomerSort $value = null): self { $this->sort = $value; + $this->_setField('sort'); return $this; } diff --git a/src/Types/CustomerSegment.php b/src/Types/CustomerSegment.php index 94cf32db..9b695292 100644 --- a/src/Types/CustomerSegment.php +++ b/src/Types/CustomerSegment.php @@ -68,6 +68,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -85,6 +86,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -102,6 +104,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -119,6 +122,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } diff --git a/src/Types/CustomerSort.php b/src/Types/CustomerSort.php index 7ece32aa..9aacaffb 100644 --- a/src/Types/CustomerSort.php +++ b/src/Types/CustomerSort.php @@ -62,6 +62,7 @@ public function getField(): ?string public function setField(?string $value = null): self { $this->field = $value; + $this->_setField('field'); return $this; } @@ -79,6 +80,7 @@ public function getOrder(): ?string public function setOrder(?string $value = null): self { $this->order = $value; + $this->_setField('order'); return $this; } diff --git a/src/Types/CustomerTaxIds.php b/src/Types/CustomerTaxIds.php index 3c28c5c2..bd28ea64 100644 --- a/src/Types/CustomerTaxIds.php +++ b/src/Types/CustomerTaxIds.php @@ -42,6 +42,7 @@ public function getEuVat(): ?string public function setEuVat(?string $value = null): self { $this->euVat = $value; + $this->_setField('euVat'); return $this; } diff --git a/src/Types/CustomerTextFilter.php b/src/Types/CustomerTextFilter.php index cae3181f..c4fb9b0d 100644 --- a/src/Types/CustomerTextFilter.php +++ b/src/Types/CustomerTextFilter.php @@ -56,6 +56,7 @@ public function getExact(): ?string public function setExact(?string $value = null): self { $this->exact = $value; + $this->_setField('exact'); return $this; } @@ -73,6 +74,7 @@ public function getFuzzy(): ?string public function setFuzzy(?string $value = null): self { $this->fuzzy = $value; + $this->_setField('fuzzy'); return $this; } diff --git a/src/Types/CustomerUpdatedEvent.php b/src/Types/CustomerUpdatedEvent.php index 0c9d97b8..526cabd4 100644 --- a/src/Types/CustomerUpdatedEvent.php +++ b/src/Types/CustomerUpdatedEvent.php @@ -75,6 +75,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -92,6 +93,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -109,6 +111,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -126,6 +129,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -143,6 +147,7 @@ public function getData(): ?CustomerUpdatedEventData public function setData(?CustomerUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/CustomerUpdatedEventData.php b/src/Types/CustomerUpdatedEventData.php index be690c30..e65d4663 100644 --- a/src/Types/CustomerUpdatedEventData.php +++ b/src/Types/CustomerUpdatedEventData.php @@ -57,6 +57,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -74,6 +75,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -91,6 +93,7 @@ public function getObject(): ?CustomerUpdatedEventObject public function setObject(?CustomerUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/CustomerUpdatedEventObject.php b/src/Types/CustomerUpdatedEventObject.php index 1d003762..14d12009 100644 --- a/src/Types/CustomerUpdatedEventObject.php +++ b/src/Types/CustomerUpdatedEventObject.php @@ -41,6 +41,7 @@ public function getCustomer(): ?Customer public function setCustomer(?Customer $value = null): self { $this->customer = $value; + $this->_setField('customer'); return $this; } diff --git a/src/Types/DataCollectionOptions.php b/src/Types/DataCollectionOptions.php index e2743c2b..f9ecda4f 100644 --- a/src/Types/DataCollectionOptions.php +++ b/src/Types/DataCollectionOptions.php @@ -68,6 +68,7 @@ public function getTitle(): string public function setTitle(string $value): self { $this->title = $value; + $this->_setField('title'); return $this; } @@ -85,6 +86,7 @@ public function getBody(): string public function setBody(string $value): self { $this->body = $value; + $this->_setField('body'); return $this; } @@ -102,6 +104,7 @@ public function getInputType(): string public function setInputType(string $value): self { $this->inputType = $value; + $this->_setField('inputType'); return $this; } @@ -119,6 +122,7 @@ public function getCollectedData(): ?CollectedData public function setCollectedData(?CollectedData $value = null): self { $this->collectedData = $value; + $this->_setField('collectedData'); return $this; } diff --git a/src/Types/DateRange.php b/src/Types/DateRange.php index a0632783..1e3fe1e4 100644 --- a/src/Types/DateRange.php +++ b/src/Types/DateRange.php @@ -58,6 +58,7 @@ public function getStartDate(): ?string public function setStartDate(?string $value = null): self { $this->startDate = $value; + $this->_setField('startDate'); return $this; } @@ -75,6 +76,7 @@ public function getEndDate(): ?string public function setEndDate(?string $value = null): self { $this->endDate = $value; + $this->_setField('endDate'); return $this; } diff --git a/src/Types/DeleteBookingCustomAttributeDefinitionResponse.php b/src/Types/DeleteBookingCustomAttributeDefinitionResponse.php index 147b4f57..87fe45d5 100644 --- a/src/Types/DeleteBookingCustomAttributeDefinitionResponse.php +++ b/src/Types/DeleteBookingCustomAttributeDefinitionResponse.php @@ -43,6 +43,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/DeleteBookingCustomAttributeResponse.php b/src/Types/DeleteBookingCustomAttributeResponse.php index b0c4eff2..b818d935 100644 --- a/src/Types/DeleteBookingCustomAttributeResponse.php +++ b/src/Types/DeleteBookingCustomAttributeResponse.php @@ -43,6 +43,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/DeleteBreakTypeResponse.php b/src/Types/DeleteBreakTypeResponse.php index 3497f059..033d7159 100644 --- a/src/Types/DeleteBreakTypeResponse.php +++ b/src/Types/DeleteBreakTypeResponse.php @@ -43,6 +43,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/DeleteCatalogObjectResponse.php b/src/Types/DeleteCatalogObjectResponse.php index 5adbcd3d..33dfde4a 100644 --- a/src/Types/DeleteCatalogObjectResponse.php +++ b/src/Types/DeleteCatalogObjectResponse.php @@ -63,6 +63,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -80,6 +81,7 @@ public function getDeletedObjectIds(): ?array public function setDeletedObjectIds(?array $value = null): self { $this->deletedObjectIds = $value; + $this->_setField('deletedObjectIds'); return $this; } @@ -97,6 +99,7 @@ public function getDeletedAt(): ?string public function setDeletedAt(?string $value = null): self { $this->deletedAt = $value; + $this->_setField('deletedAt'); return $this; } diff --git a/src/Types/DeleteCustomerCardResponse.php b/src/Types/DeleteCustomerCardResponse.php index a99ba2cd..cf0f2de6 100644 --- a/src/Types/DeleteCustomerCardResponse.php +++ b/src/Types/DeleteCustomerCardResponse.php @@ -43,6 +43,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/DeleteCustomerCustomAttributeDefinitionResponse.php b/src/Types/DeleteCustomerCustomAttributeDefinitionResponse.php index daf839ce..bde618df 100644 --- a/src/Types/DeleteCustomerCustomAttributeDefinitionResponse.php +++ b/src/Types/DeleteCustomerCustomAttributeDefinitionResponse.php @@ -42,6 +42,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/DeleteCustomerCustomAttributeResponse.php b/src/Types/DeleteCustomerCustomAttributeResponse.php index 05dafa6a..30aa9260 100644 --- a/src/Types/DeleteCustomerCustomAttributeResponse.php +++ b/src/Types/DeleteCustomerCustomAttributeResponse.php @@ -43,6 +43,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/DeleteCustomerGroupResponse.php b/src/Types/DeleteCustomerGroupResponse.php index ac8e68ef..37aa552d 100644 --- a/src/Types/DeleteCustomerGroupResponse.php +++ b/src/Types/DeleteCustomerGroupResponse.php @@ -43,6 +43,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/DeleteCustomerResponse.php b/src/Types/DeleteCustomerResponse.php index 7d8f544d..2a2377db 100644 --- a/src/Types/DeleteCustomerResponse.php +++ b/src/Types/DeleteCustomerResponse.php @@ -43,6 +43,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/DeleteDisputeEvidenceResponse.php b/src/Types/DeleteDisputeEvidenceResponse.php index 1b29cfef..219347f0 100644 --- a/src/Types/DeleteDisputeEvidenceResponse.php +++ b/src/Types/DeleteDisputeEvidenceResponse.php @@ -42,6 +42,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/DeleteInvoiceAttachmentResponse.php b/src/Types/DeleteInvoiceAttachmentResponse.php index 04395257..de649d1c 100644 --- a/src/Types/DeleteInvoiceAttachmentResponse.php +++ b/src/Types/DeleteInvoiceAttachmentResponse.php @@ -42,6 +42,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/DeleteInvoiceResponse.php b/src/Types/DeleteInvoiceResponse.php index dc33ca21..fcecc2ad 100644 --- a/src/Types/DeleteInvoiceResponse.php +++ b/src/Types/DeleteInvoiceResponse.php @@ -42,6 +42,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/DeleteLocationCustomAttributeDefinitionResponse.php b/src/Types/DeleteLocationCustomAttributeDefinitionResponse.php index c8eafd4f..3f217782 100644 --- a/src/Types/DeleteLocationCustomAttributeDefinitionResponse.php +++ b/src/Types/DeleteLocationCustomAttributeDefinitionResponse.php @@ -42,6 +42,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/DeleteLocationCustomAttributeResponse.php b/src/Types/DeleteLocationCustomAttributeResponse.php index d1ac036d..cd503815 100644 --- a/src/Types/DeleteLocationCustomAttributeResponse.php +++ b/src/Types/DeleteLocationCustomAttributeResponse.php @@ -43,6 +43,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/DeleteLoyaltyRewardResponse.php b/src/Types/DeleteLoyaltyRewardResponse.php index fe5ce345..4b60a4ac 100644 --- a/src/Types/DeleteLoyaltyRewardResponse.php +++ b/src/Types/DeleteLoyaltyRewardResponse.php @@ -42,6 +42,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/DeleteMerchantCustomAttributeDefinitionResponse.php b/src/Types/DeleteMerchantCustomAttributeDefinitionResponse.php index 04fa69fe..068297e9 100644 --- a/src/Types/DeleteMerchantCustomAttributeDefinitionResponse.php +++ b/src/Types/DeleteMerchantCustomAttributeDefinitionResponse.php @@ -42,6 +42,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/DeleteMerchantCustomAttributeResponse.php b/src/Types/DeleteMerchantCustomAttributeResponse.php index c46b490f..2ffa9657 100644 --- a/src/Types/DeleteMerchantCustomAttributeResponse.php +++ b/src/Types/DeleteMerchantCustomAttributeResponse.php @@ -43,6 +43,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/DeleteOrderCustomAttributeDefinitionResponse.php b/src/Types/DeleteOrderCustomAttributeDefinitionResponse.php index 96e5d0e5..2f5b1865 100644 --- a/src/Types/DeleteOrderCustomAttributeDefinitionResponse.php +++ b/src/Types/DeleteOrderCustomAttributeDefinitionResponse.php @@ -42,6 +42,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/DeleteOrderCustomAttributeResponse.php b/src/Types/DeleteOrderCustomAttributeResponse.php index dbe491c4..5c50887d 100644 --- a/src/Types/DeleteOrderCustomAttributeResponse.php +++ b/src/Types/DeleteOrderCustomAttributeResponse.php @@ -42,6 +42,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/DeletePaymentLinkResponse.php b/src/Types/DeletePaymentLinkResponse.php index f33b06b6..add9ab1c 100644 --- a/src/Types/DeletePaymentLinkResponse.php +++ b/src/Types/DeletePaymentLinkResponse.php @@ -58,6 +58,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -75,6 +76,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -92,6 +94,7 @@ public function getCancelledOrderId(): ?string public function setCancelledOrderId(?string $value = null): self { $this->cancelledOrderId = $value; + $this->_setField('cancelledOrderId'); return $this; } diff --git a/src/Types/DeleteShiftResponse.php b/src/Types/DeleteShiftResponse.php index ab39692d..0e422993 100644 --- a/src/Types/DeleteShiftResponse.php +++ b/src/Types/DeleteShiftResponse.php @@ -43,6 +43,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/DeleteSnippetResponse.php b/src/Types/DeleteSnippetResponse.php index 973e4a6f..ee801057 100644 --- a/src/Types/DeleteSnippetResponse.php +++ b/src/Types/DeleteSnippetResponse.php @@ -42,6 +42,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/DeleteSubscriptionActionResponse.php b/src/Types/DeleteSubscriptionActionResponse.php index 8b8f11d0..0f5d21fc 100644 --- a/src/Types/DeleteSubscriptionActionResponse.php +++ b/src/Types/DeleteSubscriptionActionResponse.php @@ -51,6 +51,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -68,6 +69,7 @@ public function getSubscription(): ?Subscription public function setSubscription(?Subscription $value = null): self { $this->subscription = $value; + $this->_setField('subscription'); return $this; } diff --git a/src/Types/DeleteTimecardResponse.php b/src/Types/DeleteTimecardResponse.php index cef81e43..62d403ab 100644 --- a/src/Types/DeleteTimecardResponse.php +++ b/src/Types/DeleteTimecardResponse.php @@ -43,6 +43,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/DeleteTransferOrderResponse.php b/src/Types/DeleteTransferOrderResponse.php index 2c535eb2..9db7240d 100644 --- a/src/Types/DeleteTransferOrderResponse.php +++ b/src/Types/DeleteTransferOrderResponse.php @@ -42,6 +42,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/DeleteWebhookSubscriptionResponse.php b/src/Types/DeleteWebhookSubscriptionResponse.php index cfa44136..02cc2959 100644 --- a/src/Types/DeleteWebhookSubscriptionResponse.php +++ b/src/Types/DeleteWebhookSubscriptionResponse.php @@ -43,6 +43,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/Destination.php b/src/Types/Destination.php index 5d463255..730c9e75 100644 --- a/src/Types/Destination.php +++ b/src/Types/Destination.php @@ -52,6 +52,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -69,6 +70,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } diff --git a/src/Types/DestinationDetails.php b/src/Types/DestinationDetails.php index fde39599..83a8172f 100644 --- a/src/Types/DestinationDetails.php +++ b/src/Types/DestinationDetails.php @@ -57,6 +57,7 @@ public function getCardDetails(): ?DestinationDetailsCardRefundDetails public function setCardDetails(?DestinationDetailsCardRefundDetails $value = null): self { $this->cardDetails = $value; + $this->_setField('cardDetails'); return $this; } @@ -74,6 +75,7 @@ public function getCashDetails(): ?DestinationDetailsCashRefundDetails public function setCashDetails(?DestinationDetailsCashRefundDetails $value = null): self { $this->cashDetails = $value; + $this->_setField('cashDetails'); return $this; } @@ -91,6 +93,7 @@ public function getExternalDetails(): ?DestinationDetailsExternalRefundDetails public function setExternalDetails(?DestinationDetailsExternalRefundDetails $value = null): self { $this->externalDetails = $value; + $this->_setField('externalDetails'); return $this; } diff --git a/src/Types/DestinationDetailsCardRefundDetails.php b/src/Types/DestinationDetailsCardRefundDetails.php index 20e84b5d..105ec2ff 100644 --- a/src/Types/DestinationDetailsCardRefundDetails.php +++ b/src/Types/DestinationDetailsCardRefundDetails.php @@ -57,6 +57,7 @@ public function getCard(): ?Card public function setCard(?Card $value = null): self { $this->card = $value; + $this->_setField('card'); return $this; } @@ -74,6 +75,7 @@ public function getEntryMethod(): ?string public function setEntryMethod(?string $value = null): self { $this->entryMethod = $value; + $this->_setField('entryMethod'); return $this; } @@ -91,6 +93,7 @@ public function getAuthResultCode(): ?string public function setAuthResultCode(?string $value = null): self { $this->authResultCode = $value; + $this->_setField('authResultCode'); return $this; } diff --git a/src/Types/DestinationDetailsCashRefundDetails.php b/src/Types/DestinationDetailsCashRefundDetails.php index efb61cfe..22abb391 100644 --- a/src/Types/DestinationDetailsCashRefundDetails.php +++ b/src/Types/DestinationDetailsCashRefundDetails.php @@ -53,6 +53,7 @@ public function getSellerSuppliedMoney(): Money public function setSellerSuppliedMoney(Money $value): self { $this->sellerSuppliedMoney = $value; + $this->_setField('sellerSuppliedMoney'); return $this; } @@ -70,6 +71,7 @@ public function getChangeBackMoney(): ?Money public function setChangeBackMoney(?Money $value = null): self { $this->changeBackMoney = $value; + $this->_setField('changeBackMoney'); return $this; } diff --git a/src/Types/DestinationDetailsExternalRefundDetails.php b/src/Types/DestinationDetailsExternalRefundDetails.php index dd4d9c2a..1ba83313 100644 --- a/src/Types/DestinationDetailsExternalRefundDetails.php +++ b/src/Types/DestinationDetailsExternalRefundDetails.php @@ -75,6 +75,7 @@ public function getType(): string public function setType(string $value): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -92,6 +93,7 @@ public function getSource(): string public function setSource(string $value): self { $this->source = $value; + $this->_setField('source'); return $this; } @@ -109,6 +111,7 @@ public function getSourceId(): ?string public function setSourceId(?string $value = null): self { $this->sourceId = $value; + $this->_setField('sourceId'); return $this; } diff --git a/src/Types/Device.php b/src/Types/Device.php index 3376e602..b3c450eb 100644 --- a/src/Types/Device.php +++ b/src/Types/Device.php @@ -66,6 +66,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -83,6 +84,7 @@ public function getAttributes(): DeviceAttributes public function setAttributes(DeviceAttributes $value): self { $this->attributes = $value; + $this->_setField('attributes'); return $this; } @@ -100,6 +102,7 @@ public function getComponents(): ?array public function setComponents(?array $value = null): self { $this->components = $value; + $this->_setField('components'); return $this; } @@ -117,6 +120,7 @@ public function getStatus(): ?DeviceStatus public function setStatus(?DeviceStatus $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } diff --git a/src/Types/DeviceAttributes.php b/src/Types/DeviceAttributes.php index 43e0226d..8a52401b 100644 --- a/src/Types/DeviceAttributes.php +++ b/src/Types/DeviceAttributes.php @@ -103,6 +103,7 @@ public function getType(): string public function setType(string $value): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -120,6 +121,7 @@ public function getManufacturer(): string public function setManufacturer(string $value): self { $this->manufacturer = $value; + $this->_setField('manufacturer'); return $this; } @@ -137,6 +139,7 @@ public function getModel(): ?string public function setModel(?string $value = null): self { $this->model = $value; + $this->_setField('model'); return $this; } @@ -154,6 +157,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -171,6 +175,7 @@ public function getManufacturersId(): ?string public function setManufacturersId(?string $value = null): self { $this->manufacturersId = $value; + $this->_setField('manufacturersId'); return $this; } @@ -188,6 +193,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -205,6 +211,7 @@ public function getVersion(): ?string public function setVersion(?string $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -222,6 +229,7 @@ public function getMerchantToken(): ?string public function setMerchantToken(?string $value = null): self { $this->merchantToken = $value; + $this->_setField('merchantToken'); return $this; } diff --git a/src/Types/DeviceCheckoutOptions.php b/src/Types/DeviceCheckoutOptions.php index 170c6ea3..af8b304d 100644 --- a/src/Types/DeviceCheckoutOptions.php +++ b/src/Types/DeviceCheckoutOptions.php @@ -90,6 +90,7 @@ public function getDeviceId(): string public function setDeviceId(string $value): self { $this->deviceId = $value; + $this->_setField('deviceId'); return $this; } @@ -107,6 +108,7 @@ public function getSkipReceiptScreen(): ?bool public function setSkipReceiptScreen(?bool $value = null): self { $this->skipReceiptScreen = $value; + $this->_setField('skipReceiptScreen'); return $this; } @@ -124,6 +126,7 @@ public function getCollectSignature(): ?bool public function setCollectSignature(?bool $value = null): self { $this->collectSignature = $value; + $this->_setField('collectSignature'); return $this; } @@ -141,6 +144,7 @@ public function getTipSettings(): ?TipSettings public function setTipSettings(?TipSettings $value = null): self { $this->tipSettings = $value; + $this->_setField('tipSettings'); return $this; } @@ -158,6 +162,7 @@ public function getShowItemizedCart(): ?bool public function setShowItemizedCart(?bool $value = null): self { $this->showItemizedCart = $value; + $this->_setField('showItemizedCart'); return $this; } @@ -175,6 +180,7 @@ public function getAllowAutoCardSurcharge(): ?bool public function setAllowAutoCardSurcharge(?bool $value = null): self { $this->allowAutoCardSurcharge = $value; + $this->_setField('allowAutoCardSurcharge'); return $this; } diff --git a/src/Types/DeviceCode.php b/src/Types/DeviceCode.php index fa762ad0..9baf20fa 100644 --- a/src/Types/DeviceCode.php +++ b/src/Types/DeviceCode.php @@ -121,6 +121,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -138,6 +139,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -155,6 +157,7 @@ public function getCode(): ?string public function setCode(?string $value = null): self { $this->code = $value; + $this->_setField('code'); return $this; } @@ -172,6 +175,7 @@ public function getDeviceId(): ?string public function setDeviceId(?string $value = null): self { $this->deviceId = $value; + $this->_setField('deviceId'); return $this; } @@ -189,6 +193,7 @@ public function getProductType(): string public function setProductType(string $value): self { $this->productType = $value; + $this->_setField('productType'); return $this; } @@ -206,6 +211,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -223,6 +229,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -240,6 +247,7 @@ public function getPairBy(): ?string public function setPairBy(?string $value = null): self { $this->pairBy = $value; + $this->_setField('pairBy'); return $this; } @@ -257,6 +265,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -274,6 +283,7 @@ public function getStatusChangedAt(): ?string public function setStatusChangedAt(?string $value = null): self { $this->statusChangedAt = $value; + $this->_setField('statusChangedAt'); return $this; } @@ -291,6 +301,7 @@ public function getPairedAt(): ?string public function setPairedAt(?string $value = null): self { $this->pairedAt = $value; + $this->_setField('pairedAt'); return $this; } diff --git a/src/Types/DeviceCodePairedEvent.php b/src/Types/DeviceCodePairedEvent.php index 772e4c50..c23ebe77 100644 --- a/src/Types/DeviceCodePairedEvent.php +++ b/src/Types/DeviceCodePairedEvent.php @@ -83,6 +83,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -100,6 +101,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -117,6 +119,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -134,6 +137,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -151,6 +155,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -168,6 +173,7 @@ public function getData(): ?DeviceCodePairedEventData public function setData(?DeviceCodePairedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/DeviceCodePairedEventData.php b/src/Types/DeviceCodePairedEventData.php index 152029b9..85ebaecf 100644 --- a/src/Types/DeviceCodePairedEventData.php +++ b/src/Types/DeviceCodePairedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?DeviceCodePairedEventObject public function setObject(?DeviceCodePairedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/DeviceCodePairedEventObject.php b/src/Types/DeviceCodePairedEventObject.php index 197ef485..88a86387 100644 --- a/src/Types/DeviceCodePairedEventObject.php +++ b/src/Types/DeviceCodePairedEventObject.php @@ -38,6 +38,7 @@ public function getDeviceCode(): ?DeviceCode public function setDeviceCode(?DeviceCode $value = null): self { $this->deviceCode = $value; + $this->_setField('deviceCode'); return $this; } diff --git a/src/Types/DeviceComponentDetailsApplicationDetails.php b/src/Types/DeviceComponentDetailsApplicationDetails.php index f0c2b661..aace87b7 100644 --- a/src/Types/DeviceComponentDetailsApplicationDetails.php +++ b/src/Types/DeviceComponentDetailsApplicationDetails.php @@ -65,6 +65,7 @@ public function getApplicationType(): ?string public function setApplicationType(?string $value = null): self { $this->applicationType = $value; + $this->_setField('applicationType'); return $this; } @@ -82,6 +83,7 @@ public function getVersion(): ?string public function setVersion(?string $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -99,6 +101,7 @@ public function getSessionLocation(): ?string public function setSessionLocation(?string $value = null): self { $this->sessionLocation = $value; + $this->_setField('sessionLocation'); return $this; } @@ -116,6 +119,7 @@ public function getDeviceCodeId(): ?string public function setDeviceCodeId(?string $value = null): self { $this->deviceCodeId = $value; + $this->_setField('deviceCodeId'); return $this; } diff --git a/src/Types/DeviceComponentDetailsBatteryDetails.php b/src/Types/DeviceComponentDetailsBatteryDetails.php index e0da349d..887724eb 100644 --- a/src/Types/DeviceComponentDetailsBatteryDetails.php +++ b/src/Types/DeviceComponentDetailsBatteryDetails.php @@ -49,6 +49,7 @@ public function getVisiblePercent(): ?int public function setVisiblePercent(?int $value = null): self { $this->visiblePercent = $value; + $this->_setField('visiblePercent'); return $this; } @@ -66,6 +67,7 @@ public function getExternalPower(): ?string public function setExternalPower(?string $value = null): self { $this->externalPower = $value; + $this->_setField('externalPower'); return $this; } diff --git a/src/Types/DeviceComponentDetailsCardReaderDetails.php b/src/Types/DeviceComponentDetailsCardReaderDetails.php index 53399925..1628003e 100644 --- a/src/Types/DeviceComponentDetailsCardReaderDetails.php +++ b/src/Types/DeviceComponentDetailsCardReaderDetails.php @@ -38,6 +38,7 @@ public function getVersion(): ?string public function setVersion(?string $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } diff --git a/src/Types/DeviceComponentDetailsEthernetDetails.php b/src/Types/DeviceComponentDetailsEthernetDetails.php index d7fea450..b0414385 100644 --- a/src/Types/DeviceComponentDetailsEthernetDetails.php +++ b/src/Types/DeviceComponentDetailsEthernetDetails.php @@ -54,6 +54,7 @@ public function getActive(): ?bool public function setActive(?bool $value = null): self { $this->active = $value; + $this->_setField('active'); return $this; } @@ -71,6 +72,7 @@ public function getIpAddressV4(): ?string public function setIpAddressV4(?string $value = null): self { $this->ipAddressV4 = $value; + $this->_setField('ipAddressV4'); return $this; } @@ -88,6 +90,7 @@ public function getMacAddress(): ?string public function setMacAddress(?string $value = null): self { $this->macAddress = $value; + $this->_setField('macAddress'); return $this; } diff --git a/src/Types/DeviceComponentDetailsMeasurement.php b/src/Types/DeviceComponentDetailsMeasurement.php index c349715e..111a7e47 100644 --- a/src/Types/DeviceComponentDetailsMeasurement.php +++ b/src/Types/DeviceComponentDetailsMeasurement.php @@ -41,6 +41,7 @@ public function getValue(): ?int public function setValue(?int $value = null): self { $this->value = $value; + $this->_setField('value'); return $this; } diff --git a/src/Types/DeviceComponentDetailsWiFiDetails.php b/src/Types/DeviceComponentDetailsWiFiDetails.php index 4384727a..ef51fbee 100644 --- a/src/Types/DeviceComponentDetailsWiFiDetails.php +++ b/src/Types/DeviceComponentDetailsWiFiDetails.php @@ -81,6 +81,7 @@ public function getActive(): ?bool public function setActive(?bool $value = null): self { $this->active = $value; + $this->_setField('active'); return $this; } @@ -98,6 +99,7 @@ public function getSsid(): ?string public function setSsid(?string $value = null): self { $this->ssid = $value; + $this->_setField('ssid'); return $this; } @@ -115,6 +117,7 @@ public function getIpAddressV4(): ?string public function setIpAddressV4(?string $value = null): self { $this->ipAddressV4 = $value; + $this->_setField('ipAddressV4'); return $this; } @@ -132,6 +135,7 @@ public function getSecureConnection(): ?string public function setSecureConnection(?string $value = null): self { $this->secureConnection = $value; + $this->_setField('secureConnection'); return $this; } @@ -149,6 +153,7 @@ public function getSignalStrength(): ?DeviceComponentDetailsMeasurement public function setSignalStrength(?DeviceComponentDetailsMeasurement $value = null): self { $this->signalStrength = $value; + $this->_setField('signalStrength'); return $this; } @@ -166,6 +171,7 @@ public function getMacAddress(): ?string public function setMacAddress(?string $value = null): self { $this->macAddress = $value; + $this->_setField('macAddress'); return $this; } diff --git a/src/Types/DeviceCreatedEvent.php b/src/Types/DeviceCreatedEvent.php index 3fb63668..c7089dbf 100644 --- a/src/Types/DeviceCreatedEvent.php +++ b/src/Types/DeviceCreatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?DeviceCreatedEventData public function setData(?DeviceCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/DeviceCreatedEventData.php b/src/Types/DeviceCreatedEventData.php index 45216aea..39844952 100644 --- a/src/Types/DeviceCreatedEventData.php +++ b/src/Types/DeviceCreatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?DeviceCreatedEventObject public function setObject(?DeviceCreatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/DeviceCreatedEventObject.php b/src/Types/DeviceCreatedEventObject.php index 5e5471af..7d745736 100644 --- a/src/Types/DeviceCreatedEventObject.php +++ b/src/Types/DeviceCreatedEventObject.php @@ -38,6 +38,7 @@ public function getDevice(): ?Device public function setDevice(?Device $value = null): self { $this->device = $value; + $this->_setField('device'); return $this; } diff --git a/src/Types/DeviceDetails.php b/src/Types/DeviceDetails.php index 0d65aa8e..494cd5fb 100644 --- a/src/Types/DeviceDetails.php +++ b/src/Types/DeviceDetails.php @@ -57,6 +57,7 @@ public function getDeviceId(): ?string public function setDeviceId(?string $value = null): self { $this->deviceId = $value; + $this->_setField('deviceId'); return $this; } @@ -74,6 +75,7 @@ public function getDeviceInstallationId(): ?string public function setDeviceInstallationId(?string $value = null): self { $this->deviceInstallationId = $value; + $this->_setField('deviceInstallationId'); return $this; } @@ -91,6 +93,7 @@ public function getDeviceName(): ?string public function setDeviceName(?string $value = null): self { $this->deviceName = $value; + $this->_setField('deviceName'); return $this; } diff --git a/src/Types/DeviceMetadata.php b/src/Types/DeviceMetadata.php index 33e89426..91ecbb57 100644 --- a/src/Types/DeviceMetadata.php +++ b/src/Types/DeviceMetadata.php @@ -138,6 +138,7 @@ public function getBatteryPercentage(): ?string public function setBatteryPercentage(?string $value = null): self { $this->batteryPercentage = $value; + $this->_setField('batteryPercentage'); return $this; } @@ -155,6 +156,7 @@ public function getChargingState(): ?string public function setChargingState(?string $value = null): self { $this->chargingState = $value; + $this->_setField('chargingState'); return $this; } @@ -172,6 +174,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -189,6 +192,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -206,6 +210,7 @@ public function getNetworkConnectionType(): ?string public function setNetworkConnectionType(?string $value = null): self { $this->networkConnectionType = $value; + $this->_setField('networkConnectionType'); return $this; } @@ -223,6 +228,7 @@ public function getPaymentRegion(): ?string public function setPaymentRegion(?string $value = null): self { $this->paymentRegion = $value; + $this->_setField('paymentRegion'); return $this; } @@ -240,6 +246,7 @@ public function getSerialNumber(): ?string public function setSerialNumber(?string $value = null): self { $this->serialNumber = $value; + $this->_setField('serialNumber'); return $this; } @@ -257,6 +264,7 @@ public function getOsVersion(): ?string public function setOsVersion(?string $value = null): self { $this->osVersion = $value; + $this->_setField('osVersion'); return $this; } @@ -274,6 +282,7 @@ public function getAppVersion(): ?string public function setAppVersion(?string $value = null): self { $this->appVersion = $value; + $this->_setField('appVersion'); return $this; } @@ -291,6 +300,7 @@ public function getWifiNetworkName(): ?string public function setWifiNetworkName(?string $value = null): self { $this->wifiNetworkName = $value; + $this->_setField('wifiNetworkName'); return $this; } @@ -308,6 +318,7 @@ public function getWifiNetworkStrength(): ?string public function setWifiNetworkStrength(?string $value = null): self { $this->wifiNetworkStrength = $value; + $this->_setField('wifiNetworkStrength'); return $this; } @@ -325,6 +336,7 @@ public function getIpAddress(): ?string public function setIpAddress(?string $value = null): self { $this->ipAddress = $value; + $this->_setField('ipAddress'); return $this; } diff --git a/src/Types/DeviceStatus.php b/src/Types/DeviceStatus.php index 4de79bfa..b79d75da 100644 --- a/src/Types/DeviceStatus.php +++ b/src/Types/DeviceStatus.php @@ -41,6 +41,7 @@ public function getCategory(): ?string public function setCategory(?string $value = null): self { $this->category = $value; + $this->_setField('category'); return $this; } diff --git a/src/Types/DigitalWalletDetails.php b/src/Types/DigitalWalletDetails.php index c259e54e..13b72b40 100644 --- a/src/Types/DigitalWalletDetails.php +++ b/src/Types/DigitalWalletDetails.php @@ -72,6 +72,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -89,6 +90,7 @@ public function getBrand(): ?string public function setBrand(?string $value = null): self { $this->brand = $value; + $this->_setField('brand'); return $this; } @@ -106,6 +108,7 @@ public function getCashAppDetails(): ?CashAppDetails public function setCashAppDetails(?CashAppDetails $value = null): self { $this->cashAppDetails = $value; + $this->_setField('cashAppDetails'); return $this; } @@ -123,6 +126,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/DisableBankAccountResponse.php b/src/Types/DisableBankAccountResponse.php index 80704451..98a40978 100644 --- a/src/Types/DisableBankAccountResponse.php +++ b/src/Types/DisableBankAccountResponse.php @@ -50,6 +50,7 @@ public function getBankAccount(): ?BankAccount public function setBankAccount(?BankAccount $value = null): self { $this->bankAccount = $value; + $this->_setField('bankAccount'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/DisableCardResponse.php b/src/Types/DisableCardResponse.php index 779183da..31a469b7 100644 --- a/src/Types/DisableCardResponse.php +++ b/src/Types/DisableCardResponse.php @@ -54,6 +54,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -71,6 +72,7 @@ public function getCard(): ?Card public function setCard(?Card $value = null): self { $this->card = $value; + $this->_setField('card'); return $this; } diff --git a/src/Types/DisableEventsResponse.php b/src/Types/DisableEventsResponse.php index fedfaaaa..e2a7837f 100644 --- a/src/Types/DisableEventsResponse.php +++ b/src/Types/DisableEventsResponse.php @@ -46,6 +46,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/DismissTerminalActionResponse.php b/src/Types/DismissTerminalActionResponse.php index 694d248b..1a17dc45 100644 --- a/src/Types/DismissTerminalActionResponse.php +++ b/src/Types/DismissTerminalActionResponse.php @@ -47,6 +47,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -64,6 +65,7 @@ public function getAction(): ?TerminalAction public function setAction(?TerminalAction $value = null): self { $this->action = $value; + $this->_setField('action'); return $this; } diff --git a/src/Types/DismissTerminalCheckoutResponse.php b/src/Types/DismissTerminalCheckoutResponse.php index 2b540c90..fda4bd8b 100644 --- a/src/Types/DismissTerminalCheckoutResponse.php +++ b/src/Types/DismissTerminalCheckoutResponse.php @@ -47,6 +47,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -64,6 +65,7 @@ public function getCheckout(): ?TerminalCheckout public function setCheckout(?TerminalCheckout $value = null): self { $this->checkout = $value; + $this->_setField('checkout'); return $this; } diff --git a/src/Types/DismissTerminalRefundResponse.php b/src/Types/DismissTerminalRefundResponse.php index c5749f86..91f37cc1 100644 --- a/src/Types/DismissTerminalRefundResponse.php +++ b/src/Types/DismissTerminalRefundResponse.php @@ -47,6 +47,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -64,6 +65,7 @@ public function getRefund(): ?TerminalRefund public function setRefund(?TerminalRefund $value = null): self { $this->refund = $value; + $this->_setField('refund'); return $this; } diff --git a/src/Types/Dispute.php b/src/Types/Dispute.php index 1901ac6a..82ea83b0 100644 --- a/src/Types/Dispute.php +++ b/src/Types/Dispute.php @@ -174,6 +174,7 @@ public function getDisputeId(): ?string public function setDisputeId(?string $value = null): self { $this->disputeId = $value; + $this->_setField('disputeId'); return $this; } @@ -191,6 +192,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -208,6 +210,7 @@ public function getAmountMoney(): ?Money public function setAmountMoney(?Money $value = null): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } @@ -225,6 +228,7 @@ public function getReason(): ?string public function setReason(?string $value = null): self { $this->reason = $value; + $this->_setField('reason'); return $this; } @@ -242,6 +246,7 @@ public function getState(): ?string public function setState(?string $value = null): self { $this->state = $value; + $this->_setField('state'); return $this; } @@ -259,6 +264,7 @@ public function getDueAt(): ?string public function setDueAt(?string $value = null): self { $this->dueAt = $value; + $this->_setField('dueAt'); return $this; } @@ -276,6 +282,7 @@ public function getDisputedPayment(): ?DisputedPayment public function setDisputedPayment(?DisputedPayment $value = null): self { $this->disputedPayment = $value; + $this->_setField('disputedPayment'); return $this; } @@ -293,6 +300,7 @@ public function getEvidenceIds(): ?array public function setEvidenceIds(?array $value = null): self { $this->evidenceIds = $value; + $this->_setField('evidenceIds'); return $this; } @@ -310,6 +318,7 @@ public function getCardBrand(): ?string public function setCardBrand(?string $value = null): self { $this->cardBrand = $value; + $this->_setField('cardBrand'); return $this; } @@ -327,6 +336,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -344,6 +354,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -361,6 +372,7 @@ public function getBrandDisputeId(): ?string public function setBrandDisputeId(?string $value = null): self { $this->brandDisputeId = $value; + $this->_setField('brandDisputeId'); return $this; } @@ -378,6 +390,7 @@ public function getReportedDate(): ?string public function setReportedDate(?string $value = null): self { $this->reportedDate = $value; + $this->_setField('reportedDate'); return $this; } @@ -395,6 +408,7 @@ public function getReportedAt(): ?string public function setReportedAt(?string $value = null): self { $this->reportedAt = $value; + $this->_setField('reportedAt'); return $this; } @@ -412,6 +426,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -429,6 +444,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } diff --git a/src/Types/DisputeCreatedEvent.php b/src/Types/DisputeCreatedEvent.php index 9fef35b5..ce3bbd4c 100644 --- a/src/Types/DisputeCreatedEvent.php +++ b/src/Types/DisputeCreatedEvent.php @@ -81,6 +81,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -98,6 +99,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -115,6 +117,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -132,6 +135,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -149,6 +153,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -166,6 +171,7 @@ public function getData(): ?DisputeCreatedEventData public function setData(?DisputeCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/DisputeCreatedEventData.php b/src/Types/DisputeCreatedEventData.php index 88faa4b4..f5055718 100644 --- a/src/Types/DisputeCreatedEventData.php +++ b/src/Types/DisputeCreatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?DisputeCreatedEventObject public function setObject(?DisputeCreatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/DisputeCreatedEventObject.php b/src/Types/DisputeCreatedEventObject.php index 9b35c189..163b9fe9 100644 --- a/src/Types/DisputeCreatedEventObject.php +++ b/src/Types/DisputeCreatedEventObject.php @@ -38,6 +38,7 @@ public function getObject(): ?Dispute public function setObject(?Dispute $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/DisputeEvidence.php b/src/Types/DisputeEvidence.php index 0d5f20a5..cfd92354 100644 --- a/src/Types/DisputeEvidence.php +++ b/src/Types/DisputeEvidence.php @@ -89,6 +89,7 @@ public function getEvidenceId(): ?string public function setEvidenceId(?string $value = null): self { $this->evidenceId = $value; + $this->_setField('evidenceId'); return $this; } @@ -106,6 +107,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -123,6 +125,7 @@ public function getDisputeId(): ?string public function setDisputeId(?string $value = null): self { $this->disputeId = $value; + $this->_setField('disputeId'); return $this; } @@ -140,6 +143,7 @@ public function getEvidenceFile(): ?DisputeEvidenceFile public function setEvidenceFile(?DisputeEvidenceFile $value = null): self { $this->evidenceFile = $value; + $this->_setField('evidenceFile'); return $this; } @@ -157,6 +161,7 @@ public function getEvidenceText(): ?string public function setEvidenceText(?string $value = null): self { $this->evidenceText = $value; + $this->_setField('evidenceText'); return $this; } @@ -174,6 +179,7 @@ public function getUploadedAt(): ?string public function setUploadedAt(?string $value = null): self { $this->uploadedAt = $value; + $this->_setField('uploadedAt'); return $this; } @@ -191,6 +197,7 @@ public function getEvidenceType(): ?string public function setEvidenceType(?string $value = null): self { $this->evidenceType = $value; + $this->_setField('evidenceType'); return $this; } diff --git a/src/Types/DisputeEvidenceAddedEvent.php b/src/Types/DisputeEvidenceAddedEvent.php index 5db64785..0d810709 100644 --- a/src/Types/DisputeEvidenceAddedEvent.php +++ b/src/Types/DisputeEvidenceAddedEvent.php @@ -83,6 +83,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -100,6 +101,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -117,6 +119,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -134,6 +137,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -151,6 +155,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -168,6 +173,7 @@ public function getData(): ?DisputeEvidenceAddedEventData public function setData(?DisputeEvidenceAddedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/DisputeEvidenceAddedEventData.php b/src/Types/DisputeEvidenceAddedEventData.php index 2e2e7a8b..7c9ce740 100644 --- a/src/Types/DisputeEvidenceAddedEventData.php +++ b/src/Types/DisputeEvidenceAddedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?DisputeEvidenceAddedEventObject public function setObject(?DisputeEvidenceAddedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/DisputeEvidenceAddedEventObject.php b/src/Types/DisputeEvidenceAddedEventObject.php index 72ea5210..69c51e42 100644 --- a/src/Types/DisputeEvidenceAddedEventObject.php +++ b/src/Types/DisputeEvidenceAddedEventObject.php @@ -38,6 +38,7 @@ public function getObject(): ?Dispute public function setObject(?Dispute $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/DisputeEvidenceCreatedEvent.php b/src/Types/DisputeEvidenceCreatedEvent.php index 9ba17948..db78037c 100644 --- a/src/Types/DisputeEvidenceCreatedEvent.php +++ b/src/Types/DisputeEvidenceCreatedEvent.php @@ -83,6 +83,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -100,6 +101,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -117,6 +119,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -134,6 +137,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -151,6 +155,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -168,6 +173,7 @@ public function getData(): ?DisputeEvidenceCreatedEventData public function setData(?DisputeEvidenceCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/DisputeEvidenceCreatedEventData.php b/src/Types/DisputeEvidenceCreatedEventData.php index eff793bf..103d6701 100644 --- a/src/Types/DisputeEvidenceCreatedEventData.php +++ b/src/Types/DisputeEvidenceCreatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?DisputeEvidenceCreatedEventObject public function setObject(?DisputeEvidenceCreatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/DisputeEvidenceCreatedEventObject.php b/src/Types/DisputeEvidenceCreatedEventObject.php index 5390cc44..0eed2a95 100644 --- a/src/Types/DisputeEvidenceCreatedEventObject.php +++ b/src/Types/DisputeEvidenceCreatedEventObject.php @@ -38,6 +38,7 @@ public function getObject(): ?Dispute public function setObject(?Dispute $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/DisputeEvidenceDeletedEvent.php b/src/Types/DisputeEvidenceDeletedEvent.php index 0837a343..2072e0b6 100644 --- a/src/Types/DisputeEvidenceDeletedEvent.php +++ b/src/Types/DisputeEvidenceDeletedEvent.php @@ -83,6 +83,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -100,6 +101,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -117,6 +119,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -134,6 +137,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -151,6 +155,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -168,6 +173,7 @@ public function getData(): ?DisputeEvidenceDeletedEventData public function setData(?DisputeEvidenceDeletedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/DisputeEvidenceDeletedEventData.php b/src/Types/DisputeEvidenceDeletedEventData.php index e5b9c8e1..797c3f9f 100644 --- a/src/Types/DisputeEvidenceDeletedEventData.php +++ b/src/Types/DisputeEvidenceDeletedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?DisputeEvidenceDeletedEventObject public function setObject(?DisputeEvidenceDeletedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/DisputeEvidenceDeletedEventObject.php b/src/Types/DisputeEvidenceDeletedEventObject.php index 00789139..4e0fe3b0 100644 --- a/src/Types/DisputeEvidenceDeletedEventObject.php +++ b/src/Types/DisputeEvidenceDeletedEventObject.php @@ -38,6 +38,7 @@ public function getObject(): ?Dispute public function setObject(?Dispute $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/DisputeEvidenceFile.php b/src/Types/DisputeEvidenceFile.php index 905c4b7b..20819ced 100644 --- a/src/Types/DisputeEvidenceFile.php +++ b/src/Types/DisputeEvidenceFile.php @@ -49,6 +49,7 @@ public function getFilename(): ?string public function setFilename(?string $value = null): self { $this->filename = $value; + $this->_setField('filename'); return $this; } @@ -66,6 +67,7 @@ public function getFiletype(): ?string public function setFiletype(?string $value = null): self { $this->filetype = $value; + $this->_setField('filetype'); return $this; } diff --git a/src/Types/DisputeEvidenceRemovedEvent.php b/src/Types/DisputeEvidenceRemovedEvent.php index caa3298f..7f6a8129 100644 --- a/src/Types/DisputeEvidenceRemovedEvent.php +++ b/src/Types/DisputeEvidenceRemovedEvent.php @@ -83,6 +83,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -100,6 +101,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -117,6 +119,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -134,6 +137,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -151,6 +155,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -168,6 +173,7 @@ public function getData(): ?DisputeEvidenceRemovedEventData public function setData(?DisputeEvidenceRemovedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/DisputeEvidenceRemovedEventData.php b/src/Types/DisputeEvidenceRemovedEventData.php index a0b47c5e..40e28345 100644 --- a/src/Types/DisputeEvidenceRemovedEventData.php +++ b/src/Types/DisputeEvidenceRemovedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?DisputeEvidenceRemovedEventObject public function setObject(?DisputeEvidenceRemovedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/DisputeEvidenceRemovedEventObject.php b/src/Types/DisputeEvidenceRemovedEventObject.php index 185fcc2b..5b7efe9d 100644 --- a/src/Types/DisputeEvidenceRemovedEventObject.php +++ b/src/Types/DisputeEvidenceRemovedEventObject.php @@ -38,6 +38,7 @@ public function getObject(): ?Dispute public function setObject(?Dispute $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/DisputeStateChangedEvent.php b/src/Types/DisputeStateChangedEvent.php index e340ad26..59f821f5 100644 --- a/src/Types/DisputeStateChangedEvent.php +++ b/src/Types/DisputeStateChangedEvent.php @@ -83,6 +83,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -100,6 +101,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -117,6 +119,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -134,6 +137,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -151,6 +155,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -168,6 +173,7 @@ public function getData(): ?DisputeStateChangedEventData public function setData(?DisputeStateChangedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/DisputeStateChangedEventData.php b/src/Types/DisputeStateChangedEventData.php index 9ba1e73f..f2b92c55 100644 --- a/src/Types/DisputeStateChangedEventData.php +++ b/src/Types/DisputeStateChangedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?DisputeStateChangedEventObject public function setObject(?DisputeStateChangedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/DisputeStateChangedEventObject.php b/src/Types/DisputeStateChangedEventObject.php index 7a676af6..b2a8d4e5 100644 --- a/src/Types/DisputeStateChangedEventObject.php +++ b/src/Types/DisputeStateChangedEventObject.php @@ -38,6 +38,7 @@ public function getObject(): ?Dispute public function setObject(?Dispute $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/DisputeStateUpdatedEvent.php b/src/Types/DisputeStateUpdatedEvent.php index 67c0ae06..b3c6e461 100644 --- a/src/Types/DisputeStateUpdatedEvent.php +++ b/src/Types/DisputeStateUpdatedEvent.php @@ -83,6 +83,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -100,6 +101,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -117,6 +119,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -134,6 +137,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -151,6 +155,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -168,6 +173,7 @@ public function getData(): ?DisputeStateUpdatedEventData public function setData(?DisputeStateUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/DisputeStateUpdatedEventData.php b/src/Types/DisputeStateUpdatedEventData.php index f115d875..566458a1 100644 --- a/src/Types/DisputeStateUpdatedEventData.php +++ b/src/Types/DisputeStateUpdatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?DisputeStateUpdatedEventObject public function setObject(?DisputeStateUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/DisputeStateUpdatedEventObject.php b/src/Types/DisputeStateUpdatedEventObject.php index a5f1c154..b14aeac1 100644 --- a/src/Types/DisputeStateUpdatedEventObject.php +++ b/src/Types/DisputeStateUpdatedEventObject.php @@ -38,6 +38,7 @@ public function getObject(): ?Dispute public function setObject(?Dispute $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/DisputedPayment.php b/src/Types/DisputedPayment.php index 4d02d237..fb134b60 100644 --- a/src/Types/DisputedPayment.php +++ b/src/Types/DisputedPayment.php @@ -41,6 +41,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } diff --git a/src/Types/Employee.php b/src/Types/Employee.php index f16f2cd9..cec76b3c 100644 --- a/src/Types/Employee.php +++ b/src/Types/Employee.php @@ -123,6 +123,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -140,6 +141,7 @@ public function getFirstName(): ?string public function setFirstName(?string $value = null): self { $this->firstName = $value; + $this->_setField('firstName'); return $this; } @@ -157,6 +159,7 @@ public function getLastName(): ?string public function setLastName(?string $value = null): self { $this->lastName = $value; + $this->_setField('lastName'); return $this; } @@ -174,6 +177,7 @@ public function getEmail(): ?string public function setEmail(?string $value = null): self { $this->email = $value; + $this->_setField('email'); return $this; } @@ -191,6 +195,7 @@ public function getPhoneNumber(): ?string public function setPhoneNumber(?string $value = null): self { $this->phoneNumber = $value; + $this->_setField('phoneNumber'); return $this; } @@ -208,6 +213,7 @@ public function getLocationIds(): ?array public function setLocationIds(?array $value = null): self { $this->locationIds = $value; + $this->_setField('locationIds'); return $this; } @@ -225,6 +231,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -242,6 +249,7 @@ public function getIsOwner(): ?bool public function setIsOwner(?bool $value = null): self { $this->isOwner = $value; + $this->_setField('isOwner'); return $this; } @@ -259,6 +267,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -276,6 +285,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } diff --git a/src/Types/EmployeeWage.php b/src/Types/EmployeeWage.php index 94275a40..b9b576f4 100644 --- a/src/Types/EmployeeWage.php +++ b/src/Types/EmployeeWage.php @@ -68,6 +68,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -85,6 +86,7 @@ public function getEmployeeId(): ?string public function setEmployeeId(?string $value = null): self { $this->employeeId = $value; + $this->_setField('employeeId'); return $this; } @@ -102,6 +104,7 @@ public function getTitle(): ?string public function setTitle(?string $value = null): self { $this->title = $value; + $this->_setField('title'); return $this; } @@ -119,6 +122,7 @@ public function getHourlyRate(): ?Money public function setHourlyRate(?Money $value = null): self { $this->hourlyRate = $value; + $this->_setField('hourlyRate'); return $this; } diff --git a/src/Types/EnableEventsResponse.php b/src/Types/EnableEventsResponse.php index e8696af2..46f96fe5 100644 --- a/src/Types/EnableEventsResponse.php +++ b/src/Types/EnableEventsResponse.php @@ -46,6 +46,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/Error.php b/src/Types/Error.php index 4c538e57..29a8bf20 100644 --- a/src/Types/Error.php +++ b/src/Types/Error.php @@ -76,6 +76,7 @@ public function getCategory(): string public function setCategory(string $value): self { $this->category = $value; + $this->_setField('category'); return $this; } @@ -93,6 +94,7 @@ public function getCode(): string public function setCode(string $value): self { $this->code = $value; + $this->_setField('code'); return $this; } @@ -110,6 +112,7 @@ public function getDetail(): ?string public function setDetail(?string $value = null): self { $this->detail = $value; + $this->_setField('detail'); return $this; } @@ -127,6 +130,7 @@ public function getField(): ?string public function setField(?string $value = null): self { $this->field = $value; + $this->_setField('field'); return $this; } diff --git a/src/Types/Event.php b/src/Types/Event.php index 90203bc0..3db76aa7 100644 --- a/src/Types/Event.php +++ b/src/Types/Event.php @@ -78,6 +78,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -95,6 +96,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -112,6 +114,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -129,6 +132,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -146,6 +150,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -163,6 +168,7 @@ public function getData(): ?EventData public function setData(?EventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/EventData.php b/src/Types/EventData.php index 25c6cda1..2d892de5 100644 --- a/src/Types/EventData.php +++ b/src/Types/EventData.php @@ -63,6 +63,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -80,6 +81,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -97,6 +99,7 @@ public function getDeleted(): ?bool public function setDeleted(?bool $value = null): self { $this->deleted = $value; + $this->_setField('deleted'); return $this; } @@ -114,6 +117,7 @@ public function getObject(): ?array public function setObject(?array $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/EventMetadata.php b/src/Types/EventMetadata.php index b646b3f6..0b0dcdcb 100644 --- a/src/Types/EventMetadata.php +++ b/src/Types/EventMetadata.php @@ -49,6 +49,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -66,6 +67,7 @@ public function getApiVersion(): ?string public function setApiVersion(?string $value = null): self { $this->apiVersion = $value; + $this->_setField('apiVersion'); return $this; } diff --git a/src/Types/EventTypeMetadata.php b/src/Types/EventTypeMetadata.php index da905e1e..9c60df04 100644 --- a/src/Types/EventTypeMetadata.php +++ b/src/Types/EventTypeMetadata.php @@ -57,6 +57,7 @@ public function getEventType(): ?string public function setEventType(?string $value = null): self { $this->eventType = $value; + $this->_setField('eventType'); return $this; } @@ -74,6 +75,7 @@ public function getApiVersionIntroduced(): ?string public function setApiVersionIntroduced(?string $value = null): self { $this->apiVersionIntroduced = $value; + $this->_setField('apiVersionIntroduced'); return $this; } @@ -91,6 +93,7 @@ public function getReleaseStatus(): ?string public function setReleaseStatus(?string $value = null): self { $this->releaseStatus = $value; + $this->_setField('releaseStatus'); return $this; } diff --git a/src/Types/ExternalPaymentDetails.php b/src/Types/ExternalPaymentDetails.php index af89af95..8f67c17c 100644 --- a/src/Types/ExternalPaymentDetails.php +++ b/src/Types/ExternalPaymentDetails.php @@ -87,6 +87,7 @@ public function getType(): string public function setType(string $value): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -104,6 +105,7 @@ public function getSource(): string public function setSource(string $value): self { $this->source = $value; + $this->_setField('source'); return $this; } @@ -121,6 +123,7 @@ public function getSourceId(): ?string public function setSourceId(?string $value = null): self { $this->sourceId = $value; + $this->_setField('sourceId'); return $this; } @@ -138,6 +141,7 @@ public function getSourceFeeMoney(): ?Money public function setSourceFeeMoney(?Money $value = null): self { $this->sourceFeeMoney = $value; + $this->_setField('sourceFeeMoney'); return $this; } diff --git a/src/Types/FilterValue.php b/src/Types/FilterValue.php index 211cc26c..122d5143 100644 --- a/src/Types/FilterValue.php +++ b/src/Types/FilterValue.php @@ -65,6 +65,7 @@ public function getAll(): ?array public function setAll(?array $value = null): self { $this->all = $value; + $this->_setField('all'); return $this; } @@ -82,6 +83,7 @@ public function getAny(): ?array public function setAny(?array $value = null): self { $this->any = $value; + $this->_setField('any'); return $this; } @@ -99,6 +101,7 @@ public function getNone(): ?array public function setNone(?array $value = null): self { $this->none = $value; + $this->_setField('none'); return $this; } diff --git a/src/Types/FloatNumberRange.php b/src/Types/FloatNumberRange.php index 1a3fd25b..b11f8ef5 100644 --- a/src/Types/FloatNumberRange.php +++ b/src/Types/FloatNumberRange.php @@ -49,6 +49,7 @@ public function getStartAt(): ?string public function setStartAt(?string $value = null): self { $this->startAt = $value; + $this->_setField('startAt'); return $this; } @@ -66,6 +67,7 @@ public function getEndAt(): ?string public function setEndAt(?string $value = null): self { $this->endAt = $value; + $this->_setField('endAt'); return $this; } diff --git a/src/Types/Fulfillment.php b/src/Types/Fulfillment.php index f86754a6..afa66ca7 100644 --- a/src/Types/Fulfillment.php +++ b/src/Types/Fulfillment.php @@ -164,6 +164,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -181,6 +182,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -198,6 +200,7 @@ public function getState(): ?string public function setState(?string $value = null): self { $this->state = $value; + $this->_setField('state'); return $this; } @@ -215,6 +218,7 @@ public function getLineItemApplication(): ?string public function setLineItemApplication(?string $value = null): self { $this->lineItemApplication = $value; + $this->_setField('lineItemApplication'); return $this; } @@ -232,6 +236,7 @@ public function getEntries(): ?array public function setEntries(?array $value = null): self { $this->entries = $value; + $this->_setField('entries'); return $this; } @@ -249,6 +254,7 @@ public function getMetadata(): ?array public function setMetadata(?array $value = null): self { $this->metadata = $value; + $this->_setField('metadata'); return $this; } @@ -266,6 +272,7 @@ public function getPickupDetails(): ?FulfillmentPickupDetails public function setPickupDetails(?FulfillmentPickupDetails $value = null): self { $this->pickupDetails = $value; + $this->_setField('pickupDetails'); return $this; } @@ -283,6 +290,7 @@ public function getShipmentDetails(): ?FulfillmentShipmentDetails public function setShipmentDetails(?FulfillmentShipmentDetails $value = null): self { $this->shipmentDetails = $value; + $this->_setField('shipmentDetails'); return $this; } @@ -300,6 +308,7 @@ public function getDeliveryDetails(): ?FulfillmentDeliveryDetails public function setDeliveryDetails(?FulfillmentDeliveryDetails $value = null): self { $this->deliveryDetails = $value; + $this->_setField('deliveryDetails'); return $this; } diff --git a/src/Types/FulfillmentDeliveryDetails.php b/src/Types/FulfillmentDeliveryDetails.php index 147c1c2d..7c6b84a6 100644 --- a/src/Types/FulfillmentDeliveryDetails.php +++ b/src/Types/FulfillmentDeliveryDetails.php @@ -299,6 +299,7 @@ public function getRecipient(): ?FulfillmentRecipient public function setRecipient(?FulfillmentRecipient $value = null): self { $this->recipient = $value; + $this->_setField('recipient'); return $this; } @@ -316,6 +317,7 @@ public function getScheduleType(): ?string public function setScheduleType(?string $value = null): self { $this->scheduleType = $value; + $this->_setField('scheduleType'); return $this; } @@ -333,6 +335,7 @@ public function getPlacedAt(): ?string public function setPlacedAt(?string $value = null): self { $this->placedAt = $value; + $this->_setField('placedAt'); return $this; } @@ -350,6 +353,7 @@ public function getDeliverAt(): ?string public function setDeliverAt(?string $value = null): self { $this->deliverAt = $value; + $this->_setField('deliverAt'); return $this; } @@ -367,6 +371,7 @@ public function getPrepTimeDuration(): ?string public function setPrepTimeDuration(?string $value = null): self { $this->prepTimeDuration = $value; + $this->_setField('prepTimeDuration'); return $this; } @@ -384,6 +389,7 @@ public function getDeliveryWindowDuration(): ?string public function setDeliveryWindowDuration(?string $value = null): self { $this->deliveryWindowDuration = $value; + $this->_setField('deliveryWindowDuration'); return $this; } @@ -401,6 +407,7 @@ public function getNote(): ?string public function setNote(?string $value = null): self { $this->note = $value; + $this->_setField('note'); return $this; } @@ -418,6 +425,7 @@ public function getCompletedAt(): ?string public function setCompletedAt(?string $value = null): self { $this->completedAt = $value; + $this->_setField('completedAt'); return $this; } @@ -435,6 +443,7 @@ public function getInProgressAt(): ?string public function setInProgressAt(?string $value = null): self { $this->inProgressAt = $value; + $this->_setField('inProgressAt'); return $this; } @@ -452,6 +461,7 @@ public function getRejectedAt(): ?string public function setRejectedAt(?string $value = null): self { $this->rejectedAt = $value; + $this->_setField('rejectedAt'); return $this; } @@ -469,6 +479,7 @@ public function getReadyAt(): ?string public function setReadyAt(?string $value = null): self { $this->readyAt = $value; + $this->_setField('readyAt'); return $this; } @@ -486,6 +497,7 @@ public function getDeliveredAt(): ?string public function setDeliveredAt(?string $value = null): self { $this->deliveredAt = $value; + $this->_setField('deliveredAt'); return $this; } @@ -503,6 +515,7 @@ public function getCanceledAt(): ?string public function setCanceledAt(?string $value = null): self { $this->canceledAt = $value; + $this->_setField('canceledAt'); return $this; } @@ -520,6 +533,7 @@ public function getCancelReason(): ?string public function setCancelReason(?string $value = null): self { $this->cancelReason = $value; + $this->_setField('cancelReason'); return $this; } @@ -537,6 +551,7 @@ public function getCourierPickupAt(): ?string public function setCourierPickupAt(?string $value = null): self { $this->courierPickupAt = $value; + $this->_setField('courierPickupAt'); return $this; } @@ -554,6 +569,7 @@ public function getCourierPickupWindowDuration(): ?string public function setCourierPickupWindowDuration(?string $value = null): self { $this->courierPickupWindowDuration = $value; + $this->_setField('courierPickupWindowDuration'); return $this; } @@ -571,6 +587,7 @@ public function getIsNoContactDelivery(): ?bool public function setIsNoContactDelivery(?bool $value = null): self { $this->isNoContactDelivery = $value; + $this->_setField('isNoContactDelivery'); return $this; } @@ -588,6 +605,7 @@ public function getDropoffNotes(): ?string public function setDropoffNotes(?string $value = null): self { $this->dropoffNotes = $value; + $this->_setField('dropoffNotes'); return $this; } @@ -605,6 +623,7 @@ public function getCourierProviderName(): ?string public function setCourierProviderName(?string $value = null): self { $this->courierProviderName = $value; + $this->_setField('courierProviderName'); return $this; } @@ -622,6 +641,7 @@ public function getCourierSupportPhoneNumber(): ?string public function setCourierSupportPhoneNumber(?string $value = null): self { $this->courierSupportPhoneNumber = $value; + $this->_setField('courierSupportPhoneNumber'); return $this; } @@ -639,6 +659,7 @@ public function getSquareDeliveryId(): ?string public function setSquareDeliveryId(?string $value = null): self { $this->squareDeliveryId = $value; + $this->_setField('squareDeliveryId'); return $this; } @@ -656,6 +677,7 @@ public function getExternalDeliveryId(): ?string public function setExternalDeliveryId(?string $value = null): self { $this->externalDeliveryId = $value; + $this->_setField('externalDeliveryId'); return $this; } @@ -673,6 +695,7 @@ public function getManagedDelivery(): ?bool public function setManagedDelivery(?bool $value = null): self { $this->managedDelivery = $value; + $this->_setField('managedDelivery'); return $this; } diff --git a/src/Types/FulfillmentFulfillmentEntry.php b/src/Types/FulfillmentFulfillmentEntry.php index 19e05639..afd78639 100644 --- a/src/Types/FulfillmentFulfillmentEntry.php +++ b/src/Types/FulfillmentFulfillmentEntry.php @@ -94,6 +94,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -111,6 +112,7 @@ public function getLineItemUid(): string public function setLineItemUid(string $value): self { $this->lineItemUid = $value; + $this->_setField('lineItemUid'); return $this; } @@ -128,6 +130,7 @@ public function getQuantity(): string public function setQuantity(string $value): self { $this->quantity = $value; + $this->_setField('quantity'); return $this; } @@ -145,6 +148,7 @@ public function getMetadata(): ?array public function setMetadata(?array $value = null): self { $this->metadata = $value; + $this->_setField('metadata'); return $this; } diff --git a/src/Types/FulfillmentPickupDetails.php b/src/Types/FulfillmentPickupDetails.php index 0c2e69d7..e12d8657 100644 --- a/src/Types/FulfillmentPickupDetails.php +++ b/src/Types/FulfillmentPickupDetails.php @@ -245,6 +245,7 @@ public function getRecipient(): ?FulfillmentRecipient public function setRecipient(?FulfillmentRecipient $value = null): self { $this->recipient = $value; + $this->_setField('recipient'); return $this; } @@ -262,6 +263,7 @@ public function getExpiresAt(): ?string public function setExpiresAt(?string $value = null): self { $this->expiresAt = $value; + $this->_setField('expiresAt'); return $this; } @@ -279,6 +281,7 @@ public function getAutoCompleteDuration(): ?string public function setAutoCompleteDuration(?string $value = null): self { $this->autoCompleteDuration = $value; + $this->_setField('autoCompleteDuration'); return $this; } @@ -296,6 +299,7 @@ public function getScheduleType(): ?string public function setScheduleType(?string $value = null): self { $this->scheduleType = $value; + $this->_setField('scheduleType'); return $this; } @@ -313,6 +317,7 @@ public function getPickupAt(): ?string public function setPickupAt(?string $value = null): self { $this->pickupAt = $value; + $this->_setField('pickupAt'); return $this; } @@ -330,6 +335,7 @@ public function getPickupWindowDuration(): ?string public function setPickupWindowDuration(?string $value = null): self { $this->pickupWindowDuration = $value; + $this->_setField('pickupWindowDuration'); return $this; } @@ -347,6 +353,7 @@ public function getPrepTimeDuration(): ?string public function setPrepTimeDuration(?string $value = null): self { $this->prepTimeDuration = $value; + $this->_setField('prepTimeDuration'); return $this; } @@ -364,6 +371,7 @@ public function getNote(): ?string public function setNote(?string $value = null): self { $this->note = $value; + $this->_setField('note'); return $this; } @@ -381,6 +389,7 @@ public function getPlacedAt(): ?string public function setPlacedAt(?string $value = null): self { $this->placedAt = $value; + $this->_setField('placedAt'); return $this; } @@ -398,6 +407,7 @@ public function getAcceptedAt(): ?string public function setAcceptedAt(?string $value = null): self { $this->acceptedAt = $value; + $this->_setField('acceptedAt'); return $this; } @@ -415,6 +425,7 @@ public function getRejectedAt(): ?string public function setRejectedAt(?string $value = null): self { $this->rejectedAt = $value; + $this->_setField('rejectedAt'); return $this; } @@ -432,6 +443,7 @@ public function getReadyAt(): ?string public function setReadyAt(?string $value = null): self { $this->readyAt = $value; + $this->_setField('readyAt'); return $this; } @@ -449,6 +461,7 @@ public function getExpiredAt(): ?string public function setExpiredAt(?string $value = null): self { $this->expiredAt = $value; + $this->_setField('expiredAt'); return $this; } @@ -466,6 +479,7 @@ public function getPickedUpAt(): ?string public function setPickedUpAt(?string $value = null): self { $this->pickedUpAt = $value; + $this->_setField('pickedUpAt'); return $this; } @@ -483,6 +497,7 @@ public function getCanceledAt(): ?string public function setCanceledAt(?string $value = null): self { $this->canceledAt = $value; + $this->_setField('canceledAt'); return $this; } @@ -500,6 +515,7 @@ public function getCancelReason(): ?string public function setCancelReason(?string $value = null): self { $this->cancelReason = $value; + $this->_setField('cancelReason'); return $this; } @@ -517,6 +533,7 @@ public function getIsCurbsidePickup(): ?bool public function setIsCurbsidePickup(?bool $value = null): self { $this->isCurbsidePickup = $value; + $this->_setField('isCurbsidePickup'); return $this; } @@ -534,6 +551,7 @@ public function getCurbsidePickupDetails(): ?FulfillmentPickupDetailsCurbsidePic public function setCurbsidePickupDetails(?FulfillmentPickupDetailsCurbsidePickupDetails $value = null): self { $this->curbsidePickupDetails = $value; + $this->_setField('curbsidePickupDetails'); return $this; } diff --git a/src/Types/FulfillmentPickupDetailsCurbsidePickupDetails.php b/src/Types/FulfillmentPickupDetailsCurbsidePickupDetails.php index 4b4fa51c..d9c017c1 100644 --- a/src/Types/FulfillmentPickupDetailsCurbsidePickupDetails.php +++ b/src/Types/FulfillmentPickupDetailsCurbsidePickupDetails.php @@ -53,6 +53,7 @@ public function getCurbsideDetails(): ?string public function setCurbsideDetails(?string $value = null): self { $this->curbsideDetails = $value; + $this->_setField('curbsideDetails'); return $this; } @@ -70,6 +71,7 @@ public function getBuyerArrivedAt(): ?string public function setBuyerArrivedAt(?string $value = null): self { $this->buyerArrivedAt = $value; + $this->_setField('buyerArrivedAt'); return $this; } diff --git a/src/Types/FulfillmentRecipient.php b/src/Types/FulfillmentRecipient.php index eb39dd28..3a775832 100644 --- a/src/Types/FulfillmentRecipient.php +++ b/src/Types/FulfillmentRecipient.php @@ -102,6 +102,7 @@ public function getCustomerId(): ?string public function setCustomerId(?string $value = null): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -119,6 +120,7 @@ public function getDisplayName(): ?string public function setDisplayName(?string $value = null): self { $this->displayName = $value; + $this->_setField('displayName'); return $this; } @@ -136,6 +138,7 @@ public function getEmailAddress(): ?string public function setEmailAddress(?string $value = null): self { $this->emailAddress = $value; + $this->_setField('emailAddress'); return $this; } @@ -153,6 +156,7 @@ public function getPhoneNumber(): ?string public function setPhoneNumber(?string $value = null): self { $this->phoneNumber = $value; + $this->_setField('phoneNumber'); return $this; } @@ -170,6 +174,7 @@ public function getAddress(): ?Address public function setAddress(?Address $value = null): self { $this->address = $value; + $this->_setField('address'); return $this; } diff --git a/src/Types/FulfillmentShipmentDetails.php b/src/Types/FulfillmentShipmentDetails.php index b27752a4..5ee9d8f9 100644 --- a/src/Types/FulfillmentShipmentDetails.php +++ b/src/Types/FulfillmentShipmentDetails.php @@ -185,6 +185,7 @@ public function getRecipient(): ?FulfillmentRecipient public function setRecipient(?FulfillmentRecipient $value = null): self { $this->recipient = $value; + $this->_setField('recipient'); return $this; } @@ -202,6 +203,7 @@ public function getCarrier(): ?string public function setCarrier(?string $value = null): self { $this->carrier = $value; + $this->_setField('carrier'); return $this; } @@ -219,6 +221,7 @@ public function getShippingNote(): ?string public function setShippingNote(?string $value = null): self { $this->shippingNote = $value; + $this->_setField('shippingNote'); return $this; } @@ -236,6 +239,7 @@ public function getShippingType(): ?string public function setShippingType(?string $value = null): self { $this->shippingType = $value; + $this->_setField('shippingType'); return $this; } @@ -253,6 +257,7 @@ public function getTrackingNumber(): ?string public function setTrackingNumber(?string $value = null): self { $this->trackingNumber = $value; + $this->_setField('trackingNumber'); return $this; } @@ -270,6 +275,7 @@ public function getTrackingUrl(): ?string public function setTrackingUrl(?string $value = null): self { $this->trackingUrl = $value; + $this->_setField('trackingUrl'); return $this; } @@ -287,6 +293,7 @@ public function getPlacedAt(): ?string public function setPlacedAt(?string $value = null): self { $this->placedAt = $value; + $this->_setField('placedAt'); return $this; } @@ -304,6 +311,7 @@ public function getInProgressAt(): ?string public function setInProgressAt(?string $value = null): self { $this->inProgressAt = $value; + $this->_setField('inProgressAt'); return $this; } @@ -321,6 +329,7 @@ public function getPackagedAt(): ?string public function setPackagedAt(?string $value = null): self { $this->packagedAt = $value; + $this->_setField('packagedAt'); return $this; } @@ -338,6 +347,7 @@ public function getExpectedShippedAt(): ?string public function setExpectedShippedAt(?string $value = null): self { $this->expectedShippedAt = $value; + $this->_setField('expectedShippedAt'); return $this; } @@ -355,6 +365,7 @@ public function getShippedAt(): ?string public function setShippedAt(?string $value = null): self { $this->shippedAt = $value; + $this->_setField('shippedAt'); return $this; } @@ -372,6 +383,7 @@ public function getCanceledAt(): ?string public function setCanceledAt(?string $value = null): self { $this->canceledAt = $value; + $this->_setField('canceledAt'); return $this; } @@ -389,6 +401,7 @@ public function getCancelReason(): ?string public function setCancelReason(?string $value = null): self { $this->cancelReason = $value; + $this->_setField('cancelReason'); return $this; } @@ -406,6 +419,7 @@ public function getFailedAt(): ?string public function setFailedAt(?string $value = null): self { $this->failedAt = $value; + $this->_setField('failedAt'); return $this; } @@ -423,6 +437,7 @@ public function getFailureReason(): ?string public function setFailureReason(?string $value = null): self { $this->failureReason = $value; + $this->_setField('failureReason'); return $this; } diff --git a/src/Types/GetBankAccountByV1IdResponse.php b/src/Types/GetBankAccountByV1IdResponse.php index ddfb7e93..a80e0c59 100644 --- a/src/Types/GetBankAccountByV1IdResponse.php +++ b/src/Types/GetBankAccountByV1IdResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getBankAccount(): ?BankAccount public function setBankAccount(?BankAccount $value = null): self { $this->bankAccount = $value; + $this->_setField('bankAccount'); return $this; } diff --git a/src/Types/GetBankAccountResponse.php b/src/Types/GetBankAccountResponse.php index bdcc099e..78a460a7 100644 --- a/src/Types/GetBankAccountResponse.php +++ b/src/Types/GetBankAccountResponse.php @@ -50,6 +50,7 @@ public function getBankAccount(): ?BankAccount public function setBankAccount(?BankAccount $value = null): self { $this->bankAccount = $value; + $this->_setField('bankAccount'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/GetBookingResponse.php b/src/Types/GetBookingResponse.php index f6e642a0..3bb1e82c 100644 --- a/src/Types/GetBookingResponse.php +++ b/src/Types/GetBookingResponse.php @@ -47,6 +47,7 @@ public function getBooking(): ?Booking public function setBooking(?Booking $value = null): self { $this->booking = $value; + $this->_setField('booking'); return $this; } @@ -64,6 +65,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/GetBreakTypeResponse.php b/src/Types/GetBreakTypeResponse.php index 86f971c9..55910efa 100644 --- a/src/Types/GetBreakTypeResponse.php +++ b/src/Types/GetBreakTypeResponse.php @@ -52,6 +52,7 @@ public function getBreakType(): ?BreakType public function setBreakType(?BreakType $value = null): self { $this->breakType = $value; + $this->_setField('breakType'); return $this; } @@ -69,6 +70,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/GetBusinessBookingProfileResponse.php b/src/Types/GetBusinessBookingProfileResponse.php index 93717724..8dcc6c80 100644 --- a/src/Types/GetBusinessBookingProfileResponse.php +++ b/src/Types/GetBusinessBookingProfileResponse.php @@ -47,6 +47,7 @@ public function getBusinessBookingProfile(): ?BusinessBookingProfile public function setBusinessBookingProfile(?BusinessBookingProfile $value = null): self { $this->businessBookingProfile = $value; + $this->_setField('businessBookingProfile'); return $this; } @@ -64,6 +65,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/GetCardResponse.php b/src/Types/GetCardResponse.php index 01c079bb..18b2113b 100644 --- a/src/Types/GetCardResponse.php +++ b/src/Types/GetCardResponse.php @@ -54,6 +54,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -71,6 +72,7 @@ public function getCard(): ?Card public function setCard(?Card $value = null): self { $this->card = $value; + $this->_setField('card'); return $this; } diff --git a/src/Types/GetCashDrawerShiftResponse.php b/src/Types/GetCashDrawerShiftResponse.php index cfec658d..cc0b3334 100644 --- a/src/Types/GetCashDrawerShiftResponse.php +++ b/src/Types/GetCashDrawerShiftResponse.php @@ -47,6 +47,7 @@ public function getCashDrawerShift(): ?CashDrawerShift public function setCashDrawerShift(?CashDrawerShift $value = null): self { $this->cashDrawerShift = $value; + $this->_setField('cashDrawerShift'); return $this; } @@ -64,6 +65,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/GetCatalogObjectResponse.php b/src/Types/GetCatalogObjectResponse.php index 412d38b2..916e9a47 100644 --- a/src/Types/GetCatalogObjectResponse.php +++ b/src/Types/GetCatalogObjectResponse.php @@ -55,6 +55,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -72,6 +73,7 @@ public function getObject(): ?CatalogObject public function setObject(?CatalogObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } @@ -89,6 +91,7 @@ public function getRelatedObjects(): ?array public function setRelatedObjects(?array $value = null): self { $this->relatedObjects = $value; + $this->_setField('relatedObjects'); return $this; } diff --git a/src/Types/GetCustomerCustomAttributeDefinitionResponse.php b/src/Types/GetCustomerCustomAttributeDefinitionResponse.php index a3483e25..e5d2b9f8 100644 --- a/src/Types/GetCustomerCustomAttributeDefinitionResponse.php +++ b/src/Types/GetCustomerCustomAttributeDefinitionResponse.php @@ -51,6 +51,7 @@ public function getCustomAttributeDefinition(): ?CustomAttributeDefinition public function setCustomAttributeDefinition(?CustomAttributeDefinition $value = null): self { $this->customAttributeDefinition = $value; + $this->_setField('customAttributeDefinition'); return $this; } @@ -68,6 +69,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/GetCustomerCustomAttributeResponse.php b/src/Types/GetCustomerCustomAttributeResponse.php index 60c13a0f..ca06df5a 100644 --- a/src/Types/GetCustomerCustomAttributeResponse.php +++ b/src/Types/GetCustomerCustomAttributeResponse.php @@ -54,6 +54,7 @@ public function getCustomAttribute(): ?CustomAttribute public function setCustomAttribute(?CustomAttribute $value = null): self { $this->customAttribute = $value; + $this->_setField('customAttribute'); return $this; } @@ -71,6 +72,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/GetCustomerGroupResponse.php b/src/Types/GetCustomerGroupResponse.php index dc426fcc..cc42f18c 100644 --- a/src/Types/GetCustomerGroupResponse.php +++ b/src/Types/GetCustomerGroupResponse.php @@ -53,6 +53,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -70,6 +71,7 @@ public function getGroup(): ?CustomerGroup public function setGroup(?CustomerGroup $value = null): self { $this->group = $value; + $this->_setField('group'); return $this; } diff --git a/src/Types/GetCustomerResponse.php b/src/Types/GetCustomerResponse.php index fac29b8c..683ad9de 100644 --- a/src/Types/GetCustomerResponse.php +++ b/src/Types/GetCustomerResponse.php @@ -53,6 +53,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -70,6 +71,7 @@ public function getCustomer(): ?Customer public function setCustomer(?Customer $value = null): self { $this->customer = $value; + $this->_setField('customer'); return $this; } diff --git a/src/Types/GetCustomerSegmentResponse.php b/src/Types/GetCustomerSegmentResponse.php index fecd2316..514e22a6 100644 --- a/src/Types/GetCustomerSegmentResponse.php +++ b/src/Types/GetCustomerSegmentResponse.php @@ -52,6 +52,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -69,6 +70,7 @@ public function getSegment(): ?CustomerSegment public function setSegment(?CustomerSegment $value = null): self { $this->segment = $value; + $this->_setField('segment'); return $this; } diff --git a/src/Types/GetDeviceCodeResponse.php b/src/Types/GetDeviceCodeResponse.php index 50a873fb..79f28c77 100644 --- a/src/Types/GetDeviceCodeResponse.php +++ b/src/Types/GetDeviceCodeResponse.php @@ -47,6 +47,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -64,6 +65,7 @@ public function getDeviceCode(): ?DeviceCode public function setDeviceCode(?DeviceCode $value = null): self { $this->deviceCode = $value; + $this->_setField('deviceCode'); return $this; } diff --git a/src/Types/GetDeviceResponse.php b/src/Types/GetDeviceResponse.php index d059343c..ea846b9f 100644 --- a/src/Types/GetDeviceResponse.php +++ b/src/Types/GetDeviceResponse.php @@ -47,6 +47,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -64,6 +65,7 @@ public function getDevice(): ?Device public function setDevice(?Device $value = null): self { $this->device = $value; + $this->_setField('device'); return $this; } diff --git a/src/Types/GetDisputeEvidenceResponse.php b/src/Types/GetDisputeEvidenceResponse.php index c15eb39f..bcd578d0 100644 --- a/src/Types/GetDisputeEvidenceResponse.php +++ b/src/Types/GetDisputeEvidenceResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getEvidence(): ?DisputeEvidence public function setEvidence(?DisputeEvidence $value = null): self { $this->evidence = $value; + $this->_setField('evidence'); return $this; } diff --git a/src/Types/GetDisputeResponse.php b/src/Types/GetDisputeResponse.php index 281b2bdc..5651ce19 100644 --- a/src/Types/GetDisputeResponse.php +++ b/src/Types/GetDisputeResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getDispute(): ?Dispute public function setDispute(?Dispute $value = null): self { $this->dispute = $value; + $this->_setField('dispute'); return $this; } diff --git a/src/Types/GetEmployeeResponse.php b/src/Types/GetEmployeeResponse.php index 1dac3444..4a35d932 100644 --- a/src/Types/GetEmployeeResponse.php +++ b/src/Types/GetEmployeeResponse.php @@ -47,6 +47,7 @@ public function getEmployee(): ?Employee public function setEmployee(?Employee $value = null): self { $this->employee = $value; + $this->_setField('employee'); return $this; } @@ -64,6 +65,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/GetEmployeeWageResponse.php b/src/Types/GetEmployeeWageResponse.php index 6ff2b0ea..55b6de92 100644 --- a/src/Types/GetEmployeeWageResponse.php +++ b/src/Types/GetEmployeeWageResponse.php @@ -52,6 +52,7 @@ public function getEmployeeWage(): ?EmployeeWage public function setEmployeeWage(?EmployeeWage $value = null): self { $this->employeeWage = $value; + $this->_setField('employeeWage'); return $this; } @@ -69,6 +70,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/GetGiftCardFromGanResponse.php b/src/Types/GetGiftCardFromGanResponse.php index ceb44f31..6103eab1 100644 --- a/src/Types/GetGiftCardFromGanResponse.php +++ b/src/Types/GetGiftCardFromGanResponse.php @@ -51,6 +51,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -68,6 +69,7 @@ public function getGiftCard(): ?GiftCard public function setGiftCard(?GiftCard $value = null): self { $this->giftCard = $value; + $this->_setField('giftCard'); return $this; } diff --git a/src/Types/GetGiftCardFromNonceResponse.php b/src/Types/GetGiftCardFromNonceResponse.php index facc5f14..648afca0 100644 --- a/src/Types/GetGiftCardFromNonceResponse.php +++ b/src/Types/GetGiftCardFromNonceResponse.php @@ -51,6 +51,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -68,6 +69,7 @@ public function getGiftCard(): ?GiftCard public function setGiftCard(?GiftCard $value = null): self { $this->giftCard = $value; + $this->_setField('giftCard'); return $this; } diff --git a/src/Types/GetGiftCardResponse.php b/src/Types/GetGiftCardResponse.php index ab265f2a..575e0dd3 100644 --- a/src/Types/GetGiftCardResponse.php +++ b/src/Types/GetGiftCardResponse.php @@ -51,6 +51,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -68,6 +69,7 @@ public function getGiftCard(): ?GiftCard public function setGiftCard(?GiftCard $value = null): self { $this->giftCard = $value; + $this->_setField('giftCard'); return $this; } diff --git a/src/Types/GetInventoryAdjustmentResponse.php b/src/Types/GetInventoryAdjustmentResponse.php index 36f85df9..895fad80 100644 --- a/src/Types/GetInventoryAdjustmentResponse.php +++ b/src/Types/GetInventoryAdjustmentResponse.php @@ -47,6 +47,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -64,6 +65,7 @@ public function getAdjustment(): ?InventoryAdjustment public function setAdjustment(?InventoryAdjustment $value = null): self { $this->adjustment = $value; + $this->_setField('adjustment'); return $this; } diff --git a/src/Types/GetInventoryChangesResponse.php b/src/Types/GetInventoryChangesResponse.php index 011e3cdd..76f9fe0d 100644 --- a/src/Types/GetInventoryChangesResponse.php +++ b/src/Types/GetInventoryChangesResponse.php @@ -60,6 +60,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -77,6 +78,7 @@ public function getChanges(): ?array public function setChanges(?array $value = null): self { $this->changes = $value; + $this->_setField('changes'); return $this; } @@ -94,6 +96,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/GetInventoryCountResponse.php b/src/Types/GetInventoryCountResponse.php index f4b49af3..03c3ac66 100644 --- a/src/Types/GetInventoryCountResponse.php +++ b/src/Types/GetInventoryCountResponse.php @@ -63,6 +63,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -80,6 +81,7 @@ public function getCounts(): ?array public function setCounts(?array $value = null): self { $this->counts = $value; + $this->_setField('counts'); return $this; } @@ -97,6 +99,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/GetInventoryPhysicalCountResponse.php b/src/Types/GetInventoryPhysicalCountResponse.php index 16ad3aaf..ff01293a 100644 --- a/src/Types/GetInventoryPhysicalCountResponse.php +++ b/src/Types/GetInventoryPhysicalCountResponse.php @@ -47,6 +47,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -64,6 +65,7 @@ public function getCount(): ?InventoryPhysicalCount public function setCount(?InventoryPhysicalCount $value = null): self { $this->count = $value; + $this->_setField('count'); return $this; } diff --git a/src/Types/GetInventoryTransferResponse.php b/src/Types/GetInventoryTransferResponse.php index 89dab570..9450786e 100644 --- a/src/Types/GetInventoryTransferResponse.php +++ b/src/Types/GetInventoryTransferResponse.php @@ -47,6 +47,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -64,6 +65,7 @@ public function getTransfer(): ?InventoryTransfer public function setTransfer(?InventoryTransfer $value = null): self { $this->transfer = $value; + $this->_setField('transfer'); return $this; } diff --git a/src/Types/GetInvoiceResponse.php b/src/Types/GetInvoiceResponse.php index fc5fb0bc..9d1d04c3 100644 --- a/src/Types/GetInvoiceResponse.php +++ b/src/Types/GetInvoiceResponse.php @@ -50,6 +50,7 @@ public function getInvoice(): ?Invoice public function setInvoice(?Invoice $value = null): self { $this->invoice = $value; + $this->_setField('invoice'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/GetLocationResponse.php b/src/Types/GetLocationResponse.php index 3cc510c6..aa503733 100644 --- a/src/Types/GetLocationResponse.php +++ b/src/Types/GetLocationResponse.php @@ -51,6 +51,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -68,6 +69,7 @@ public function getLocation(): ?Location public function setLocation(?Location $value = null): self { $this->location = $value; + $this->_setField('location'); return $this; } diff --git a/src/Types/GetLoyaltyAccountResponse.php b/src/Types/GetLoyaltyAccountResponse.php index 87f56563..d4d882dc 100644 --- a/src/Types/GetLoyaltyAccountResponse.php +++ b/src/Types/GetLoyaltyAccountResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getLoyaltyAccount(): ?LoyaltyAccount public function setLoyaltyAccount(?LoyaltyAccount $value = null): self { $this->loyaltyAccount = $value; + $this->_setField('loyaltyAccount'); return $this; } diff --git a/src/Types/GetLoyaltyProgramResponse.php b/src/Types/GetLoyaltyProgramResponse.php index 7ee598ab..3f9e18ef 100644 --- a/src/Types/GetLoyaltyProgramResponse.php +++ b/src/Types/GetLoyaltyProgramResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getProgram(): ?LoyaltyProgram public function setProgram(?LoyaltyProgram $value = null): self { $this->program = $value; + $this->_setField('program'); return $this; } diff --git a/src/Types/GetLoyaltyPromotionResponse.php b/src/Types/GetLoyaltyPromotionResponse.php index d4fd40b0..5dc4bac7 100644 --- a/src/Types/GetLoyaltyPromotionResponse.php +++ b/src/Types/GetLoyaltyPromotionResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getLoyaltyPromotion(): ?LoyaltyPromotion public function setLoyaltyPromotion(?LoyaltyPromotion $value = null): self { $this->loyaltyPromotion = $value; + $this->_setField('loyaltyPromotion'); return $this; } diff --git a/src/Types/GetLoyaltyRewardResponse.php b/src/Types/GetLoyaltyRewardResponse.php index 6d493595..8091be14 100644 --- a/src/Types/GetLoyaltyRewardResponse.php +++ b/src/Types/GetLoyaltyRewardResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getReward(): ?LoyaltyReward public function setReward(?LoyaltyReward $value = null): self { $this->reward = $value; + $this->_setField('reward'); return $this; } diff --git a/src/Types/GetMerchantResponse.php b/src/Types/GetMerchantResponse.php index 86cb224c..803e65cc 100644 --- a/src/Types/GetMerchantResponse.php +++ b/src/Types/GetMerchantResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getMerchant(): ?Merchant public function setMerchant(?Merchant $value = null): self { $this->merchant = $value; + $this->_setField('merchant'); return $this; } diff --git a/src/Types/GetOrderResponse.php b/src/Types/GetOrderResponse.php index cc7920f3..254f8520 100644 --- a/src/Types/GetOrderResponse.php +++ b/src/Types/GetOrderResponse.php @@ -47,6 +47,7 @@ public function getOrder(): ?Order public function setOrder(?Order $value = null): self { $this->order = $value; + $this->_setField('order'); return $this; } @@ -64,6 +65,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/GetPaymentLinkResponse.php b/src/Types/GetPaymentLinkResponse.php index eeed461a..e12d9fa1 100644 --- a/src/Types/GetPaymentLinkResponse.php +++ b/src/Types/GetPaymentLinkResponse.php @@ -47,6 +47,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -64,6 +65,7 @@ public function getPaymentLink(): ?PaymentLink public function setPaymentLink(?PaymentLink $value = null): self { $this->paymentLink = $value; + $this->_setField('paymentLink'); return $this; } diff --git a/src/Types/GetPaymentRefundResponse.php b/src/Types/GetPaymentRefundResponse.php index a16d4aab..6abad9eb 100644 --- a/src/Types/GetPaymentRefundResponse.php +++ b/src/Types/GetPaymentRefundResponse.php @@ -53,6 +53,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -70,6 +71,7 @@ public function getRefund(): ?PaymentRefund public function setRefund(?PaymentRefund $value = null): self { $this->refund = $value; + $this->_setField('refund'); return $this; } diff --git a/src/Types/GetPaymentResponse.php b/src/Types/GetPaymentResponse.php index a9a3f2e4..1d8e8955 100644 --- a/src/Types/GetPaymentResponse.php +++ b/src/Types/GetPaymentResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getPayment(): ?Payment public function setPayment(?Payment $value = null): self { $this->payment = $value; + $this->_setField('payment'); return $this; } diff --git a/src/Types/GetPayoutResponse.php b/src/Types/GetPayoutResponse.php index 6f16556b..10c544c6 100644 --- a/src/Types/GetPayoutResponse.php +++ b/src/Types/GetPayoutResponse.php @@ -47,6 +47,7 @@ public function getPayout(): ?Payout public function setPayout(?Payout $value = null): self { $this->payout = $value; + $this->_setField('payout'); return $this; } @@ -64,6 +65,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/GetShiftResponse.php b/src/Types/GetShiftResponse.php index 1edf5ef9..0b60d0d2 100644 --- a/src/Types/GetShiftResponse.php +++ b/src/Types/GetShiftResponse.php @@ -52,6 +52,7 @@ public function getShift(): ?Shift public function setShift(?Shift $value = null): self { $this->shift = $value; + $this->_setField('shift'); return $this; } @@ -69,6 +70,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/GetSnippetResponse.php b/src/Types/GetSnippetResponse.php index 44aa373e..d7d47f69 100644 --- a/src/Types/GetSnippetResponse.php +++ b/src/Types/GetSnippetResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getSnippet(): ?Snippet public function setSnippet(?Snippet $value = null): self { $this->snippet = $value; + $this->_setField('snippet'); return $this; } diff --git a/src/Types/GetSubscriptionResponse.php b/src/Types/GetSubscriptionResponse.php index 2996b05d..65173201 100644 --- a/src/Types/GetSubscriptionResponse.php +++ b/src/Types/GetSubscriptionResponse.php @@ -51,6 +51,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -68,6 +69,7 @@ public function getSubscription(): ?Subscription public function setSubscription(?Subscription $value = null): self { $this->subscription = $value; + $this->_setField('subscription'); return $this; } diff --git a/src/Types/GetTeamMemberBookingProfileResponse.php b/src/Types/GetTeamMemberBookingProfileResponse.php index 6da0cbf3..e1431c9c 100644 --- a/src/Types/GetTeamMemberBookingProfileResponse.php +++ b/src/Types/GetTeamMemberBookingProfileResponse.php @@ -47,6 +47,7 @@ public function getTeamMemberBookingProfile(): ?TeamMemberBookingProfile public function setTeamMemberBookingProfile(?TeamMemberBookingProfile $value = null): self { $this->teamMemberBookingProfile = $value; + $this->_setField('teamMemberBookingProfile'); return $this; } @@ -64,6 +65,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/GetTeamMemberResponse.php b/src/Types/GetTeamMemberResponse.php index 2d908936..9cf5a8ea 100644 --- a/src/Types/GetTeamMemberResponse.php +++ b/src/Types/GetTeamMemberResponse.php @@ -50,6 +50,7 @@ public function getTeamMember(): ?TeamMember public function setTeamMember(?TeamMember $value = null): self { $this->teamMember = $value; + $this->_setField('teamMember'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/GetTeamMemberWageResponse.php b/src/Types/GetTeamMemberWageResponse.php index d3c9c643..9996b4f7 100644 --- a/src/Types/GetTeamMemberWageResponse.php +++ b/src/Types/GetTeamMemberWageResponse.php @@ -52,6 +52,7 @@ public function getTeamMemberWage(): ?TeamMemberWage public function setTeamMemberWage(?TeamMemberWage $value = null): self { $this->teamMemberWage = $value; + $this->_setField('teamMemberWage'); return $this; } @@ -69,6 +70,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/GetTerminalActionResponse.php b/src/Types/GetTerminalActionResponse.php index b6881a80..51385aea 100644 --- a/src/Types/GetTerminalActionResponse.php +++ b/src/Types/GetTerminalActionResponse.php @@ -47,6 +47,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -64,6 +65,7 @@ public function getAction(): ?TerminalAction public function setAction(?TerminalAction $value = null): self { $this->action = $value; + $this->_setField('action'); return $this; } diff --git a/src/Types/GetTerminalCheckoutResponse.php b/src/Types/GetTerminalCheckoutResponse.php index d1ec6e6e..7c4a8134 100644 --- a/src/Types/GetTerminalCheckoutResponse.php +++ b/src/Types/GetTerminalCheckoutResponse.php @@ -47,6 +47,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -64,6 +65,7 @@ public function getCheckout(): ?TerminalCheckout public function setCheckout(?TerminalCheckout $value = null): self { $this->checkout = $value; + $this->_setField('checkout'); return $this; } diff --git a/src/Types/GetTerminalRefundResponse.php b/src/Types/GetTerminalRefundResponse.php index 38f6bce9..40f4283f 100644 --- a/src/Types/GetTerminalRefundResponse.php +++ b/src/Types/GetTerminalRefundResponse.php @@ -47,6 +47,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -64,6 +65,7 @@ public function getRefund(): ?TerminalRefund public function setRefund(?TerminalRefund $value = null): self { $this->refund = $value; + $this->_setField('refund'); return $this; } diff --git a/src/Types/GetTransactionResponse.php b/src/Types/GetTransactionResponse.php index 5f4ec09b..f679a772 100644 --- a/src/Types/GetTransactionResponse.php +++ b/src/Types/GetTransactionResponse.php @@ -53,6 +53,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -70,6 +71,7 @@ public function getTransaction(): ?Transaction public function setTransaction(?Transaction $value = null): self { $this->transaction = $value; + $this->_setField('transaction'); return $this; } diff --git a/src/Types/GetVendorResponse.php b/src/Types/GetVendorResponse.php index cc2a15cb..c32c80d3 100644 --- a/src/Types/GetVendorResponse.php +++ b/src/Types/GetVendorResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getVendor(): ?Vendor public function setVendor(?Vendor $value = null): self { $this->vendor = $value; + $this->_setField('vendor'); return $this; } diff --git a/src/Types/GetWageSettingResponse.php b/src/Types/GetWageSettingResponse.php index aa64965e..ad327d95 100644 --- a/src/Types/GetWageSettingResponse.php +++ b/src/Types/GetWageSettingResponse.php @@ -50,6 +50,7 @@ public function getWageSetting(): ?WageSetting public function setWageSetting(?WageSetting $value = null): self { $this->wageSetting = $value; + $this->_setField('wageSetting'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/GetWebhookSubscriptionResponse.php b/src/Types/GetWebhookSubscriptionResponse.php index f9798bf9..7ece3902 100644 --- a/src/Types/GetWebhookSubscriptionResponse.php +++ b/src/Types/GetWebhookSubscriptionResponse.php @@ -54,6 +54,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -71,6 +72,7 @@ public function getSubscription(): ?WebhookSubscription public function setSubscription(?WebhookSubscription $value = null): self { $this->subscription = $value; + $this->_setField('subscription'); return $this; } diff --git a/src/Types/GiftCard.php b/src/Types/GiftCard.php index f470bfda..dde6502e 100644 --- a/src/Types/GiftCard.php +++ b/src/Types/GiftCard.php @@ -116,6 +116,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -133,6 +134,7 @@ public function getType(): string public function setType(string $value): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -150,6 +152,7 @@ public function getGanSource(): ?string public function setGanSource(?string $value = null): self { $this->ganSource = $value; + $this->_setField('ganSource'); return $this; } @@ -167,6 +170,7 @@ public function getState(): ?string public function setState(?string $value = null): self { $this->state = $value; + $this->_setField('state'); return $this; } @@ -184,6 +188,7 @@ public function getBalanceMoney(): ?Money public function setBalanceMoney(?Money $value = null): self { $this->balanceMoney = $value; + $this->_setField('balanceMoney'); return $this; } @@ -201,6 +206,7 @@ public function getGan(): ?string public function setGan(?string $value = null): self { $this->gan = $value; + $this->_setField('gan'); return $this; } @@ -218,6 +224,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -235,6 +242,7 @@ public function getCustomerIds(): ?array public function setCustomerIds(?array $value = null): self { $this->customerIds = $value; + $this->_setField('customerIds'); return $this; } diff --git a/src/Types/GiftCardActivity.php b/src/Types/GiftCardActivity.php index 38fea9c1..afd590d0 100644 --- a/src/Types/GiftCardActivity.php +++ b/src/Types/GiftCardActivity.php @@ -260,6 +260,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -277,6 +278,7 @@ public function getType(): string public function setType(string $value): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -294,6 +296,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -311,6 +314,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -328,6 +332,7 @@ public function getGiftCardId(): ?string public function setGiftCardId(?string $value = null): self { $this->giftCardId = $value; + $this->_setField('giftCardId'); return $this; } @@ -345,6 +350,7 @@ public function getGiftCardGan(): ?string public function setGiftCardGan(?string $value = null): self { $this->giftCardGan = $value; + $this->_setField('giftCardGan'); return $this; } @@ -362,6 +368,7 @@ public function getGiftCardBalanceMoney(): ?Money public function setGiftCardBalanceMoney(?Money $value = null): self { $this->giftCardBalanceMoney = $value; + $this->_setField('giftCardBalanceMoney'); return $this; } @@ -379,6 +386,7 @@ public function getLoadActivityDetails(): ?GiftCardActivityLoad public function setLoadActivityDetails(?GiftCardActivityLoad $value = null): self { $this->loadActivityDetails = $value; + $this->_setField('loadActivityDetails'); return $this; } @@ -396,6 +404,7 @@ public function getActivateActivityDetails(): ?GiftCardActivityActivate public function setActivateActivityDetails(?GiftCardActivityActivate $value = null): self { $this->activateActivityDetails = $value; + $this->_setField('activateActivityDetails'); return $this; } @@ -413,6 +422,7 @@ public function getRedeemActivityDetails(): ?GiftCardActivityRedeem public function setRedeemActivityDetails(?GiftCardActivityRedeem $value = null): self { $this->redeemActivityDetails = $value; + $this->_setField('redeemActivityDetails'); return $this; } @@ -430,6 +440,7 @@ public function getClearBalanceActivityDetails(): ?GiftCardActivityClearBalance public function setClearBalanceActivityDetails(?GiftCardActivityClearBalance $value = null): self { $this->clearBalanceActivityDetails = $value; + $this->_setField('clearBalanceActivityDetails'); return $this; } @@ -447,6 +458,7 @@ public function getDeactivateActivityDetails(): ?GiftCardActivityDeactivate public function setDeactivateActivityDetails(?GiftCardActivityDeactivate $value = null): self { $this->deactivateActivityDetails = $value; + $this->_setField('deactivateActivityDetails'); return $this; } @@ -464,6 +476,7 @@ public function getAdjustIncrementActivityDetails(): ?GiftCardActivityAdjustIncr public function setAdjustIncrementActivityDetails(?GiftCardActivityAdjustIncrement $value = null): self { $this->adjustIncrementActivityDetails = $value; + $this->_setField('adjustIncrementActivityDetails'); return $this; } @@ -481,6 +494,7 @@ public function getAdjustDecrementActivityDetails(): ?GiftCardActivityAdjustDecr public function setAdjustDecrementActivityDetails(?GiftCardActivityAdjustDecrement $value = null): self { $this->adjustDecrementActivityDetails = $value; + $this->_setField('adjustDecrementActivityDetails'); return $this; } @@ -498,6 +512,7 @@ public function getRefundActivityDetails(): ?GiftCardActivityRefund public function setRefundActivityDetails(?GiftCardActivityRefund $value = null): self { $this->refundActivityDetails = $value; + $this->_setField('refundActivityDetails'); return $this; } @@ -515,6 +530,7 @@ public function getUnlinkedActivityRefundActivityDetails(): ?GiftCardActivityUnl public function setUnlinkedActivityRefundActivityDetails(?GiftCardActivityUnlinkedActivityRefund $value = null): self { $this->unlinkedActivityRefundActivityDetails = $value; + $this->_setField('unlinkedActivityRefundActivityDetails'); return $this; } @@ -532,6 +548,7 @@ public function getImportActivityDetails(): ?GiftCardActivityImport public function setImportActivityDetails(?GiftCardActivityImport $value = null): self { $this->importActivityDetails = $value; + $this->_setField('importActivityDetails'); return $this; } @@ -549,6 +566,7 @@ public function getBlockActivityDetails(): ?GiftCardActivityBlock public function setBlockActivityDetails(?GiftCardActivityBlock $value = null): self { $this->blockActivityDetails = $value; + $this->_setField('blockActivityDetails'); return $this; } @@ -566,6 +584,7 @@ public function getUnblockActivityDetails(): ?GiftCardActivityUnblock public function setUnblockActivityDetails(?GiftCardActivityUnblock $value = null): self { $this->unblockActivityDetails = $value; + $this->_setField('unblockActivityDetails'); return $this; } @@ -583,6 +602,7 @@ public function getImportReversalActivityDetails(): ?GiftCardActivityImportRever public function setImportReversalActivityDetails(?GiftCardActivityImportReversal $value = null): self { $this->importReversalActivityDetails = $value; + $this->_setField('importReversalActivityDetails'); return $this; } @@ -600,6 +620,7 @@ public function getTransferBalanceToActivityDetails(): ?GiftCardActivityTransfer public function setTransferBalanceToActivityDetails(?GiftCardActivityTransferBalanceTo $value = null): self { $this->transferBalanceToActivityDetails = $value; + $this->_setField('transferBalanceToActivityDetails'); return $this; } @@ -617,6 +638,7 @@ public function getTransferBalanceFromActivityDetails(): ?GiftCardActivityTransf public function setTransferBalanceFromActivityDetails(?GiftCardActivityTransferBalanceFrom $value = null): self { $this->transferBalanceFromActivityDetails = $value; + $this->_setField('transferBalanceFromActivityDetails'); return $this; } diff --git a/src/Types/GiftCardActivityActivate.php b/src/Types/GiftCardActivityActivate.php index 5b414c94..47e2d161 100644 --- a/src/Types/GiftCardActivityActivate.php +++ b/src/Types/GiftCardActivityActivate.php @@ -106,6 +106,7 @@ public function getAmountMoney(): ?Money public function setAmountMoney(?Money $value = null): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } @@ -123,6 +124,7 @@ public function getOrderId(): ?string public function setOrderId(?string $value = null): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } @@ -140,6 +142,7 @@ public function getLineItemUid(): ?string public function setLineItemUid(?string $value = null): self { $this->lineItemUid = $value; + $this->_setField('lineItemUid'); return $this; } @@ -157,6 +160,7 @@ public function getReferenceId(): ?string public function setReferenceId(?string $value = null): self { $this->referenceId = $value; + $this->_setField('referenceId'); return $this; } @@ -174,6 +178,7 @@ public function getBuyerPaymentInstrumentIds(): ?array public function setBuyerPaymentInstrumentIds(?array $value = null): self { $this->buyerPaymentInstrumentIds = $value; + $this->_setField('buyerPaymentInstrumentIds'); return $this; } diff --git a/src/Types/GiftCardActivityAdjustDecrement.php b/src/Types/GiftCardActivityAdjustDecrement.php index fc42e88b..5c50fd51 100644 --- a/src/Types/GiftCardActivityAdjustDecrement.php +++ b/src/Types/GiftCardActivityAdjustDecrement.php @@ -52,6 +52,7 @@ public function getAmountMoney(): Money public function setAmountMoney(Money $value): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } @@ -69,6 +70,7 @@ public function getReason(): string public function setReason(string $value): self { $this->reason = $value; + $this->_setField('reason'); return $this; } diff --git a/src/Types/GiftCardActivityAdjustIncrement.php b/src/Types/GiftCardActivityAdjustIncrement.php index 76783857..866d51c9 100644 --- a/src/Types/GiftCardActivityAdjustIncrement.php +++ b/src/Types/GiftCardActivityAdjustIncrement.php @@ -52,6 +52,7 @@ public function getAmountMoney(): Money public function setAmountMoney(Money $value): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } @@ -69,6 +70,7 @@ public function getReason(): string public function setReason(string $value): self { $this->reason = $value; + $this->_setField('reason'); return $this; } diff --git a/src/Types/GiftCardActivityBlock.php b/src/Types/GiftCardActivityBlock.php index 5391e9e8..25de11de 100644 --- a/src/Types/GiftCardActivityBlock.php +++ b/src/Types/GiftCardActivityBlock.php @@ -44,6 +44,7 @@ public function getReason(): string public function setReason(string $value): self { $this->reason = $value; + $this->_setField('reason'); return $this; } diff --git a/src/Types/GiftCardActivityClearBalance.php b/src/Types/GiftCardActivityClearBalance.php index 4df14119..12134473 100644 --- a/src/Types/GiftCardActivityClearBalance.php +++ b/src/Types/GiftCardActivityClearBalance.php @@ -44,6 +44,7 @@ public function getReason(): string public function setReason(string $value): self { $this->reason = $value; + $this->_setField('reason'); return $this; } diff --git a/src/Types/GiftCardActivityCreatedEvent.php b/src/Types/GiftCardActivityCreatedEvent.php index 87e0bfc2..5ca4c5c7 100644 --- a/src/Types/GiftCardActivityCreatedEvent.php +++ b/src/Types/GiftCardActivityCreatedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?GiftCardActivityCreatedEventData public function setData(?GiftCardActivityCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/GiftCardActivityCreatedEventData.php b/src/Types/GiftCardActivityCreatedEventData.php index 170f0ac0..d425565a 100644 --- a/src/Types/GiftCardActivityCreatedEventData.php +++ b/src/Types/GiftCardActivityCreatedEventData.php @@ -57,6 +57,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -74,6 +75,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -91,6 +93,7 @@ public function getObject(): ?GiftCardActivityCreatedEventObject public function setObject(?GiftCardActivityCreatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/GiftCardActivityCreatedEventObject.php b/src/Types/GiftCardActivityCreatedEventObject.php index e26ad017..cda1332f 100644 --- a/src/Types/GiftCardActivityCreatedEventObject.php +++ b/src/Types/GiftCardActivityCreatedEventObject.php @@ -42,6 +42,7 @@ public function getGiftCardActivity(): ?GiftCardActivity public function setGiftCardActivity(?GiftCardActivity $value = null): self { $this->giftCardActivity = $value; + $this->_setField('giftCardActivity'); return $this; } diff --git a/src/Types/GiftCardActivityDeactivate.php b/src/Types/GiftCardActivityDeactivate.php index dd90a52c..df448d01 100644 --- a/src/Types/GiftCardActivityDeactivate.php +++ b/src/Types/GiftCardActivityDeactivate.php @@ -44,6 +44,7 @@ public function getReason(): string public function setReason(string $value): self { $this->reason = $value; + $this->_setField('reason'); return $this; } diff --git a/src/Types/GiftCardActivityImport.php b/src/Types/GiftCardActivityImport.php index 7c8d9721..fc640822 100644 --- a/src/Types/GiftCardActivityImport.php +++ b/src/Types/GiftCardActivityImport.php @@ -43,6 +43,7 @@ public function getAmountMoney(): Money public function setAmountMoney(Money $value): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } diff --git a/src/Types/GiftCardActivityImportReversal.php b/src/Types/GiftCardActivityImportReversal.php index 83f94494..b536c597 100644 --- a/src/Types/GiftCardActivityImportReversal.php +++ b/src/Types/GiftCardActivityImportReversal.php @@ -44,6 +44,7 @@ public function getAmountMoney(): Money public function setAmountMoney(Money $value): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } diff --git a/src/Types/GiftCardActivityLoad.php b/src/Types/GiftCardActivityLoad.php index d9738f12..46a134e8 100644 --- a/src/Types/GiftCardActivityLoad.php +++ b/src/Types/GiftCardActivityLoad.php @@ -106,6 +106,7 @@ public function getAmountMoney(): ?Money public function setAmountMoney(?Money $value = null): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } @@ -123,6 +124,7 @@ public function getOrderId(): ?string public function setOrderId(?string $value = null): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } @@ -140,6 +142,7 @@ public function getLineItemUid(): ?string public function setLineItemUid(?string $value = null): self { $this->lineItemUid = $value; + $this->_setField('lineItemUid'); return $this; } @@ -157,6 +160,7 @@ public function getReferenceId(): ?string public function setReferenceId(?string $value = null): self { $this->referenceId = $value; + $this->_setField('referenceId'); return $this; } @@ -174,6 +178,7 @@ public function getBuyerPaymentInstrumentIds(): ?array public function setBuyerPaymentInstrumentIds(?array $value = null): self { $this->buyerPaymentInstrumentIds = $value; + $this->_setField('buyerPaymentInstrumentIds'); return $this; } diff --git a/src/Types/GiftCardActivityRedeem.php b/src/Types/GiftCardActivityRedeem.php index 0f4b1639..5a36c334 100644 --- a/src/Types/GiftCardActivityRedeem.php +++ b/src/Types/GiftCardActivityRedeem.php @@ -84,6 +84,7 @@ public function getAmountMoney(): Money public function setAmountMoney(Money $value): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } @@ -101,6 +102,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } @@ -118,6 +120,7 @@ public function getReferenceId(): ?string public function setReferenceId(?string $value = null): self { $this->referenceId = $value; + $this->_setField('referenceId'); return $this; } @@ -135,6 +138,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } diff --git a/src/Types/GiftCardActivityRefund.php b/src/Types/GiftCardActivityRefund.php index 2798ae65..ceb76601 100644 --- a/src/Types/GiftCardActivityRefund.php +++ b/src/Types/GiftCardActivityRefund.php @@ -80,6 +80,7 @@ public function getRedeemActivityId(): ?string public function setRedeemActivityId(?string $value = null): self { $this->redeemActivityId = $value; + $this->_setField('redeemActivityId'); return $this; } @@ -97,6 +98,7 @@ public function getAmountMoney(): ?Money public function setAmountMoney(?Money $value = null): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } @@ -114,6 +116,7 @@ public function getReferenceId(): ?string public function setReferenceId(?string $value = null): self { $this->referenceId = $value; + $this->_setField('referenceId'); return $this; } @@ -131,6 +134,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } diff --git a/src/Types/GiftCardActivityTransferBalanceFrom.php b/src/Types/GiftCardActivityTransferBalanceFrom.php index fb76ebff..cba525fe 100644 --- a/src/Types/GiftCardActivityTransferBalanceFrom.php +++ b/src/Types/GiftCardActivityTransferBalanceFrom.php @@ -49,6 +49,7 @@ public function getTransferToGiftCardId(): string public function setTransferToGiftCardId(string $value): self { $this->transferToGiftCardId = $value; + $this->_setField('transferToGiftCardId'); return $this; } @@ -66,6 +67,7 @@ public function getAmountMoney(): Money public function setAmountMoney(Money $value): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } diff --git a/src/Types/GiftCardActivityTransferBalanceTo.php b/src/Types/GiftCardActivityTransferBalanceTo.php index 4e233512..d105e2c5 100644 --- a/src/Types/GiftCardActivityTransferBalanceTo.php +++ b/src/Types/GiftCardActivityTransferBalanceTo.php @@ -49,6 +49,7 @@ public function getTransferFromGiftCardId(): string public function setTransferFromGiftCardId(string $value): self { $this->transferFromGiftCardId = $value; + $this->_setField('transferFromGiftCardId'); return $this; } @@ -66,6 +67,7 @@ public function getAmountMoney(): Money public function setAmountMoney(Money $value): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } diff --git a/src/Types/GiftCardActivityUnblock.php b/src/Types/GiftCardActivityUnblock.php index 5adb300d..74e2c72e 100644 --- a/src/Types/GiftCardActivityUnblock.php +++ b/src/Types/GiftCardActivityUnblock.php @@ -44,6 +44,7 @@ public function getReason(): string public function setReason(string $value): self { $this->reason = $value; + $this->_setField('reason'); return $this; } diff --git a/src/Types/GiftCardActivityUnlinkedActivityRefund.php b/src/Types/GiftCardActivityUnlinkedActivityRefund.php index ba17c024..e0e3974e 100644 --- a/src/Types/GiftCardActivityUnlinkedActivityRefund.php +++ b/src/Types/GiftCardActivityUnlinkedActivityRefund.php @@ -57,6 +57,7 @@ public function getAmountMoney(): Money public function setAmountMoney(Money $value): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } @@ -74,6 +75,7 @@ public function getReferenceId(): ?string public function setReferenceId(?string $value = null): self { $this->referenceId = $value; + $this->_setField('referenceId'); return $this; } @@ -91,6 +93,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } diff --git a/src/Types/GiftCardActivityUpdatedEvent.php b/src/Types/GiftCardActivityUpdatedEvent.php index d5ccc696..55960dd4 100644 --- a/src/Types/GiftCardActivityUpdatedEvent.php +++ b/src/Types/GiftCardActivityUpdatedEvent.php @@ -80,6 +80,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -97,6 +98,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -114,6 +116,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -131,6 +134,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -148,6 +152,7 @@ public function getData(): ?GiftCardActivityUpdatedEventData public function setData(?GiftCardActivityUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/GiftCardActivityUpdatedEventData.php b/src/Types/GiftCardActivityUpdatedEventData.php index addbc8e2..dd741059 100644 --- a/src/Types/GiftCardActivityUpdatedEventData.php +++ b/src/Types/GiftCardActivityUpdatedEventData.php @@ -57,6 +57,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -74,6 +75,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -91,6 +93,7 @@ public function getObject(): ?GiftCardActivityUpdatedEventObject public function setObject(?GiftCardActivityUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/GiftCardActivityUpdatedEventObject.php b/src/Types/GiftCardActivityUpdatedEventObject.php index aa129374..a2a7ebaa 100644 --- a/src/Types/GiftCardActivityUpdatedEventObject.php +++ b/src/Types/GiftCardActivityUpdatedEventObject.php @@ -42,6 +42,7 @@ public function getGiftCardActivity(): ?GiftCardActivity public function setGiftCardActivity(?GiftCardActivity $value = null): self { $this->giftCardActivity = $value; + $this->_setField('giftCardActivity'); return $this; } diff --git a/src/Types/GiftCardCreatedEvent.php b/src/Types/GiftCardCreatedEvent.php index 0f6c6d39..19eb5f66 100644 --- a/src/Types/GiftCardCreatedEvent.php +++ b/src/Types/GiftCardCreatedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?GiftCardCreatedEventData public function setData(?GiftCardCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/GiftCardCreatedEventData.php b/src/Types/GiftCardCreatedEventData.php index 4344b70d..5c43b3ae 100644 --- a/src/Types/GiftCardCreatedEventData.php +++ b/src/Types/GiftCardCreatedEventData.php @@ -57,6 +57,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -74,6 +75,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -91,6 +93,7 @@ public function getObject(): ?GiftCardCreatedEventObject public function setObject(?GiftCardCreatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/GiftCardCreatedEventObject.php b/src/Types/GiftCardCreatedEventObject.php index 4b6c1f53..3088786e 100644 --- a/src/Types/GiftCardCreatedEventObject.php +++ b/src/Types/GiftCardCreatedEventObject.php @@ -41,6 +41,7 @@ public function getGiftCard(): ?GiftCard public function setGiftCard(?GiftCard $value = null): self { $this->giftCard = $value; + $this->_setField('giftCard'); return $this; } diff --git a/src/Types/GiftCardCustomerLinkedEvent.php b/src/Types/GiftCardCustomerLinkedEvent.php index 2e5733a9..84526aa7 100644 --- a/src/Types/GiftCardCustomerLinkedEvent.php +++ b/src/Types/GiftCardCustomerLinkedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?GiftCardCustomerLinkedEventData public function setData(?GiftCardCustomerLinkedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/GiftCardCustomerLinkedEventData.php b/src/Types/GiftCardCustomerLinkedEventData.php index b1e8b89d..ec4a719e 100644 --- a/src/Types/GiftCardCustomerLinkedEventData.php +++ b/src/Types/GiftCardCustomerLinkedEventData.php @@ -57,6 +57,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -74,6 +75,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -91,6 +93,7 @@ public function getObject(): ?GiftCardCustomerLinkedEventObject public function setObject(?GiftCardCustomerLinkedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/GiftCardCustomerLinkedEventObject.php b/src/Types/GiftCardCustomerLinkedEventObject.php index 8a49418a..7ac364bd 100644 --- a/src/Types/GiftCardCustomerLinkedEventObject.php +++ b/src/Types/GiftCardCustomerLinkedEventObject.php @@ -50,6 +50,7 @@ public function getGiftCard(): ?GiftCard public function setGiftCard(?GiftCard $value = null): self { $this->giftCard = $value; + $this->_setField('giftCard'); return $this; } @@ -67,6 +68,7 @@ public function getLinkedCustomerId(): ?string public function setLinkedCustomerId(?string $value = null): self { $this->linkedCustomerId = $value; + $this->_setField('linkedCustomerId'); return $this; } diff --git a/src/Types/GiftCardCustomerUnlinkedEvent.php b/src/Types/GiftCardCustomerUnlinkedEvent.php index 08a87797..eb380ea0 100644 --- a/src/Types/GiftCardCustomerUnlinkedEvent.php +++ b/src/Types/GiftCardCustomerUnlinkedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?GiftCardCustomerUnlinkedEventData public function setData(?GiftCardCustomerUnlinkedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/GiftCardCustomerUnlinkedEventData.php b/src/Types/GiftCardCustomerUnlinkedEventData.php index 8b55e020..a219a79a 100644 --- a/src/Types/GiftCardCustomerUnlinkedEventData.php +++ b/src/Types/GiftCardCustomerUnlinkedEventData.php @@ -57,6 +57,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -74,6 +75,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -91,6 +93,7 @@ public function getObject(): ?GiftCardCustomerUnlinkedEventObject public function setObject(?GiftCardCustomerUnlinkedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/GiftCardCustomerUnlinkedEventObject.php b/src/Types/GiftCardCustomerUnlinkedEventObject.php index 0b1ab111..0407cf99 100644 --- a/src/Types/GiftCardCustomerUnlinkedEventObject.php +++ b/src/Types/GiftCardCustomerUnlinkedEventObject.php @@ -53,6 +53,7 @@ public function getGiftCard(): ?GiftCard public function setGiftCard(?GiftCard $value = null): self { $this->giftCard = $value; + $this->_setField('giftCard'); return $this; } @@ -70,6 +71,7 @@ public function getUnlinkedCustomerId(): ?string public function setUnlinkedCustomerId(?string $value = null): self { $this->unlinkedCustomerId = $value; + $this->_setField('unlinkedCustomerId'); return $this; } diff --git a/src/Types/GiftCardUpdatedEvent.php b/src/Types/GiftCardUpdatedEvent.php index 47cc1ea3..d46dd678 100644 --- a/src/Types/GiftCardUpdatedEvent.php +++ b/src/Types/GiftCardUpdatedEvent.php @@ -77,6 +77,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -94,6 +95,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -111,6 +113,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -128,6 +131,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -145,6 +149,7 @@ public function getData(): ?GiftCardUpdatedEventData public function setData(?GiftCardUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/GiftCardUpdatedEventData.php b/src/Types/GiftCardUpdatedEventData.php index 8b02cdf4..c61f2aa2 100644 --- a/src/Types/GiftCardUpdatedEventData.php +++ b/src/Types/GiftCardUpdatedEventData.php @@ -57,6 +57,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -74,6 +75,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -91,6 +93,7 @@ public function getObject(): ?GiftCardUpdatedEventObject public function setObject(?GiftCardUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/GiftCardUpdatedEventObject.php b/src/Types/GiftCardUpdatedEventObject.php index 802c396f..efbd0ec6 100644 --- a/src/Types/GiftCardUpdatedEventObject.php +++ b/src/Types/GiftCardUpdatedEventObject.php @@ -44,6 +44,7 @@ public function getGiftCard(): ?GiftCard public function setGiftCard(?GiftCard $value = null): self { $this->giftCard = $value; + $this->_setField('giftCard'); return $this; } diff --git a/src/Types/InventoryAdjustment.php b/src/Types/InventoryAdjustment.php index c459ff8e..96882b30 100644 --- a/src/Types/InventoryAdjustment.php +++ b/src/Types/InventoryAdjustment.php @@ -249,6 +249,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -266,6 +267,7 @@ public function getReferenceId(): ?string public function setReferenceId(?string $value = null): self { $this->referenceId = $value; + $this->_setField('referenceId'); return $this; } @@ -283,6 +285,7 @@ public function getFromState(): ?string public function setFromState(?string $value = null): self { $this->fromState = $value; + $this->_setField('fromState'); return $this; } @@ -300,6 +303,7 @@ public function getToState(): ?string public function setToState(?string $value = null): self { $this->toState = $value; + $this->_setField('toState'); return $this; } @@ -317,6 +321,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -334,6 +339,7 @@ public function getCatalogObjectId(): ?string public function setCatalogObjectId(?string $value = null): self { $this->catalogObjectId = $value; + $this->_setField('catalogObjectId'); return $this; } @@ -351,6 +357,7 @@ public function getCatalogObjectType(): ?string public function setCatalogObjectType(?string $value = null): self { $this->catalogObjectType = $value; + $this->_setField('catalogObjectType'); return $this; } @@ -368,6 +375,7 @@ public function getQuantity(): ?string public function setQuantity(?string $value = null): self { $this->quantity = $value; + $this->_setField('quantity'); return $this; } @@ -385,6 +393,7 @@ public function getTotalPriceMoney(): ?Money public function setTotalPriceMoney(?Money $value = null): self { $this->totalPriceMoney = $value; + $this->_setField('totalPriceMoney'); return $this; } @@ -402,6 +411,7 @@ public function getOccurredAt(): ?string public function setOccurredAt(?string $value = null): self { $this->occurredAt = $value; + $this->_setField('occurredAt'); return $this; } @@ -419,6 +429,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -436,6 +447,7 @@ public function getSource(): ?SourceApplication public function setSource(?SourceApplication $value = null): self { $this->source = $value; + $this->_setField('source'); return $this; } @@ -453,6 +465,7 @@ public function getEmployeeId(): ?string public function setEmployeeId(?string $value = null): self { $this->employeeId = $value; + $this->_setField('employeeId'); return $this; } @@ -470,6 +483,7 @@ public function getTeamMemberId(): ?string public function setTeamMemberId(?string $value = null): self { $this->teamMemberId = $value; + $this->_setField('teamMemberId'); return $this; } @@ -487,6 +501,7 @@ public function getTransactionId(): ?string public function setTransactionId(?string $value = null): self { $this->transactionId = $value; + $this->_setField('transactionId'); return $this; } @@ -504,6 +519,7 @@ public function getRefundId(): ?string public function setRefundId(?string $value = null): self { $this->refundId = $value; + $this->_setField('refundId'); return $this; } @@ -521,6 +537,7 @@ public function getPurchaseOrderId(): ?string public function setPurchaseOrderId(?string $value = null): self { $this->purchaseOrderId = $value; + $this->_setField('purchaseOrderId'); return $this; } @@ -538,6 +555,7 @@ public function getGoodsReceiptId(): ?string public function setGoodsReceiptId(?string $value = null): self { $this->goodsReceiptId = $value; + $this->_setField('goodsReceiptId'); return $this; } @@ -555,6 +573,7 @@ public function getAdjustmentGroup(): ?InventoryAdjustmentGroup public function setAdjustmentGroup(?InventoryAdjustmentGroup $value = null): self { $this->adjustmentGroup = $value; + $this->_setField('adjustmentGroup'); return $this; } diff --git a/src/Types/InventoryAdjustmentGroup.php b/src/Types/InventoryAdjustmentGroup.php index 49ae0376..d8f9ec8d 100644 --- a/src/Types/InventoryAdjustmentGroup.php +++ b/src/Types/InventoryAdjustmentGroup.php @@ -75,6 +75,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -92,6 +93,7 @@ public function getRootAdjustmentId(): ?string public function setRootAdjustmentId(?string $value = null): self { $this->rootAdjustmentId = $value; + $this->_setField('rootAdjustmentId'); return $this; } @@ -109,6 +111,7 @@ public function getFromState(): ?string public function setFromState(?string $value = null): self { $this->fromState = $value; + $this->_setField('fromState'); return $this; } @@ -126,6 +129,7 @@ public function getToState(): ?string public function setToState(?string $value = null): self { $this->toState = $value; + $this->_setField('toState'); return $this; } diff --git a/src/Types/InventoryChange.php b/src/Types/InventoryChange.php index ad7dfcba..b68099c8 100644 --- a/src/Types/InventoryChange.php +++ b/src/Types/InventoryChange.php @@ -99,6 +99,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -116,6 +117,7 @@ public function getPhysicalCount(): ?InventoryPhysicalCount public function setPhysicalCount(?InventoryPhysicalCount $value = null): self { $this->physicalCount = $value; + $this->_setField('physicalCount'); return $this; } @@ -133,6 +135,7 @@ public function getAdjustment(): ?InventoryAdjustment public function setAdjustment(?InventoryAdjustment $value = null): self { $this->adjustment = $value; + $this->_setField('adjustment'); return $this; } @@ -150,6 +153,7 @@ public function getTransfer(): ?InventoryTransfer public function setTransfer(?InventoryTransfer $value = null): self { $this->transfer = $value; + $this->_setField('transfer'); return $this; } @@ -167,6 +171,7 @@ public function getMeasurementUnit(): ?CatalogMeasurementUnit public function setMeasurementUnit(?CatalogMeasurementUnit $value = null): self { $this->measurementUnit = $value; + $this->_setField('measurementUnit'); return $this; } @@ -184,6 +189,7 @@ public function getMeasurementUnitId(): ?string public function setMeasurementUnitId(?string $value = null): self { $this->measurementUnitId = $value; + $this->_setField('measurementUnitId'); return $this; } diff --git a/src/Types/InventoryCount.php b/src/Types/InventoryCount.php index 2ac98cf5..f0720af9 100644 --- a/src/Types/InventoryCount.php +++ b/src/Types/InventoryCount.php @@ -118,6 +118,7 @@ public function getCatalogObjectId(): ?string public function setCatalogObjectId(?string $value = null): self { $this->catalogObjectId = $value; + $this->_setField('catalogObjectId'); return $this; } @@ -135,6 +136,7 @@ public function getCatalogObjectType(): ?string public function setCatalogObjectType(?string $value = null): self { $this->catalogObjectType = $value; + $this->_setField('catalogObjectType'); return $this; } @@ -152,6 +154,7 @@ public function getState(): ?string public function setState(?string $value = null): self { $this->state = $value; + $this->_setField('state'); return $this; } @@ -169,6 +172,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -186,6 +190,7 @@ public function getQuantity(): ?string public function setQuantity(?string $value = null): self { $this->quantity = $value; + $this->_setField('quantity'); return $this; } @@ -203,6 +208,7 @@ public function getCalculatedAt(): ?string public function setCalculatedAt(?string $value = null): self { $this->calculatedAt = $value; + $this->_setField('calculatedAt'); return $this; } @@ -220,6 +226,7 @@ public function getIsEstimated(): ?bool public function setIsEstimated(?bool $value = null): self { $this->isEstimated = $value; + $this->_setField('isEstimated'); return $this; } diff --git a/src/Types/InventoryCountUpdatedEvent.php b/src/Types/InventoryCountUpdatedEvent.php index 837b8417..5533e6b9 100644 --- a/src/Types/InventoryCountUpdatedEvent.php +++ b/src/Types/InventoryCountUpdatedEvent.php @@ -74,6 +74,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -91,6 +92,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -108,6 +110,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -125,6 +128,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -142,6 +146,7 @@ public function getData(): ?InventoryCountUpdatedEventData public function setData(?InventoryCountUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/InventoryCountUpdatedEventData.php b/src/Types/InventoryCountUpdatedEventData.php index 3df00011..124211f6 100644 --- a/src/Types/InventoryCountUpdatedEventData.php +++ b/src/Types/InventoryCountUpdatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?InventoryCountUpdatedEventObject public function setObject(?InventoryCountUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/InventoryCountUpdatedEventObject.php b/src/Types/InventoryCountUpdatedEventObject.php index 0a1d2501..a432583c 100644 --- a/src/Types/InventoryCountUpdatedEventObject.php +++ b/src/Types/InventoryCountUpdatedEventObject.php @@ -39,6 +39,7 @@ public function getInventoryCounts(): ?array public function setInventoryCounts(?array $value = null): self { $this->inventoryCounts = $value; + $this->_setField('inventoryCounts'); return $this; } diff --git a/src/Types/InventoryPhysicalCount.php b/src/Types/InventoryPhysicalCount.php index cff65631..a3269090 100644 --- a/src/Types/InventoryPhysicalCount.php +++ b/src/Types/InventoryPhysicalCount.php @@ -171,6 +171,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -188,6 +189,7 @@ public function getReferenceId(): ?string public function setReferenceId(?string $value = null): self { $this->referenceId = $value; + $this->_setField('referenceId'); return $this; } @@ -205,6 +207,7 @@ public function getCatalogObjectId(): ?string public function setCatalogObjectId(?string $value = null): self { $this->catalogObjectId = $value; + $this->_setField('catalogObjectId'); return $this; } @@ -222,6 +225,7 @@ public function getCatalogObjectType(): ?string public function setCatalogObjectType(?string $value = null): self { $this->catalogObjectType = $value; + $this->_setField('catalogObjectType'); return $this; } @@ -239,6 +243,7 @@ public function getState(): ?string public function setState(?string $value = null): self { $this->state = $value; + $this->_setField('state'); return $this; } @@ -256,6 +261,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -273,6 +279,7 @@ public function getQuantity(): ?string public function setQuantity(?string $value = null): self { $this->quantity = $value; + $this->_setField('quantity'); return $this; } @@ -290,6 +297,7 @@ public function getSource(): ?SourceApplication public function setSource(?SourceApplication $value = null): self { $this->source = $value; + $this->_setField('source'); return $this; } @@ -307,6 +315,7 @@ public function getEmployeeId(): ?string public function setEmployeeId(?string $value = null): self { $this->employeeId = $value; + $this->_setField('employeeId'); return $this; } @@ -324,6 +333,7 @@ public function getTeamMemberId(): ?string public function setTeamMemberId(?string $value = null): self { $this->teamMemberId = $value; + $this->_setField('teamMemberId'); return $this; } @@ -341,6 +351,7 @@ public function getOccurredAt(): ?string public function setOccurredAt(?string $value = null): self { $this->occurredAt = $value; + $this->_setField('occurredAt'); return $this; } @@ -358,6 +369,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } diff --git a/src/Types/InventoryTransfer.php b/src/Types/InventoryTransfer.php index 9c134d1b..6e9e9370 100644 --- a/src/Types/InventoryTransfer.php +++ b/src/Types/InventoryTransfer.php @@ -182,6 +182,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -199,6 +200,7 @@ public function getReferenceId(): ?string public function setReferenceId(?string $value = null): self { $this->referenceId = $value; + $this->_setField('referenceId'); return $this; } @@ -216,6 +218,7 @@ public function getState(): ?string public function setState(?string $value = null): self { $this->state = $value; + $this->_setField('state'); return $this; } @@ -233,6 +236,7 @@ public function getFromLocationId(): ?string public function setFromLocationId(?string $value = null): self { $this->fromLocationId = $value; + $this->_setField('fromLocationId'); return $this; } @@ -250,6 +254,7 @@ public function getToLocationId(): ?string public function setToLocationId(?string $value = null): self { $this->toLocationId = $value; + $this->_setField('toLocationId'); return $this; } @@ -267,6 +272,7 @@ public function getCatalogObjectId(): ?string public function setCatalogObjectId(?string $value = null): self { $this->catalogObjectId = $value; + $this->_setField('catalogObjectId'); return $this; } @@ -284,6 +290,7 @@ public function getCatalogObjectType(): ?string public function setCatalogObjectType(?string $value = null): self { $this->catalogObjectType = $value; + $this->_setField('catalogObjectType'); return $this; } @@ -301,6 +308,7 @@ public function getQuantity(): ?string public function setQuantity(?string $value = null): self { $this->quantity = $value; + $this->_setField('quantity'); return $this; } @@ -318,6 +326,7 @@ public function getOccurredAt(): ?string public function setOccurredAt(?string $value = null): self { $this->occurredAt = $value; + $this->_setField('occurredAt'); return $this; } @@ -335,6 +344,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -352,6 +362,7 @@ public function getSource(): ?SourceApplication public function setSource(?SourceApplication $value = null): self { $this->source = $value; + $this->_setField('source'); return $this; } @@ -369,6 +380,7 @@ public function getEmployeeId(): ?string public function setEmployeeId(?string $value = null): self { $this->employeeId = $value; + $this->_setField('employeeId'); return $this; } @@ -386,6 +398,7 @@ public function getTeamMemberId(): ?string public function setTeamMemberId(?string $value = null): self { $this->teamMemberId = $value; + $this->_setField('teamMemberId'); return $this; } diff --git a/src/Types/Invoice.php b/src/Types/Invoice.php index 8b1b497c..0740e3d8 100644 --- a/src/Types/Invoice.php +++ b/src/Types/Invoice.php @@ -343,6 +343,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -360,6 +361,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -377,6 +379,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -394,6 +397,7 @@ public function getOrderId(): ?string public function setOrderId(?string $value = null): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } @@ -411,6 +415,7 @@ public function getPrimaryRecipient(): ?InvoiceRecipient public function setPrimaryRecipient(?InvoiceRecipient $value = null): self { $this->primaryRecipient = $value; + $this->_setField('primaryRecipient'); return $this; } @@ -428,6 +433,7 @@ public function getPaymentRequests(): ?array public function setPaymentRequests(?array $value = null): self { $this->paymentRequests = $value; + $this->_setField('paymentRequests'); return $this; } @@ -445,6 +451,7 @@ public function getDeliveryMethod(): ?string public function setDeliveryMethod(?string $value = null): self { $this->deliveryMethod = $value; + $this->_setField('deliveryMethod'); return $this; } @@ -462,6 +469,7 @@ public function getInvoiceNumber(): ?string public function setInvoiceNumber(?string $value = null): self { $this->invoiceNumber = $value; + $this->_setField('invoiceNumber'); return $this; } @@ -479,6 +487,7 @@ public function getTitle(): ?string public function setTitle(?string $value = null): self { $this->title = $value; + $this->_setField('title'); return $this; } @@ -496,6 +505,7 @@ public function getDescription(): ?string public function setDescription(?string $value = null): self { $this->description = $value; + $this->_setField('description'); return $this; } @@ -513,6 +523,7 @@ public function getScheduledAt(): ?string public function setScheduledAt(?string $value = null): self { $this->scheduledAt = $value; + $this->_setField('scheduledAt'); return $this; } @@ -530,6 +541,7 @@ public function getPublicUrl(): ?string public function setPublicUrl(?string $value = null): self { $this->publicUrl = $value; + $this->_setField('publicUrl'); return $this; } @@ -547,6 +559,7 @@ public function getNextPaymentAmountMoney(): ?Money public function setNextPaymentAmountMoney(?Money $value = null): self { $this->nextPaymentAmountMoney = $value; + $this->_setField('nextPaymentAmountMoney'); return $this; } @@ -564,6 +577,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -581,6 +595,7 @@ public function getTimezone(): ?string public function setTimezone(?string $value = null): self { $this->timezone = $value; + $this->_setField('timezone'); return $this; } @@ -598,6 +613,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -615,6 +631,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -632,6 +649,7 @@ public function getAcceptedPaymentMethods(): ?InvoiceAcceptedPaymentMethods public function setAcceptedPaymentMethods(?InvoiceAcceptedPaymentMethods $value = null): self { $this->acceptedPaymentMethods = $value; + $this->_setField('acceptedPaymentMethods'); return $this; } @@ -649,6 +667,7 @@ public function getCustomFields(): ?array public function setCustomFields(?array $value = null): self { $this->customFields = $value; + $this->_setField('customFields'); return $this; } @@ -666,6 +685,7 @@ public function getSubscriptionId(): ?string public function setSubscriptionId(?string $value = null): self { $this->subscriptionId = $value; + $this->_setField('subscriptionId'); return $this; } @@ -683,6 +703,7 @@ public function getSaleOrServiceDate(): ?string public function setSaleOrServiceDate(?string $value = null): self { $this->saleOrServiceDate = $value; + $this->_setField('saleOrServiceDate'); return $this; } @@ -700,6 +721,7 @@ public function getPaymentConditions(): ?string public function setPaymentConditions(?string $value = null): self { $this->paymentConditions = $value; + $this->_setField('paymentConditions'); return $this; } @@ -717,6 +739,7 @@ public function getStorePaymentMethodEnabled(): ?bool public function setStorePaymentMethodEnabled(?bool $value = null): self { $this->storePaymentMethodEnabled = $value; + $this->_setField('storePaymentMethodEnabled'); return $this; } @@ -734,6 +757,7 @@ public function getAttachments(): ?array public function setAttachments(?array $value = null): self { $this->attachments = $value; + $this->_setField('attachments'); return $this; } @@ -751,6 +775,7 @@ public function getCreatorTeamMemberId(): ?string public function setCreatorTeamMemberId(?string $value = null): self { $this->creatorTeamMemberId = $value; + $this->_setField('creatorTeamMemberId'); return $this; } diff --git a/src/Types/InvoiceAcceptedPaymentMethods.php b/src/Types/InvoiceAcceptedPaymentMethods.php index a01a19c0..5111b4fe 100644 --- a/src/Types/InvoiceAcceptedPaymentMethods.php +++ b/src/Types/InvoiceAcceptedPaymentMethods.php @@ -85,6 +85,7 @@ public function getCard(): ?bool public function setCard(?bool $value = null): self { $this->card = $value; + $this->_setField('card'); return $this; } @@ -102,6 +103,7 @@ public function getSquareGiftCard(): ?bool public function setSquareGiftCard(?bool $value = null): self { $this->squareGiftCard = $value; + $this->_setField('squareGiftCard'); return $this; } @@ -119,6 +121,7 @@ public function getBankAccount(): ?bool public function setBankAccount(?bool $value = null): self { $this->bankAccount = $value; + $this->_setField('bankAccount'); return $this; } @@ -136,6 +139,7 @@ public function getBuyNowPayLater(): ?bool public function setBuyNowPayLater(?bool $value = null): self { $this->buyNowPayLater = $value; + $this->_setField('buyNowPayLater'); return $this; } @@ -153,6 +157,7 @@ public function getCashAppPay(): ?bool public function setCashAppPay(?bool $value = null): self { $this->cashAppPay = $value; + $this->_setField('cashAppPay'); return $this; } diff --git a/src/Types/InvoiceAttachment.php b/src/Types/InvoiceAttachment.php index a984825e..2959bdbb 100644 --- a/src/Types/InvoiceAttachment.php +++ b/src/Types/InvoiceAttachment.php @@ -96,6 +96,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -113,6 +114,7 @@ public function getFilename(): ?string public function setFilename(?string $value = null): self { $this->filename = $value; + $this->_setField('filename'); return $this; } @@ -130,6 +132,7 @@ public function getDescription(): ?string public function setDescription(?string $value = null): self { $this->description = $value; + $this->_setField('description'); return $this; } @@ -147,6 +150,7 @@ public function getFilesize(): ?int public function setFilesize(?int $value = null): self { $this->filesize = $value; + $this->_setField('filesize'); return $this; } @@ -164,6 +168,7 @@ public function getHash(): ?string public function setHash(?string $value = null): self { $this->hash = $value; + $this->_setField('hash'); return $this; } @@ -181,6 +186,7 @@ public function getMimeType(): ?string public function setMimeType(?string $value = null): self { $this->mimeType = $value; + $this->_setField('mimeType'); return $this; } @@ -198,6 +204,7 @@ public function getUploadedAt(): ?string public function setUploadedAt(?string $value = null): self { $this->uploadedAt = $value; + $this->_setField('uploadedAt'); return $this; } diff --git a/src/Types/InvoiceCanceledEvent.php b/src/Types/InvoiceCanceledEvent.php index 0b9b729a..2e3ec6e2 100644 --- a/src/Types/InvoiceCanceledEvent.php +++ b/src/Types/InvoiceCanceledEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?InvoiceCanceledEventData public function setData(?InvoiceCanceledEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/InvoiceCanceledEventData.php b/src/Types/InvoiceCanceledEventData.php index b6c87e66..c7b9f8a0 100644 --- a/src/Types/InvoiceCanceledEventData.php +++ b/src/Types/InvoiceCanceledEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?InvoiceCanceledEventObject public function setObject(?InvoiceCanceledEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/InvoiceCanceledEventObject.php b/src/Types/InvoiceCanceledEventObject.php index c147e6b7..cd3024eb 100644 --- a/src/Types/InvoiceCanceledEventObject.php +++ b/src/Types/InvoiceCanceledEventObject.php @@ -38,6 +38,7 @@ public function getInvoice(): ?Invoice public function setInvoice(?Invoice $value = null): self { $this->invoice = $value; + $this->_setField('invoice'); return $this; } diff --git a/src/Types/InvoiceCreatedEvent.php b/src/Types/InvoiceCreatedEvent.php index 53872df6..774906a7 100644 --- a/src/Types/InvoiceCreatedEvent.php +++ b/src/Types/InvoiceCreatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?InvoiceCreatedEventData public function setData(?InvoiceCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/InvoiceCreatedEventData.php b/src/Types/InvoiceCreatedEventData.php index 96b91a10..226eec8c 100644 --- a/src/Types/InvoiceCreatedEventData.php +++ b/src/Types/InvoiceCreatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?InvoiceCreatedEventObject public function setObject(?InvoiceCreatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/InvoiceCreatedEventObject.php b/src/Types/InvoiceCreatedEventObject.php index 45fdeed1..94acf622 100644 --- a/src/Types/InvoiceCreatedEventObject.php +++ b/src/Types/InvoiceCreatedEventObject.php @@ -38,6 +38,7 @@ public function getInvoice(): ?Invoice public function setInvoice(?Invoice $value = null): self { $this->invoice = $value; + $this->_setField('invoice'); return $this; } diff --git a/src/Types/InvoiceCustomField.php b/src/Types/InvoiceCustomField.php index 1048af7c..c5203294 100644 --- a/src/Types/InvoiceCustomField.php +++ b/src/Types/InvoiceCustomField.php @@ -64,6 +64,7 @@ public function getLabel(): ?string public function setLabel(?string $value = null): self { $this->label = $value; + $this->_setField('label'); return $this; } @@ -81,6 +82,7 @@ public function getValue(): ?string public function setValue(?string $value = null): self { $this->value = $value; + $this->_setField('value'); return $this; } @@ -98,6 +100,7 @@ public function getPlacement(): ?string public function setPlacement(?string $value = null): self { $this->placement = $value; + $this->_setField('placement'); return $this; } diff --git a/src/Types/InvoiceDeletedEvent.php b/src/Types/InvoiceDeletedEvent.php index af7c9406..7949c2e0 100644 --- a/src/Types/InvoiceDeletedEvent.php +++ b/src/Types/InvoiceDeletedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?InvoiceDeletedEventData public function setData(?InvoiceDeletedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/InvoiceDeletedEventData.php b/src/Types/InvoiceDeletedEventData.php index 8b6a8da4..44b916e1 100644 --- a/src/Types/InvoiceDeletedEventData.php +++ b/src/Types/InvoiceDeletedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getDeleted(): ?bool public function setDeleted(?bool $value = null): self { $this->deleted = $value; + $this->_setField('deleted'); return $this; } diff --git a/src/Types/InvoiceFilter.php b/src/Types/InvoiceFilter.php index d569edf0..13f8bf04 100644 --- a/src/Types/InvoiceFilter.php +++ b/src/Types/InvoiceFilter.php @@ -57,6 +57,7 @@ public function getLocationIds(): array public function setLocationIds(array $value): self { $this->locationIds = $value; + $this->_setField('locationIds'); return $this; } @@ -74,6 +75,7 @@ public function getCustomerIds(): ?array public function setCustomerIds(?array $value = null): self { $this->customerIds = $value; + $this->_setField('customerIds'); return $this; } diff --git a/src/Types/InvoicePaymentMadeEvent.php b/src/Types/InvoicePaymentMadeEvent.php index 1fa89c5d..e6c2cff4 100644 --- a/src/Types/InvoicePaymentMadeEvent.php +++ b/src/Types/InvoicePaymentMadeEvent.php @@ -74,6 +74,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -91,6 +92,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -108,6 +110,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -125,6 +128,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -142,6 +146,7 @@ public function getData(): ?InvoicePaymentMadeEventData public function setData(?InvoicePaymentMadeEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/InvoicePaymentMadeEventData.php b/src/Types/InvoicePaymentMadeEventData.php index 554c2546..0dc5b35c 100644 --- a/src/Types/InvoicePaymentMadeEventData.php +++ b/src/Types/InvoicePaymentMadeEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?InvoicePaymentMadeEventObject public function setObject(?InvoicePaymentMadeEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/InvoicePaymentMadeEventObject.php b/src/Types/InvoicePaymentMadeEventObject.php index a94c06ff..831a3db5 100644 --- a/src/Types/InvoicePaymentMadeEventObject.php +++ b/src/Types/InvoicePaymentMadeEventObject.php @@ -38,6 +38,7 @@ public function getInvoice(): ?Invoice public function setInvoice(?Invoice $value = null): self { $this->invoice = $value; + $this->_setField('invoice'); return $this; } diff --git a/src/Types/InvoicePaymentReminder.php b/src/Types/InvoicePaymentReminder.php index e2954d1a..79be7deb 100644 --- a/src/Types/InvoicePaymentReminder.php +++ b/src/Types/InvoicePaymentReminder.php @@ -85,6 +85,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -102,6 +103,7 @@ public function getRelativeScheduledDays(): ?int public function setRelativeScheduledDays(?int $value = null): self { $this->relativeScheduledDays = $value; + $this->_setField('relativeScheduledDays'); return $this; } @@ -119,6 +121,7 @@ public function getMessage(): ?string public function setMessage(?string $value = null): self { $this->message = $value; + $this->_setField('message'); return $this; } @@ -136,6 +139,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -153,6 +157,7 @@ public function getSentAt(): ?string public function setSentAt(?string $value = null): self { $this->sentAt = $value; + $this->_setField('sentAt'); return $this; } diff --git a/src/Types/InvoicePaymentRequest.php b/src/Types/InvoicePaymentRequest.php index 713778f0..2a5f2dff 100644 --- a/src/Types/InvoicePaymentRequest.php +++ b/src/Types/InvoicePaymentRequest.php @@ -206,6 +206,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -223,6 +224,7 @@ public function getRequestMethod(): ?string public function setRequestMethod(?string $value = null): self { $this->requestMethod = $value; + $this->_setField('requestMethod'); return $this; } @@ -240,6 +242,7 @@ public function getRequestType(): ?string public function setRequestType(?string $value = null): self { $this->requestType = $value; + $this->_setField('requestType'); return $this; } @@ -257,6 +260,7 @@ public function getDueDate(): ?string public function setDueDate(?string $value = null): self { $this->dueDate = $value; + $this->_setField('dueDate'); return $this; } @@ -274,6 +278,7 @@ public function getFixedAmountRequestedMoney(): ?Money public function setFixedAmountRequestedMoney(?Money $value = null): self { $this->fixedAmountRequestedMoney = $value; + $this->_setField('fixedAmountRequestedMoney'); return $this; } @@ -291,6 +296,7 @@ public function getPercentageRequested(): ?string public function setPercentageRequested(?string $value = null): self { $this->percentageRequested = $value; + $this->_setField('percentageRequested'); return $this; } @@ -308,6 +314,7 @@ public function getTippingEnabled(): ?bool public function setTippingEnabled(?bool $value = null): self { $this->tippingEnabled = $value; + $this->_setField('tippingEnabled'); return $this; } @@ -325,6 +332,7 @@ public function getAutomaticPaymentSource(): ?string public function setAutomaticPaymentSource(?string $value = null): self { $this->automaticPaymentSource = $value; + $this->_setField('automaticPaymentSource'); return $this; } @@ -342,6 +350,7 @@ public function getCardId(): ?string public function setCardId(?string $value = null): self { $this->cardId = $value; + $this->_setField('cardId'); return $this; } @@ -359,6 +368,7 @@ public function getReminders(): ?array public function setReminders(?array $value = null): self { $this->reminders = $value; + $this->_setField('reminders'); return $this; } @@ -376,6 +386,7 @@ public function getComputedAmountMoney(): ?Money public function setComputedAmountMoney(?Money $value = null): self { $this->computedAmountMoney = $value; + $this->_setField('computedAmountMoney'); return $this; } @@ -393,6 +404,7 @@ public function getTotalCompletedAmountMoney(): ?Money public function setTotalCompletedAmountMoney(?Money $value = null): self { $this->totalCompletedAmountMoney = $value; + $this->_setField('totalCompletedAmountMoney'); return $this; } @@ -410,6 +422,7 @@ public function getRoundingAdjustmentIncludedMoney(): ?Money public function setRoundingAdjustmentIncludedMoney(?Money $value = null): self { $this->roundingAdjustmentIncludedMoney = $value; + $this->_setField('roundingAdjustmentIncludedMoney'); return $this; } diff --git a/src/Types/InvoicePublishedEvent.php b/src/Types/InvoicePublishedEvent.php index c59a4948..893e4663 100644 --- a/src/Types/InvoicePublishedEvent.php +++ b/src/Types/InvoicePublishedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?InvoicePublishedEventData public function setData(?InvoicePublishedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/InvoicePublishedEventData.php b/src/Types/InvoicePublishedEventData.php index 79bdc5e3..bb4b6507 100644 --- a/src/Types/InvoicePublishedEventData.php +++ b/src/Types/InvoicePublishedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?InvoicePublishedEventObject public function setObject(?InvoicePublishedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/InvoicePublishedEventObject.php b/src/Types/InvoicePublishedEventObject.php index 1c4c6bd6..e4e367f8 100644 --- a/src/Types/InvoicePublishedEventObject.php +++ b/src/Types/InvoicePublishedEventObject.php @@ -38,6 +38,7 @@ public function getInvoice(): ?Invoice public function setInvoice(?Invoice $value = null): self { $this->invoice = $value; + $this->_setField('invoice'); return $this; } diff --git a/src/Types/InvoiceQuery.php b/src/Types/InvoiceQuery.php index 94960f02..07e89487 100644 --- a/src/Types/InvoiceQuery.php +++ b/src/Types/InvoiceQuery.php @@ -52,6 +52,7 @@ public function getFilter(): InvoiceFilter public function setFilter(InvoiceFilter $value): self { $this->filter = $value; + $this->_setField('filter'); return $this; } @@ -69,6 +70,7 @@ public function getSort(): ?InvoiceSort public function setSort(?InvoiceSort $value = null): self { $this->sort = $value; + $this->_setField('sort'); return $this; } diff --git a/src/Types/InvoiceRecipient.php b/src/Types/InvoiceRecipient.php index 479156d7..876400b6 100644 --- a/src/Types/InvoiceRecipient.php +++ b/src/Types/InvoiceRecipient.php @@ -108,6 +108,7 @@ public function getCustomerId(): ?string public function setCustomerId(?string $value = null): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -125,6 +126,7 @@ public function getGivenName(): ?string public function setGivenName(?string $value = null): self { $this->givenName = $value; + $this->_setField('givenName'); return $this; } @@ -142,6 +144,7 @@ public function getFamilyName(): ?string public function setFamilyName(?string $value = null): self { $this->familyName = $value; + $this->_setField('familyName'); return $this; } @@ -159,6 +162,7 @@ public function getEmailAddress(): ?string public function setEmailAddress(?string $value = null): self { $this->emailAddress = $value; + $this->_setField('emailAddress'); return $this; } @@ -176,6 +180,7 @@ public function getAddress(): ?Address public function setAddress(?Address $value = null): self { $this->address = $value; + $this->_setField('address'); return $this; } @@ -193,6 +198,7 @@ public function getPhoneNumber(): ?string public function setPhoneNumber(?string $value = null): self { $this->phoneNumber = $value; + $this->_setField('phoneNumber'); return $this; } @@ -210,6 +216,7 @@ public function getCompanyName(): ?string public function setCompanyName(?string $value = null): self { $this->companyName = $value; + $this->_setField('companyName'); return $this; } @@ -227,6 +234,7 @@ public function getTaxIds(): ?InvoiceRecipientTaxIds public function setTaxIds(?InvoiceRecipientTaxIds $value = null): self { $this->taxIds = $value; + $this->_setField('taxIds'); return $this; } diff --git a/src/Types/InvoiceRecipientTaxIds.php b/src/Types/InvoiceRecipientTaxIds.php index 55652dd2..a1b41aa7 100644 --- a/src/Types/InvoiceRecipientTaxIds.php +++ b/src/Types/InvoiceRecipientTaxIds.php @@ -43,6 +43,7 @@ public function getEuVat(): ?string public function setEuVat(?string $value = null): self { $this->euVat = $value; + $this->_setField('euVat'); return $this; } diff --git a/src/Types/InvoiceRefundedEvent.php b/src/Types/InvoiceRefundedEvent.php index e3fbb515..0b9e92c1 100644 --- a/src/Types/InvoiceRefundedEvent.php +++ b/src/Types/InvoiceRefundedEvent.php @@ -74,6 +74,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -91,6 +92,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -108,6 +110,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -125,6 +128,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -142,6 +146,7 @@ public function getData(): ?InvoiceRefundedEventData public function setData(?InvoiceRefundedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/InvoiceRefundedEventData.php b/src/Types/InvoiceRefundedEventData.php index 8314fd46..8a34d7e1 100644 --- a/src/Types/InvoiceRefundedEventData.php +++ b/src/Types/InvoiceRefundedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?InvoiceRefundedEventObject public function setObject(?InvoiceRefundedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/InvoiceRefundedEventObject.php b/src/Types/InvoiceRefundedEventObject.php index 41c14d2d..2c7c81dc 100644 --- a/src/Types/InvoiceRefundedEventObject.php +++ b/src/Types/InvoiceRefundedEventObject.php @@ -38,6 +38,7 @@ public function getInvoice(): ?Invoice public function setInvoice(?Invoice $value = null): self { $this->invoice = $value; + $this->_setField('invoice'); return $this; } diff --git a/src/Types/InvoiceScheduledChargeFailedEvent.php b/src/Types/InvoiceScheduledChargeFailedEvent.php index de4c6c36..664ddc4d 100644 --- a/src/Types/InvoiceScheduledChargeFailedEvent.php +++ b/src/Types/InvoiceScheduledChargeFailedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?InvoiceScheduledChargeFailedEventData public function setData(?InvoiceScheduledChargeFailedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/InvoiceScheduledChargeFailedEventData.php b/src/Types/InvoiceScheduledChargeFailedEventData.php index 72b1e2a1..99ac5cc6 100644 --- a/src/Types/InvoiceScheduledChargeFailedEventData.php +++ b/src/Types/InvoiceScheduledChargeFailedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?InvoiceScheduledChargeFailedEventObject public function setObject(?InvoiceScheduledChargeFailedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/InvoiceScheduledChargeFailedEventObject.php b/src/Types/InvoiceScheduledChargeFailedEventObject.php index 5f148129..2a591aef 100644 --- a/src/Types/InvoiceScheduledChargeFailedEventObject.php +++ b/src/Types/InvoiceScheduledChargeFailedEventObject.php @@ -38,6 +38,7 @@ public function getInvoice(): ?Invoice public function setInvoice(?Invoice $value = null): self { $this->invoice = $value; + $this->_setField('invoice'); return $this; } diff --git a/src/Types/InvoiceSort.php b/src/Types/InvoiceSort.php index 5d9f1ba5..a1567ef6 100644 --- a/src/Types/InvoiceSort.php +++ b/src/Types/InvoiceSort.php @@ -55,6 +55,7 @@ public function getField(): string public function setField(string $value): self { $this->field = $value; + $this->_setField('field'); return $this; } @@ -72,6 +73,7 @@ public function getOrder(): ?string public function setOrder(?string $value = null): self { $this->order = $value; + $this->_setField('order'); return $this; } diff --git a/src/Types/InvoiceUpdatedEvent.php b/src/Types/InvoiceUpdatedEvent.php index f3c8325d..70e03baf 100644 --- a/src/Types/InvoiceUpdatedEvent.php +++ b/src/Types/InvoiceUpdatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?InvoiceUpdatedEventData public function setData(?InvoiceUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/InvoiceUpdatedEventData.php b/src/Types/InvoiceUpdatedEventData.php index 57ea4642..88f072fd 100644 --- a/src/Types/InvoiceUpdatedEventData.php +++ b/src/Types/InvoiceUpdatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?InvoiceUpdatedEventObject public function setObject(?InvoiceUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/InvoiceUpdatedEventObject.php b/src/Types/InvoiceUpdatedEventObject.php index b9c243f0..613c3a77 100644 --- a/src/Types/InvoiceUpdatedEventObject.php +++ b/src/Types/InvoiceUpdatedEventObject.php @@ -38,6 +38,7 @@ public function getInvoice(): ?Invoice public function setInvoice(?Invoice $value = null): self { $this->invoice = $value; + $this->_setField('invoice'); return $this; } diff --git a/src/Types/ItemVariationLocationOverrides.php b/src/Types/ItemVariationLocationOverrides.php index 804f05b5..42dce4f5 100644 --- a/src/Types/ItemVariationLocationOverrides.php +++ b/src/Types/ItemVariationLocationOverrides.php @@ -121,6 +121,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -138,6 +139,7 @@ public function getPriceMoney(): ?Money public function setPriceMoney(?Money $value = null): self { $this->priceMoney = $value; + $this->_setField('priceMoney'); return $this; } @@ -155,6 +157,7 @@ public function getPricingType(): ?string public function setPricingType(?string $value = null): self { $this->pricingType = $value; + $this->_setField('pricingType'); return $this; } @@ -172,6 +175,7 @@ public function getTrackInventory(): ?bool public function setTrackInventory(?bool $value = null): self { $this->trackInventory = $value; + $this->_setField('trackInventory'); return $this; } @@ -189,6 +193,7 @@ public function getInventoryAlertType(): ?string public function setInventoryAlertType(?string $value = null): self { $this->inventoryAlertType = $value; + $this->_setField('inventoryAlertType'); return $this; } @@ -206,6 +211,7 @@ public function getInventoryAlertThreshold(): ?int public function setInventoryAlertThreshold(?int $value = null): self { $this->inventoryAlertThreshold = $value; + $this->_setField('inventoryAlertThreshold'); return $this; } @@ -223,6 +229,7 @@ public function getSoldOut(): ?bool public function setSoldOut(?bool $value = null): self { $this->soldOut = $value; + $this->_setField('soldOut'); return $this; } @@ -240,6 +247,7 @@ public function getSoldOutValidUntil(): ?string public function setSoldOutValidUntil(?string $value = null): self { $this->soldOutValidUntil = $value; + $this->_setField('soldOutValidUntil'); return $this; } diff --git a/src/Types/Job.php b/src/Types/Job.php index 0d4bd176..2ef2d907 100644 --- a/src/Types/Job.php +++ b/src/Types/Job.php @@ -92,6 +92,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -109,6 +110,7 @@ public function getTitle(): ?string public function setTitle(?string $value = null): self { $this->title = $value; + $this->_setField('title'); return $this; } @@ -126,6 +128,7 @@ public function getIsTipEligible(): ?bool public function setIsTipEligible(?bool $value = null): self { $this->isTipEligible = $value; + $this->_setField('isTipEligible'); return $this; } @@ -143,6 +146,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -160,6 +164,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -177,6 +182,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } diff --git a/src/Types/JobAssignment.php b/src/Types/JobAssignment.php index b5865445..ac8eb03e 100644 --- a/src/Types/JobAssignment.php +++ b/src/Types/JobAssignment.php @@ -89,6 +89,7 @@ public function getJobTitle(): ?string public function setJobTitle(?string $value = null): self { $this->jobTitle = $value; + $this->_setField('jobTitle'); return $this; } @@ -106,6 +107,7 @@ public function getPayType(): string public function setPayType(string $value): self { $this->payType = $value; + $this->_setField('payType'); return $this; } @@ -123,6 +125,7 @@ public function getHourlyRate(): ?Money public function setHourlyRate(?Money $value = null): self { $this->hourlyRate = $value; + $this->_setField('hourlyRate'); return $this; } @@ -140,6 +143,7 @@ public function getAnnualRate(): ?Money public function setAnnualRate(?Money $value = null): self { $this->annualRate = $value; + $this->_setField('annualRate'); return $this; } @@ -157,6 +161,7 @@ public function getWeeklyHours(): ?int public function setWeeklyHours(?int $value = null): self { $this->weeklyHours = $value; + $this->_setField('weeklyHours'); return $this; } @@ -174,6 +179,7 @@ public function getJobId(): ?string public function setJobId(?string $value = null): self { $this->jobId = $value; + $this->_setField('jobId'); return $this; } diff --git a/src/Types/JobCreatedEvent.php b/src/Types/JobCreatedEvent.php index 7598d90c..16b9fc25 100644 --- a/src/Types/JobCreatedEvent.php +++ b/src/Types/JobCreatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?JobCreatedEventData public function setData(?JobCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/JobCreatedEventData.php b/src/Types/JobCreatedEventData.php index ba44f8d2..7aeeb4f5 100644 --- a/src/Types/JobCreatedEventData.php +++ b/src/Types/JobCreatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?JobCreatedEventObject public function setObject(?JobCreatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/JobCreatedEventObject.php b/src/Types/JobCreatedEventObject.php index 8eaff6ee..38ebdb98 100644 --- a/src/Types/JobCreatedEventObject.php +++ b/src/Types/JobCreatedEventObject.php @@ -38,6 +38,7 @@ public function getJob(): ?Job public function setJob(?Job $value = null): self { $this->job = $value; + $this->_setField('job'); return $this; } diff --git a/src/Types/JobUpdatedEvent.php b/src/Types/JobUpdatedEvent.php index 1b9c500b..12e61057 100644 --- a/src/Types/JobUpdatedEvent.php +++ b/src/Types/JobUpdatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?JobUpdatedEventData public function setData(?JobUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/JobUpdatedEventData.php b/src/Types/JobUpdatedEventData.php index eb05633e..58e4027b 100644 --- a/src/Types/JobUpdatedEventData.php +++ b/src/Types/JobUpdatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?JobUpdatedEventObject public function setObject(?JobUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/JobUpdatedEventObject.php b/src/Types/JobUpdatedEventObject.php index 22411033..4d01450e 100644 --- a/src/Types/JobUpdatedEventObject.php +++ b/src/Types/JobUpdatedEventObject.php @@ -38,6 +38,7 @@ public function getJob(): ?Job public function setJob(?Job $value = null): self { $this->job = $value; + $this->_setField('job'); return $this; } diff --git a/src/Types/LaborScheduledShiftCreatedEvent.php b/src/Types/LaborScheduledShiftCreatedEvent.php index b8963f79..c658cdb2 100644 --- a/src/Types/LaborScheduledShiftCreatedEvent.php +++ b/src/Types/LaborScheduledShiftCreatedEvent.php @@ -81,6 +81,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -98,6 +99,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -115,6 +117,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -132,6 +135,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -149,6 +153,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -166,6 +171,7 @@ public function getData(): ?LaborScheduledShiftCreatedEventData public function setData(?LaborScheduledShiftCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LaborScheduledShiftCreatedEventData.php b/src/Types/LaborScheduledShiftCreatedEventData.php index b13ccc2b..1e35c0a4 100644 --- a/src/Types/LaborScheduledShiftCreatedEventData.php +++ b/src/Types/LaborScheduledShiftCreatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?LaborScheduledShiftCreatedEventObject public function setObject(?LaborScheduledShiftCreatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/LaborScheduledShiftCreatedEventObject.php b/src/Types/LaborScheduledShiftCreatedEventObject.php index 9383f310..3f5a22b5 100644 --- a/src/Types/LaborScheduledShiftCreatedEventObject.php +++ b/src/Types/LaborScheduledShiftCreatedEventObject.php @@ -38,6 +38,7 @@ public function getScheduledShift(): ?ScheduledShift public function setScheduledShift(?ScheduledShift $value = null): self { $this->scheduledShift = $value; + $this->_setField('scheduledShift'); return $this; } diff --git a/src/Types/LaborScheduledShiftDeletedEvent.php b/src/Types/LaborScheduledShiftDeletedEvent.php index 59be22c2..e4e71b94 100644 --- a/src/Types/LaborScheduledShiftDeletedEvent.php +++ b/src/Types/LaborScheduledShiftDeletedEvent.php @@ -81,6 +81,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -98,6 +99,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -115,6 +117,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -132,6 +135,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -149,6 +153,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -166,6 +171,7 @@ public function getData(): ?LaborScheduledShiftDeletedEventData public function setData(?LaborScheduledShiftDeletedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LaborScheduledShiftDeletedEventData.php b/src/Types/LaborScheduledShiftDeletedEventData.php index b14909d1..31c3c45b 100644 --- a/src/Types/LaborScheduledShiftDeletedEventData.php +++ b/src/Types/LaborScheduledShiftDeletedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getDeleted(): ?bool public function setDeleted(?bool $value = null): self { $this->deleted = $value; + $this->_setField('deleted'); return $this; } diff --git a/src/Types/LaborScheduledShiftPublishedEvent.php b/src/Types/LaborScheduledShiftPublishedEvent.php index ba772046..f4359920 100644 --- a/src/Types/LaborScheduledShiftPublishedEvent.php +++ b/src/Types/LaborScheduledShiftPublishedEvent.php @@ -81,6 +81,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -98,6 +99,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -115,6 +117,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -132,6 +135,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -149,6 +153,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -166,6 +171,7 @@ public function getData(): ?LaborScheduledShiftPublishedEventData public function setData(?LaborScheduledShiftPublishedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LaborScheduledShiftPublishedEventData.php b/src/Types/LaborScheduledShiftPublishedEventData.php index 219c3f61..2c6152b7 100644 --- a/src/Types/LaborScheduledShiftPublishedEventData.php +++ b/src/Types/LaborScheduledShiftPublishedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?LaborScheduledShiftPublishedEventObject public function setObject(?LaborScheduledShiftPublishedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/LaborScheduledShiftPublishedEventObject.php b/src/Types/LaborScheduledShiftPublishedEventObject.php index a9ee6ba6..9a33c173 100644 --- a/src/Types/LaborScheduledShiftPublishedEventObject.php +++ b/src/Types/LaborScheduledShiftPublishedEventObject.php @@ -38,6 +38,7 @@ public function getScheduledShift(): ?ScheduledShift public function setScheduledShift(?ScheduledShift $value = null): self { $this->scheduledShift = $value; + $this->_setField('scheduledShift'); return $this; } diff --git a/src/Types/LaborScheduledShiftUpdatedEvent.php b/src/Types/LaborScheduledShiftUpdatedEvent.php index 4f58312b..00e93bd4 100644 --- a/src/Types/LaborScheduledShiftUpdatedEvent.php +++ b/src/Types/LaborScheduledShiftUpdatedEvent.php @@ -81,6 +81,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -98,6 +99,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -115,6 +117,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -132,6 +135,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -149,6 +153,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -166,6 +171,7 @@ public function getData(): ?LaborScheduledShiftUpdatedEventData public function setData(?LaborScheduledShiftUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LaborScheduledShiftUpdatedEventData.php b/src/Types/LaborScheduledShiftUpdatedEventData.php index 7e5b4741..62c19833 100644 --- a/src/Types/LaborScheduledShiftUpdatedEventData.php +++ b/src/Types/LaborScheduledShiftUpdatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?LaborScheduledShiftUpdatedEventObject public function setObject(?LaborScheduledShiftUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/LaborScheduledShiftUpdatedEventObject.php b/src/Types/LaborScheduledShiftUpdatedEventObject.php index 7fe2f843..80cc2a7a 100644 --- a/src/Types/LaborScheduledShiftUpdatedEventObject.php +++ b/src/Types/LaborScheduledShiftUpdatedEventObject.php @@ -38,6 +38,7 @@ public function getScheduledShift(): ?ScheduledShift public function setScheduledShift(?ScheduledShift $value = null): self { $this->scheduledShift = $value; + $this->_setField('scheduledShift'); return $this; } diff --git a/src/Types/LaborShiftCreatedEvent.php b/src/Types/LaborShiftCreatedEvent.php index 81aa5c57..7041e09e 100644 --- a/src/Types/LaborShiftCreatedEvent.php +++ b/src/Types/LaborShiftCreatedEvent.php @@ -75,6 +75,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -92,6 +93,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -109,6 +111,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -126,6 +129,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -143,6 +147,7 @@ public function getData(): ?LaborShiftCreatedEventData public function setData(?LaborShiftCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LaborShiftCreatedEventData.php b/src/Types/LaborShiftCreatedEventData.php index 33a8c50a..ff54d7a9 100644 --- a/src/Types/LaborShiftCreatedEventData.php +++ b/src/Types/LaborShiftCreatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?LaborShiftCreatedEventObject public function setObject(?LaborShiftCreatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/LaborShiftCreatedEventObject.php b/src/Types/LaborShiftCreatedEventObject.php index e5e9f4d6..91c53596 100644 --- a/src/Types/LaborShiftCreatedEventObject.php +++ b/src/Types/LaborShiftCreatedEventObject.php @@ -38,6 +38,7 @@ public function getShift(): ?Shift public function setShift(?Shift $value = null): self { $this->shift = $value; + $this->_setField('shift'); return $this; } diff --git a/src/Types/LaborShiftDeletedEvent.php b/src/Types/LaborShiftDeletedEvent.php index e17b86f7..f37b3337 100644 --- a/src/Types/LaborShiftDeletedEvent.php +++ b/src/Types/LaborShiftDeletedEvent.php @@ -75,6 +75,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -92,6 +93,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -109,6 +111,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -126,6 +129,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -143,6 +147,7 @@ public function getData(): ?LaborShiftDeletedEventData public function setData(?LaborShiftDeletedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LaborShiftDeletedEventData.php b/src/Types/LaborShiftDeletedEventData.php index 61da9a62..b7ae665c 100644 --- a/src/Types/LaborShiftDeletedEventData.php +++ b/src/Types/LaborShiftDeletedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getDeleted(): ?bool public function setDeleted(?bool $value = null): self { $this->deleted = $value; + $this->_setField('deleted'); return $this; } diff --git a/src/Types/LaborShiftUpdatedEvent.php b/src/Types/LaborShiftUpdatedEvent.php index e7533f49..ac4f3d2d 100644 --- a/src/Types/LaborShiftUpdatedEvent.php +++ b/src/Types/LaborShiftUpdatedEvent.php @@ -75,6 +75,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -92,6 +93,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -109,6 +111,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -126,6 +129,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -143,6 +147,7 @@ public function getData(): ?LaborShiftUpdatedEventData public function setData(?LaborShiftUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LaborShiftUpdatedEventData.php b/src/Types/LaborShiftUpdatedEventData.php index b62e29e3..29a94eaf 100644 --- a/src/Types/LaborShiftUpdatedEventData.php +++ b/src/Types/LaborShiftUpdatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?LaborShiftUpdatedEventObject public function setObject(?LaborShiftUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/LaborShiftUpdatedEventObject.php b/src/Types/LaborShiftUpdatedEventObject.php index 035ed41c..ff193954 100644 --- a/src/Types/LaborShiftUpdatedEventObject.php +++ b/src/Types/LaborShiftUpdatedEventObject.php @@ -38,6 +38,7 @@ public function getShift(): ?Shift public function setShift(?Shift $value = null): self { $this->shift = $value; + $this->_setField('shift'); return $this; } diff --git a/src/Types/LaborTimecardCreatedEvent.php b/src/Types/LaborTimecardCreatedEvent.php index ade3e920..a910b591 100644 --- a/src/Types/LaborTimecardCreatedEvent.php +++ b/src/Types/LaborTimecardCreatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?LaborTimecardCreatedEventData public function setData(?LaborTimecardCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LaborTimecardCreatedEventData.php b/src/Types/LaborTimecardCreatedEventData.php index 5dbad93a..791d57de 100644 --- a/src/Types/LaborTimecardCreatedEventData.php +++ b/src/Types/LaborTimecardCreatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?LaborTimecardCreatedEventObject public function setObject(?LaborTimecardCreatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/LaborTimecardCreatedEventObject.php b/src/Types/LaborTimecardCreatedEventObject.php index 7a613b52..94f5bfa8 100644 --- a/src/Types/LaborTimecardCreatedEventObject.php +++ b/src/Types/LaborTimecardCreatedEventObject.php @@ -38,6 +38,7 @@ public function getTimecard(): ?Timecard public function setTimecard(?Timecard $value = null): self { $this->timecard = $value; + $this->_setField('timecard'); return $this; } diff --git a/src/Types/LaborTimecardDeletedEvent.php b/src/Types/LaborTimecardDeletedEvent.php index 01d39355..2feecac3 100644 --- a/src/Types/LaborTimecardDeletedEvent.php +++ b/src/Types/LaborTimecardDeletedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?LaborTimecardDeletedEventData public function setData(?LaborTimecardDeletedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LaborTimecardDeletedEventData.php b/src/Types/LaborTimecardDeletedEventData.php index bfca382a..8f79d65e 100644 --- a/src/Types/LaborTimecardDeletedEventData.php +++ b/src/Types/LaborTimecardDeletedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getDeleted(): ?bool public function setDeleted(?bool $value = null): self { $this->deleted = $value; + $this->_setField('deleted'); return $this; } diff --git a/src/Types/LaborTimecardUpdatedEvent.php b/src/Types/LaborTimecardUpdatedEvent.php index b695d439..c0bedb1a 100644 --- a/src/Types/LaborTimecardUpdatedEvent.php +++ b/src/Types/LaborTimecardUpdatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?LaborTimecardUpdatedEventData public function setData(?LaborTimecardUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LaborTimecardUpdatedEventData.php b/src/Types/LaborTimecardUpdatedEventData.php index 9b8f81b0..54aced03 100644 --- a/src/Types/LaborTimecardUpdatedEventData.php +++ b/src/Types/LaborTimecardUpdatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?LaborTimecardUpdatedEventObject public function setObject(?LaborTimecardUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/LaborTimecardUpdatedEventObject.php b/src/Types/LaborTimecardUpdatedEventObject.php index 0d99dc65..05b2637f 100644 --- a/src/Types/LaborTimecardUpdatedEventObject.php +++ b/src/Types/LaborTimecardUpdatedEventObject.php @@ -38,6 +38,7 @@ public function getTimecard(): ?Timecard public function setTimecard(?Timecard $value = null): self { $this->timecard = $value; + $this->_setField('timecard'); return $this; } diff --git a/src/Types/LinkCustomerToGiftCardResponse.php b/src/Types/LinkCustomerToGiftCardResponse.php index 974b5305..b924d059 100644 --- a/src/Types/LinkCustomerToGiftCardResponse.php +++ b/src/Types/LinkCustomerToGiftCardResponse.php @@ -51,6 +51,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -68,6 +69,7 @@ public function getGiftCard(): ?GiftCard public function setGiftCard(?GiftCard $value = null): self { $this->giftCard = $value; + $this->_setField('giftCard'); return $this; } diff --git a/src/Types/ListBankAccountsResponse.php b/src/Types/ListBankAccountsResponse.php index dfff8fff..b8a11353 100644 --- a/src/Types/ListBankAccountsResponse.php +++ b/src/Types/ListBankAccountsResponse.php @@ -64,6 +64,7 @@ public function getBankAccounts(): ?array public function setBankAccounts(?array $value = null): self { $this->bankAccounts = $value; + $this->_setField('bankAccounts'); return $this; } @@ -81,6 +82,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -98,6 +100,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/ListBookingCustomAttributeDefinitionsResponse.php b/src/Types/ListBookingCustomAttributeDefinitionsResponse.php index 304fac9e..62f11d0f 100644 --- a/src/Types/ListBookingCustomAttributeDefinitionsResponse.php +++ b/src/Types/ListBookingCustomAttributeDefinitionsResponse.php @@ -67,6 +67,7 @@ public function getCustomAttributeDefinitions(): ?array public function setCustomAttributeDefinitions(?array $value = null): self { $this->customAttributeDefinitions = $value; + $this->_setField('customAttributeDefinitions'); return $this; } @@ -84,6 +85,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -101,6 +103,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/ListBookingCustomAttributesResponse.php b/src/Types/ListBookingCustomAttributesResponse.php index 0ab3c212..8d3dd720 100644 --- a/src/Types/ListBookingCustomAttributesResponse.php +++ b/src/Types/ListBookingCustomAttributesResponse.php @@ -69,6 +69,7 @@ public function getCustomAttributes(): ?array public function setCustomAttributes(?array $value = null): self { $this->customAttributes = $value; + $this->_setField('customAttributes'); return $this; } @@ -86,6 +87,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -103,6 +105,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/ListBookingsResponse.php b/src/Types/ListBookingsResponse.php index b484ba16..989c7558 100644 --- a/src/Types/ListBookingsResponse.php +++ b/src/Types/ListBookingsResponse.php @@ -55,6 +55,7 @@ public function getBookings(): ?array public function setBookings(?array $value = null): self { $this->bookings = $value; + $this->_setField('bookings'); return $this; } @@ -72,6 +73,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -89,6 +91,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/ListBreakTypesResponse.php b/src/Types/ListBreakTypesResponse.php index 6eb09be0..2ffa7550 100644 --- a/src/Types/ListBreakTypesResponse.php +++ b/src/Types/ListBreakTypesResponse.php @@ -63,6 +63,7 @@ public function getBreakTypes(): ?array public function setBreakTypes(?array $value = null): self { $this->breakTypes = $value; + $this->_setField('breakTypes'); return $this; } @@ -80,6 +81,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -97,6 +99,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/ListCardsResponse.php b/src/Types/ListCardsResponse.php index f815fa6d..56903b11 100644 --- a/src/Types/ListCardsResponse.php +++ b/src/Types/ListCardsResponse.php @@ -67,6 +67,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -84,6 +85,7 @@ public function getCards(): ?array public function setCards(?array $value = null): self { $this->cards = $value; + $this->_setField('cards'); return $this; } @@ -101,6 +103,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/ListCashDrawerShiftEventsResponse.php b/src/Types/ListCashDrawerShiftEventsResponse.php index 7288dac4..9d4c3fe7 100644 --- a/src/Types/ListCashDrawerShiftEventsResponse.php +++ b/src/Types/ListCashDrawerShiftEventsResponse.php @@ -61,6 +61,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -78,6 +79,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -95,6 +97,7 @@ public function getCashDrawerShiftEvents(): ?array public function setCashDrawerShiftEvents(?array $value = null): self { $this->cashDrawerShiftEvents = $value; + $this->_setField('cashDrawerShiftEvents'); return $this; } diff --git a/src/Types/ListCashDrawerShiftsResponse.php b/src/Types/ListCashDrawerShiftsResponse.php index 2c2a4050..640877ef 100644 --- a/src/Types/ListCashDrawerShiftsResponse.php +++ b/src/Types/ListCashDrawerShiftsResponse.php @@ -61,6 +61,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -78,6 +79,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -95,6 +97,7 @@ public function getCashDrawerShifts(): ?array public function setCashDrawerShifts(?array $value = null): self { $this->cashDrawerShifts = $value; + $this->_setField('cashDrawerShifts'); return $this; } diff --git a/src/Types/ListCatalogResponse.php b/src/Types/ListCatalogResponse.php index 6eba9d78..fabe7931 100644 --- a/src/Types/ListCatalogResponse.php +++ b/src/Types/ListCatalogResponse.php @@ -58,6 +58,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -75,6 +76,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -92,6 +94,7 @@ public function getObjects(): ?array public function setObjects(?array $value = null): self { $this->objects = $value; + $this->_setField('objects'); return $this; } diff --git a/src/Types/ListChannelsResponse.php b/src/Types/ListChannelsResponse.php index 6a3104a4..3eae1697 100644 --- a/src/Types/ListChannelsResponse.php +++ b/src/Types/ListChannelsResponse.php @@ -55,6 +55,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -72,6 +73,7 @@ public function getChannels(): ?array public function setChannels(?array $value = null): self { $this->channels = $value; + $this->_setField('channels'); return $this; } @@ -89,6 +91,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/ListCustomerCustomAttributeDefinitionsResponse.php b/src/Types/ListCustomerCustomAttributeDefinitionsResponse.php index 72cbeb29..55736b2b 100644 --- a/src/Types/ListCustomerCustomAttributeDefinitionsResponse.php +++ b/src/Types/ListCustomerCustomAttributeDefinitionsResponse.php @@ -67,6 +67,7 @@ public function getCustomAttributeDefinitions(): ?array public function setCustomAttributeDefinitions(?array $value = null): self { $this->customAttributeDefinitions = $value; + $this->_setField('customAttributeDefinitions'); return $this; } @@ -84,6 +85,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -101,6 +103,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/ListCustomerCustomAttributesResponse.php b/src/Types/ListCustomerCustomAttributesResponse.php index 10a3962b..696af7cf 100644 --- a/src/Types/ListCustomerCustomAttributesResponse.php +++ b/src/Types/ListCustomerCustomAttributesResponse.php @@ -69,6 +69,7 @@ public function getCustomAttributes(): ?array public function setCustomAttributes(?array $value = null): self { $this->customAttributes = $value; + $this->_setField('customAttributes'); return $this; } @@ -86,6 +87,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -103,6 +105,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/ListCustomerGroupsResponse.php b/src/Types/ListCustomerGroupsResponse.php index f5ba7a4e..c3adc758 100644 --- a/src/Types/ListCustomerGroupsResponse.php +++ b/src/Types/ListCustomerGroupsResponse.php @@ -67,6 +67,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -84,6 +85,7 @@ public function getGroups(): ?array public function setGroups(?array $value = null): self { $this->groups = $value; + $this->_setField('groups'); return $this; } @@ -101,6 +103,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/ListCustomerSegmentsResponse.php b/src/Types/ListCustomerSegmentsResponse.php index 560c4ac6..883d69ce 100644 --- a/src/Types/ListCustomerSegmentsResponse.php +++ b/src/Types/ListCustomerSegmentsResponse.php @@ -66,6 +66,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -83,6 +84,7 @@ public function getSegments(): ?array public function setSegments(?array $value = null): self { $this->segments = $value; + $this->_setField('segments'); return $this; } @@ -100,6 +102,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/ListCustomersResponse.php b/src/Types/ListCustomersResponse.php index 18b3195d..aeab020e 100644 --- a/src/Types/ListCustomersResponse.php +++ b/src/Types/ListCustomersResponse.php @@ -83,6 +83,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -100,6 +101,7 @@ public function getCustomers(): ?array public function setCustomers(?array $value = null): self { $this->customers = $value; + $this->_setField('customers'); return $this; } @@ -117,6 +119,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -134,6 +137,7 @@ public function getCount(): ?int public function setCount(?int $value = null): self { $this->count = $value; + $this->_setField('count'); return $this; } diff --git a/src/Types/ListDeviceCodesResponse.php b/src/Types/ListDeviceCodesResponse.php index 98f7530b..3ed12d33 100644 --- a/src/Types/ListDeviceCodesResponse.php +++ b/src/Types/ListDeviceCodesResponse.php @@ -61,6 +61,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -78,6 +79,7 @@ public function getDeviceCodes(): ?array public function setDeviceCodes(?array $value = null): self { $this->deviceCodes = $value; + $this->_setField('deviceCodes'); return $this; } @@ -95,6 +97,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/ListDevicesResponse.php b/src/Types/ListDevicesResponse.php index 8ac1a948..09288f9a 100644 --- a/src/Types/ListDevicesResponse.php +++ b/src/Types/ListDevicesResponse.php @@ -59,6 +59,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -76,6 +77,7 @@ public function getDevices(): ?array public function setDevices(?array $value = null): self { $this->devices = $value; + $this->_setField('devices'); return $this; } @@ -93,6 +95,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/ListDisputeEvidenceResponse.php b/src/Types/ListDisputeEvidenceResponse.php index 69126584..075a133d 100644 --- a/src/Types/ListDisputeEvidenceResponse.php +++ b/src/Types/ListDisputeEvidenceResponse.php @@ -61,6 +61,7 @@ public function getEvidence(): ?array public function setEvidence(?array $value = null): self { $this->evidence = $value; + $this->_setField('evidence'); return $this; } @@ -78,6 +79,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -95,6 +97,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/ListDisputesResponse.php b/src/Types/ListDisputesResponse.php index 1c2cd90c..1cbf7181 100644 --- a/src/Types/ListDisputesResponse.php +++ b/src/Types/ListDisputesResponse.php @@ -61,6 +61,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -78,6 +79,7 @@ public function getDisputes(): ?array public function setDisputes(?array $value = null): self { $this->disputes = $value; + $this->_setField('disputes'); return $this; } @@ -95,6 +97,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/ListEmployeeWagesResponse.php b/src/Types/ListEmployeeWagesResponse.php index 089b856b..53f2c316 100644 --- a/src/Types/ListEmployeeWagesResponse.php +++ b/src/Types/ListEmployeeWagesResponse.php @@ -62,6 +62,7 @@ public function getEmployeeWages(): ?array public function setEmployeeWages(?array $value = null): self { $this->employeeWages = $value; + $this->_setField('employeeWages'); return $this; } @@ -79,6 +80,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -96,6 +98,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/ListEmployeesResponse.php b/src/Types/ListEmployeesResponse.php index 47b284c4..98e51f96 100644 --- a/src/Types/ListEmployeesResponse.php +++ b/src/Types/ListEmployeesResponse.php @@ -55,6 +55,7 @@ public function getEmployees(): ?array public function setEmployees(?array $value = null): self { $this->employees = $value; + $this->_setField('employees'); return $this; } @@ -72,6 +73,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -89,6 +91,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/ListEventTypesResponse.php b/src/Types/ListEventTypesResponse.php index a472b4ab..2d2f2f2f 100644 --- a/src/Types/ListEventTypesResponse.php +++ b/src/Types/ListEventTypesResponse.php @@ -62,6 +62,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -79,6 +80,7 @@ public function getEventTypes(): ?array public function setEventTypes(?array $value = null): self { $this->eventTypes = $value; + $this->_setField('eventTypes'); return $this; } @@ -96,6 +98,7 @@ public function getMetadata(): ?array public function setMetadata(?array $value = null): self { $this->metadata = $value; + $this->_setField('metadata'); return $this; } diff --git a/src/Types/ListGiftCardActivitiesResponse.php b/src/Types/ListGiftCardActivitiesResponse.php index 617093e7..1c46a334 100644 --- a/src/Types/ListGiftCardActivitiesResponse.php +++ b/src/Types/ListGiftCardActivitiesResponse.php @@ -64,6 +64,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -81,6 +82,7 @@ public function getGiftCardActivities(): ?array public function setGiftCardActivities(?array $value = null): self { $this->giftCardActivities = $value; + $this->_setField('giftCardActivities'); return $this; } @@ -98,6 +100,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/ListGiftCardsResponse.php b/src/Types/ListGiftCardsResponse.php index e1b25230..d997bacc 100644 --- a/src/Types/ListGiftCardsResponse.php +++ b/src/Types/ListGiftCardsResponse.php @@ -64,6 +64,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -81,6 +82,7 @@ public function getGiftCards(): ?array public function setGiftCards(?array $value = null): self { $this->giftCards = $value; + $this->_setField('giftCards'); return $this; } @@ -98,6 +100,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/ListInvoicesResponse.php b/src/Types/ListInvoicesResponse.php index 9c3ba944..99dc6ebc 100644 --- a/src/Types/ListInvoicesResponse.php +++ b/src/Types/ListInvoicesResponse.php @@ -63,6 +63,7 @@ public function getInvoices(): ?array public function setInvoices(?array $value = null): self { $this->invoices = $value; + $this->_setField('invoices'); return $this; } @@ -80,6 +81,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -97,6 +99,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/ListJobsResponse.php b/src/Types/ListJobsResponse.php index b47d8c0b..fe686811 100644 --- a/src/Types/ListJobsResponse.php +++ b/src/Types/ListJobsResponse.php @@ -63,6 +63,7 @@ public function getJobs(): ?array public function setJobs(?array $value = null): self { $this->jobs = $value; + $this->_setField('jobs'); return $this; } @@ -80,6 +81,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -97,6 +99,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/ListLocationBookingProfilesResponse.php b/src/Types/ListLocationBookingProfilesResponse.php index c2733883..4d8d6216 100644 --- a/src/Types/ListLocationBookingProfilesResponse.php +++ b/src/Types/ListLocationBookingProfilesResponse.php @@ -55,6 +55,7 @@ public function getLocationBookingProfiles(): ?array public function setLocationBookingProfiles(?array $value = null): self { $this->locationBookingProfiles = $value; + $this->_setField('locationBookingProfiles'); return $this; } @@ -72,6 +73,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -89,6 +91,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/ListLocationCustomAttributeDefinitionsResponse.php b/src/Types/ListLocationCustomAttributeDefinitionsResponse.php index c6aef78f..042f295a 100644 --- a/src/Types/ListLocationCustomAttributeDefinitionsResponse.php +++ b/src/Types/ListLocationCustomAttributeDefinitionsResponse.php @@ -67,6 +67,7 @@ public function getCustomAttributeDefinitions(): ?array public function setCustomAttributeDefinitions(?array $value = null): self { $this->customAttributeDefinitions = $value; + $this->_setField('customAttributeDefinitions'); return $this; } @@ -84,6 +85,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -101,6 +103,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/ListLocationCustomAttributesResponse.php b/src/Types/ListLocationCustomAttributesResponse.php index 3bbd7a67..12c5f649 100644 --- a/src/Types/ListLocationCustomAttributesResponse.php +++ b/src/Types/ListLocationCustomAttributesResponse.php @@ -68,6 +68,7 @@ public function getCustomAttributes(): ?array public function setCustomAttributes(?array $value = null): self { $this->customAttributes = $value; + $this->_setField('customAttributes'); return $this; } @@ -85,6 +86,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -102,6 +104,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/ListLocationsResponse.php b/src/Types/ListLocationsResponse.php index 3cf36bf9..9a673042 100644 --- a/src/Types/ListLocationsResponse.php +++ b/src/Types/ListLocationsResponse.php @@ -53,6 +53,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -70,6 +71,7 @@ public function getLocations(): ?array public function setLocations(?array $value = null): self { $this->locations = $value; + $this->_setField('locations'); return $this; } diff --git a/src/Types/ListLoyaltyProgramsResponse.php b/src/Types/ListLoyaltyProgramsResponse.php index 5c06a8a6..9ee4597b 100644 --- a/src/Types/ListLoyaltyProgramsResponse.php +++ b/src/Types/ListLoyaltyProgramsResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getPrograms(): ?array public function setPrograms(?array $value = null): self { $this->programs = $value; + $this->_setField('programs'); return $this; } diff --git a/src/Types/ListLoyaltyPromotionsResponse.php b/src/Types/ListLoyaltyPromotionsResponse.php index 6a6b374d..29a606b9 100644 --- a/src/Types/ListLoyaltyPromotionsResponse.php +++ b/src/Types/ListLoyaltyPromotionsResponse.php @@ -64,6 +64,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -81,6 +82,7 @@ public function getLoyaltyPromotions(): ?array public function setLoyaltyPromotions(?array $value = null): self { $this->loyaltyPromotions = $value; + $this->_setField('loyaltyPromotions'); return $this; } @@ -98,6 +100,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/ListMerchantCustomAttributeDefinitionsResponse.php b/src/Types/ListMerchantCustomAttributeDefinitionsResponse.php index 6e0faada..3a89b3ad 100644 --- a/src/Types/ListMerchantCustomAttributeDefinitionsResponse.php +++ b/src/Types/ListMerchantCustomAttributeDefinitionsResponse.php @@ -67,6 +67,7 @@ public function getCustomAttributeDefinitions(): ?array public function setCustomAttributeDefinitions(?array $value = null): self { $this->customAttributeDefinitions = $value; + $this->_setField('customAttributeDefinitions'); return $this; } @@ -84,6 +85,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -101,6 +103,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/ListMerchantCustomAttributesResponse.php b/src/Types/ListMerchantCustomAttributesResponse.php index 9dafa736..d753ee55 100644 --- a/src/Types/ListMerchantCustomAttributesResponse.php +++ b/src/Types/ListMerchantCustomAttributesResponse.php @@ -68,6 +68,7 @@ public function getCustomAttributes(): ?array public function setCustomAttributes(?array $value = null): self { $this->customAttributes = $value; + $this->_setField('customAttributes'); return $this; } @@ -85,6 +86,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -102,6 +104,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/ListMerchantsResponse.php b/src/Types/ListMerchantsResponse.php index 9a124de8..11984bbf 100644 --- a/src/Types/ListMerchantsResponse.php +++ b/src/Types/ListMerchantsResponse.php @@ -58,6 +58,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -75,6 +76,7 @@ public function getMerchant(): ?array public function setMerchant(?array $value = null): self { $this->merchant = $value; + $this->_setField('merchant'); return $this; } @@ -92,6 +94,7 @@ public function getCursor(): ?int public function setCursor(?int $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/ListOrderCustomAttributeDefinitionsResponse.php b/src/Types/ListOrderCustomAttributeDefinitionsResponse.php index 3839e3ae..75bae8d0 100644 --- a/src/Types/ListOrderCustomAttributeDefinitionsResponse.php +++ b/src/Types/ListOrderCustomAttributeDefinitionsResponse.php @@ -62,6 +62,7 @@ public function getCustomAttributeDefinitions(): array public function setCustomAttributeDefinitions(array $value): self { $this->customAttributeDefinitions = $value; + $this->_setField('customAttributeDefinitions'); return $this; } @@ -79,6 +80,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -96,6 +98,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/ListOrderCustomAttributesResponse.php b/src/Types/ListOrderCustomAttributesResponse.php index 5fe4e789..6d595c8f 100644 --- a/src/Types/ListOrderCustomAttributesResponse.php +++ b/src/Types/ListOrderCustomAttributesResponse.php @@ -62,6 +62,7 @@ public function getCustomAttributes(): ?array public function setCustomAttributes(?array $value = null): self { $this->customAttributes = $value; + $this->_setField('customAttributes'); return $this; } @@ -79,6 +80,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -96,6 +98,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/ListPaymentLinksResponse.php b/src/Types/ListPaymentLinksResponse.php index 279d300f..7161c3e3 100644 --- a/src/Types/ListPaymentLinksResponse.php +++ b/src/Types/ListPaymentLinksResponse.php @@ -59,6 +59,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -76,6 +77,7 @@ public function getPaymentLinks(): ?array public function setPaymentLinks(?array $value = null): self { $this->paymentLinks = $value; + $this->_setField('paymentLinks'); return $this; } @@ -93,6 +95,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/ListPaymentRefundsResponse.php b/src/Types/ListPaymentRefundsResponse.php index 05673df1..418706a8 100644 --- a/src/Types/ListPaymentRefundsResponse.php +++ b/src/Types/ListPaymentRefundsResponse.php @@ -65,6 +65,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -82,6 +83,7 @@ public function getRefunds(): ?array public function setRefunds(?array $value = null): self { $this->refunds = $value; + $this->_setField('refunds'); return $this; } @@ -99,6 +101,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/ListPaymentsResponse.php b/src/Types/ListPaymentsResponse.php index fba0a79c..ea48043d 100644 --- a/src/Types/ListPaymentsResponse.php +++ b/src/Types/ListPaymentsResponse.php @@ -63,6 +63,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -80,6 +81,7 @@ public function getPayments(): ?array public function setPayments(?array $value = null): self { $this->payments = $value; + $this->_setField('payments'); return $this; } @@ -97,6 +99,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/ListPayoutEntriesResponse.php b/src/Types/ListPayoutEntriesResponse.php index 67b34b06..d0c9a788 100644 --- a/src/Types/ListPayoutEntriesResponse.php +++ b/src/Types/ListPayoutEntriesResponse.php @@ -61,6 +61,7 @@ public function getPayoutEntries(): ?array public function setPayoutEntries(?array $value = null): self { $this->payoutEntries = $value; + $this->_setField('payoutEntries'); return $this; } @@ -78,6 +79,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -95,6 +97,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/ListPayoutsResponse.php b/src/Types/ListPayoutsResponse.php index 2169c36a..9bb8726e 100644 --- a/src/Types/ListPayoutsResponse.php +++ b/src/Types/ListPayoutsResponse.php @@ -61,6 +61,7 @@ public function getPayouts(): ?array public function setPayouts(?array $value = null): self { $this->payouts = $value; + $this->_setField('payouts'); return $this; } @@ -78,6 +79,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -95,6 +97,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/ListSitesResponse.php b/src/Types/ListSitesResponse.php index 38cf6d57..a768d327 100644 --- a/src/Types/ListSitesResponse.php +++ b/src/Types/ListSitesResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getSites(): ?array public function setSites(?array $value = null): self { $this->sites = $value; + $this->_setField('sites'); return $this; } diff --git a/src/Types/ListSubscriptionEventsResponse.php b/src/Types/ListSubscriptionEventsResponse.php index 74ff2c78..108b220d 100644 --- a/src/Types/ListSubscriptionEventsResponse.php +++ b/src/Types/ListSubscriptionEventsResponse.php @@ -65,6 +65,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -82,6 +83,7 @@ public function getSubscriptionEvents(): ?array public function setSubscriptionEvents(?array $value = null): self { $this->subscriptionEvents = $value; + $this->_setField('subscriptionEvents'); return $this; } @@ -99,6 +101,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/ListTeamMemberBookingProfilesResponse.php b/src/Types/ListTeamMemberBookingProfilesResponse.php index 3376e020..6ab11fc9 100644 --- a/src/Types/ListTeamMemberBookingProfilesResponse.php +++ b/src/Types/ListTeamMemberBookingProfilesResponse.php @@ -59,6 +59,7 @@ public function getTeamMemberBookingProfiles(): ?array public function setTeamMemberBookingProfiles(?array $value = null): self { $this->teamMemberBookingProfiles = $value; + $this->_setField('teamMemberBookingProfiles'); return $this; } @@ -76,6 +77,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -93,6 +95,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/ListTeamMemberWagesResponse.php b/src/Types/ListTeamMemberWagesResponse.php index 14d4f117..0acd119b 100644 --- a/src/Types/ListTeamMemberWagesResponse.php +++ b/src/Types/ListTeamMemberWagesResponse.php @@ -62,6 +62,7 @@ public function getTeamMemberWages(): ?array public function setTeamMemberWages(?array $value = null): self { $this->teamMemberWages = $value; + $this->_setField('teamMemberWages'); return $this; } @@ -79,6 +80,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -96,6 +98,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/ListTransactionsResponse.php b/src/Types/ListTransactionsResponse.php index ddd1e272..76310494 100644 --- a/src/Types/ListTransactionsResponse.php +++ b/src/Types/ListTransactionsResponse.php @@ -67,6 +67,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -84,6 +85,7 @@ public function getTransactions(): ?array public function setTransactions(?array $value = null): self { $this->transactions = $value; + $this->_setField('transactions'); return $this; } @@ -101,6 +103,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/ListWebhookEventTypesResponse.php b/src/Types/ListWebhookEventTypesResponse.php index f36fb94f..33414c79 100644 --- a/src/Types/ListWebhookEventTypesResponse.php +++ b/src/Types/ListWebhookEventTypesResponse.php @@ -62,6 +62,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -79,6 +80,7 @@ public function getEventTypes(): ?array public function setEventTypes(?array $value = null): self { $this->eventTypes = $value; + $this->_setField('eventTypes'); return $this; } @@ -96,6 +98,7 @@ public function getMetadata(): ?array public function setMetadata(?array $value = null): self { $this->metadata = $value; + $this->_setField('metadata'); return $this; } diff --git a/src/Types/ListWebhookSubscriptionsResponse.php b/src/Types/ListWebhookSubscriptionsResponse.php index 6cd4657e..faa172f9 100644 --- a/src/Types/ListWebhookSubscriptionsResponse.php +++ b/src/Types/ListWebhookSubscriptionsResponse.php @@ -67,6 +67,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -84,6 +85,7 @@ public function getSubscriptions(): ?array public function setSubscriptions(?array $value = null): self { $this->subscriptions = $value; + $this->_setField('subscriptions'); return $this; } @@ -101,6 +103,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/ListWorkweekConfigsResponse.php b/src/Types/ListWorkweekConfigsResponse.php index 02ba58a9..5d1814b6 100644 --- a/src/Types/ListWorkweekConfigsResponse.php +++ b/src/Types/ListWorkweekConfigsResponse.php @@ -63,6 +63,7 @@ public function getWorkweekConfigs(): ?array public function setWorkweekConfigs(?array $value = null): self { $this->workweekConfigs = $value; + $this->_setField('workweekConfigs'); return $this; } @@ -80,6 +81,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -97,6 +99,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/Location.php b/src/Types/Location.php index 1f6598d0..08b845aa 100644 --- a/src/Types/Location.php +++ b/src/Types/Location.php @@ -296,6 +296,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -313,6 +314,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -330,6 +332,7 @@ public function getAddress(): ?Address public function setAddress(?Address $value = null): self { $this->address = $value; + $this->_setField('address'); return $this; } @@ -347,6 +350,7 @@ public function getTimezone(): ?string public function setTimezone(?string $value = null): self { $this->timezone = $value; + $this->_setField('timezone'); return $this; } @@ -364,6 +368,7 @@ public function getCapabilities(): ?array public function setCapabilities(?array $value = null): self { $this->capabilities = $value; + $this->_setField('capabilities'); return $this; } @@ -381,6 +386,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -398,6 +404,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -415,6 +422,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -432,6 +440,7 @@ public function getCountry(): ?string public function setCountry(?string $value = null): self { $this->country = $value; + $this->_setField('country'); return $this; } @@ -449,6 +458,7 @@ public function getLanguageCode(): ?string public function setLanguageCode(?string $value = null): self { $this->languageCode = $value; + $this->_setField('languageCode'); return $this; } @@ -466,6 +476,7 @@ public function getCurrency(): ?string public function setCurrency(?string $value = null): self { $this->currency = $value; + $this->_setField('currency'); return $this; } @@ -483,6 +494,7 @@ public function getPhoneNumber(): ?string public function setPhoneNumber(?string $value = null): self { $this->phoneNumber = $value; + $this->_setField('phoneNumber'); return $this; } @@ -500,6 +512,7 @@ public function getBusinessName(): ?string public function setBusinessName(?string $value = null): self { $this->businessName = $value; + $this->_setField('businessName'); return $this; } @@ -517,6 +530,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -534,6 +548,7 @@ public function getWebsiteUrl(): ?string public function setWebsiteUrl(?string $value = null): self { $this->websiteUrl = $value; + $this->_setField('websiteUrl'); return $this; } @@ -551,6 +566,7 @@ public function getBusinessHours(): ?BusinessHours public function setBusinessHours(?BusinessHours $value = null): self { $this->businessHours = $value; + $this->_setField('businessHours'); return $this; } @@ -568,6 +584,7 @@ public function getBusinessEmail(): ?string public function setBusinessEmail(?string $value = null): self { $this->businessEmail = $value; + $this->_setField('businessEmail'); return $this; } @@ -585,6 +602,7 @@ public function getDescription(): ?string public function setDescription(?string $value = null): self { $this->description = $value; + $this->_setField('description'); return $this; } @@ -602,6 +620,7 @@ public function getTwitterUsername(): ?string public function setTwitterUsername(?string $value = null): self { $this->twitterUsername = $value; + $this->_setField('twitterUsername'); return $this; } @@ -619,6 +638,7 @@ public function getInstagramUsername(): ?string public function setInstagramUsername(?string $value = null): self { $this->instagramUsername = $value; + $this->_setField('instagramUsername'); return $this; } @@ -636,6 +656,7 @@ public function getFacebookUrl(): ?string public function setFacebookUrl(?string $value = null): self { $this->facebookUrl = $value; + $this->_setField('facebookUrl'); return $this; } @@ -653,6 +674,7 @@ public function getCoordinates(): ?Coordinates public function setCoordinates(?Coordinates $value = null): self { $this->coordinates = $value; + $this->_setField('coordinates'); return $this; } @@ -670,6 +692,7 @@ public function getLogoUrl(): ?string public function setLogoUrl(?string $value = null): self { $this->logoUrl = $value; + $this->_setField('logoUrl'); return $this; } @@ -687,6 +710,7 @@ public function getPosBackgroundUrl(): ?string public function setPosBackgroundUrl(?string $value = null): self { $this->posBackgroundUrl = $value; + $this->_setField('posBackgroundUrl'); return $this; } @@ -704,6 +728,7 @@ public function getMcc(): ?string public function setMcc(?string $value = null): self { $this->mcc = $value; + $this->_setField('mcc'); return $this; } @@ -721,6 +746,7 @@ public function getFullFormatLogoUrl(): ?string public function setFullFormatLogoUrl(?string $value = null): self { $this->fullFormatLogoUrl = $value; + $this->_setField('fullFormatLogoUrl'); return $this; } @@ -738,6 +764,7 @@ public function getTaxIds(): ?TaxIds public function setTaxIds(?TaxIds $value = null): self { $this->taxIds = $value; + $this->_setField('taxIds'); return $this; } diff --git a/src/Types/LocationBookingProfile.php b/src/Types/LocationBookingProfile.php index 21b07496..da8ae8fa 100644 --- a/src/Types/LocationBookingProfile.php +++ b/src/Types/LocationBookingProfile.php @@ -57,6 +57,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -74,6 +75,7 @@ public function getBookingSiteUrl(): ?string public function setBookingSiteUrl(?string $value = null): self { $this->bookingSiteUrl = $value; + $this->_setField('bookingSiteUrl'); return $this; } @@ -91,6 +93,7 @@ public function getOnlineBookingEnabled(): ?bool public function setOnlineBookingEnabled(?bool $value = null): self { $this->onlineBookingEnabled = $value; + $this->_setField('onlineBookingEnabled'); return $this; } diff --git a/src/Types/LocationCreatedEvent.php b/src/Types/LocationCreatedEvent.php index 78e60f9d..2b9617ea 100644 --- a/src/Types/LocationCreatedEvent.php +++ b/src/Types/LocationCreatedEvent.php @@ -81,6 +81,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -98,6 +99,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -115,6 +117,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -132,6 +135,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -149,6 +153,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -166,6 +171,7 @@ public function getData(): ?LocationCreatedEventData public function setData(?LocationCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LocationCreatedEventData.php b/src/Types/LocationCreatedEventData.php index 5f25d540..d0331025 100644 --- a/src/Types/LocationCreatedEventData.php +++ b/src/Types/LocationCreatedEventData.php @@ -46,6 +46,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -63,6 +64,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } diff --git a/src/Types/LocationCustomAttributeDefinitionOwnedCreatedEvent.php b/src/Types/LocationCustomAttributeDefinitionOwnedCreatedEvent.php index de1e6c83..c5f52c88 100644 --- a/src/Types/LocationCustomAttributeDefinitionOwnedCreatedEvent.php +++ b/src/Types/LocationCustomAttributeDefinitionOwnedCreatedEvent.php @@ -74,6 +74,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -91,6 +92,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -108,6 +110,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -125,6 +128,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -142,6 +146,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LocationCustomAttributeDefinitionOwnedDeletedEvent.php b/src/Types/LocationCustomAttributeDefinitionOwnedDeletedEvent.php index 5ac1efab..5600ed23 100644 --- a/src/Types/LocationCustomAttributeDefinitionOwnedDeletedEvent.php +++ b/src/Types/LocationCustomAttributeDefinitionOwnedDeletedEvent.php @@ -75,6 +75,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -92,6 +93,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -109,6 +111,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -126,6 +129,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -143,6 +147,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LocationCustomAttributeDefinitionOwnedUpdatedEvent.php b/src/Types/LocationCustomAttributeDefinitionOwnedUpdatedEvent.php index 7c8458fc..c6fae9d3 100644 --- a/src/Types/LocationCustomAttributeDefinitionOwnedUpdatedEvent.php +++ b/src/Types/LocationCustomAttributeDefinitionOwnedUpdatedEvent.php @@ -75,6 +75,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -92,6 +93,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -109,6 +111,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -126,6 +129,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -143,6 +147,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LocationCustomAttributeDefinitionVisibleCreatedEvent.php b/src/Types/LocationCustomAttributeDefinitionVisibleCreatedEvent.php index 9565c336..008611af 100644 --- a/src/Types/LocationCustomAttributeDefinitionVisibleCreatedEvent.php +++ b/src/Types/LocationCustomAttributeDefinitionVisibleCreatedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LocationCustomAttributeDefinitionVisibleDeletedEvent.php b/src/Types/LocationCustomAttributeDefinitionVisibleDeletedEvent.php index 582746e5..0ebc9d13 100644 --- a/src/Types/LocationCustomAttributeDefinitionVisibleDeletedEvent.php +++ b/src/Types/LocationCustomAttributeDefinitionVisibleDeletedEvent.php @@ -77,6 +77,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -94,6 +95,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -111,6 +113,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -128,6 +131,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -145,6 +149,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LocationCustomAttributeDefinitionVisibleUpdatedEvent.php b/src/Types/LocationCustomAttributeDefinitionVisibleUpdatedEvent.php index d1914c3a..6ea92532 100644 --- a/src/Types/LocationCustomAttributeDefinitionVisibleUpdatedEvent.php +++ b/src/Types/LocationCustomAttributeDefinitionVisibleUpdatedEvent.php @@ -77,6 +77,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -94,6 +95,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -111,6 +113,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -128,6 +131,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -145,6 +149,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LocationCustomAttributeOwnedDeletedEvent.php b/src/Types/LocationCustomAttributeOwnedDeletedEvent.php index 36a65a44..8c9d240a 100644 --- a/src/Types/LocationCustomAttributeOwnedDeletedEvent.php +++ b/src/Types/LocationCustomAttributeOwnedDeletedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?CustomAttributeEventData public function setData(?CustomAttributeEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LocationCustomAttributeOwnedUpdatedEvent.php b/src/Types/LocationCustomAttributeOwnedUpdatedEvent.php index b966ea02..21925f92 100644 --- a/src/Types/LocationCustomAttributeOwnedUpdatedEvent.php +++ b/src/Types/LocationCustomAttributeOwnedUpdatedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?CustomAttributeEventData public function setData(?CustomAttributeEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LocationCustomAttributeVisibleDeletedEvent.php b/src/Types/LocationCustomAttributeVisibleDeletedEvent.php index 286623fc..3dd47f8a 100644 --- a/src/Types/LocationCustomAttributeVisibleDeletedEvent.php +++ b/src/Types/LocationCustomAttributeVisibleDeletedEvent.php @@ -81,6 +81,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -98,6 +99,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -115,6 +117,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -132,6 +135,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -149,6 +153,7 @@ public function getData(): ?CustomAttributeEventData public function setData(?CustomAttributeEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LocationCustomAttributeVisibleUpdatedEvent.php b/src/Types/LocationCustomAttributeVisibleUpdatedEvent.php index 6712b49b..7c6598e3 100644 --- a/src/Types/LocationCustomAttributeVisibleUpdatedEvent.php +++ b/src/Types/LocationCustomAttributeVisibleUpdatedEvent.php @@ -81,6 +81,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -98,6 +99,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -115,6 +117,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -132,6 +135,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -149,6 +153,7 @@ public function getData(): ?CustomAttributeEventData public function setData(?CustomAttributeEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LocationSettingsUpdatedEvent.php b/src/Types/LocationSettingsUpdatedEvent.php index bc6a532f..59379190 100644 --- a/src/Types/LocationSettingsUpdatedEvent.php +++ b/src/Types/LocationSettingsUpdatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?LocationSettingsUpdatedEventData public function setData(?LocationSettingsUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LocationSettingsUpdatedEventData.php b/src/Types/LocationSettingsUpdatedEventData.php index fb15bd7f..397658ed 100644 --- a/src/Types/LocationSettingsUpdatedEventData.php +++ b/src/Types/LocationSettingsUpdatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?LocationSettingsUpdatedEventObject public function setObject(?LocationSettingsUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/LocationSettingsUpdatedEventObject.php b/src/Types/LocationSettingsUpdatedEventObject.php index 529c6c61..6f1bb01d 100644 --- a/src/Types/LocationSettingsUpdatedEventObject.php +++ b/src/Types/LocationSettingsUpdatedEventObject.php @@ -38,6 +38,7 @@ public function getLocationSettings(): ?CheckoutLocationSettings public function setLocationSettings(?CheckoutLocationSettings $value = null): self { $this->locationSettings = $value; + $this->_setField('locationSettings'); return $this; } diff --git a/src/Types/LocationUpdatedEvent.php b/src/Types/LocationUpdatedEvent.php index 475149a1..bba00988 100644 --- a/src/Types/LocationUpdatedEvent.php +++ b/src/Types/LocationUpdatedEvent.php @@ -81,6 +81,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -98,6 +99,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -115,6 +117,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -132,6 +135,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -149,6 +153,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -166,6 +171,7 @@ public function getData(): ?LocationUpdatedEventData public function setData(?LocationUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LocationUpdatedEventData.php b/src/Types/LocationUpdatedEventData.php index 5b091f25..96fb8c62 100644 --- a/src/Types/LocationUpdatedEventData.php +++ b/src/Types/LocationUpdatedEventData.php @@ -46,6 +46,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -63,6 +64,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } diff --git a/src/Types/LoyaltyAccount.php b/src/Types/LoyaltyAccount.php index 29f37864..e0091889 100644 --- a/src/Types/LoyaltyAccount.php +++ b/src/Types/LoyaltyAccount.php @@ -138,6 +138,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -155,6 +156,7 @@ public function getProgramId(): string public function setProgramId(string $value): self { $this->programId = $value; + $this->_setField('programId'); return $this; } @@ -172,6 +174,7 @@ public function getBalance(): ?int public function setBalance(?int $value = null): self { $this->balance = $value; + $this->_setField('balance'); return $this; } @@ -189,6 +192,7 @@ public function getLifetimePoints(): ?int public function setLifetimePoints(?int $value = null): self { $this->lifetimePoints = $value; + $this->_setField('lifetimePoints'); return $this; } @@ -206,6 +210,7 @@ public function getCustomerId(): ?string public function setCustomerId(?string $value = null): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -223,6 +228,7 @@ public function getEnrolledAt(): ?string public function setEnrolledAt(?string $value = null): self { $this->enrolledAt = $value; + $this->_setField('enrolledAt'); return $this; } @@ -240,6 +246,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -257,6 +264,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -274,6 +282,7 @@ public function getMapping(): ?LoyaltyAccountMapping public function setMapping(?LoyaltyAccountMapping $value = null): self { $this->mapping = $value; + $this->_setField('mapping'); return $this; } @@ -291,6 +300,7 @@ public function getExpiringPointDeadlines(): ?array public function setExpiringPointDeadlines(?array $value = null): self { $this->expiringPointDeadlines = $value; + $this->_setField('expiringPointDeadlines'); return $this; } diff --git a/src/Types/LoyaltyAccountCreatedEvent.php b/src/Types/LoyaltyAccountCreatedEvent.php index 383857f0..d6e6e4d3 100644 --- a/src/Types/LoyaltyAccountCreatedEvent.php +++ b/src/Types/LoyaltyAccountCreatedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?LoyaltyAccountCreatedEventData public function setData(?LoyaltyAccountCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LoyaltyAccountCreatedEventData.php b/src/Types/LoyaltyAccountCreatedEventData.php index 8621867f..11ef1e8b 100644 --- a/src/Types/LoyaltyAccountCreatedEventData.php +++ b/src/Types/LoyaltyAccountCreatedEventData.php @@ -57,6 +57,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -74,6 +75,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -91,6 +93,7 @@ public function getObject(): ?LoyaltyAccountCreatedEventObject public function setObject(?LoyaltyAccountCreatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/LoyaltyAccountCreatedEventObject.php b/src/Types/LoyaltyAccountCreatedEventObject.php index 51de648f..460bdb91 100644 --- a/src/Types/LoyaltyAccountCreatedEventObject.php +++ b/src/Types/LoyaltyAccountCreatedEventObject.php @@ -38,6 +38,7 @@ public function getLoyaltyAccount(): ?LoyaltyAccount public function setLoyaltyAccount(?LoyaltyAccount $value = null): self { $this->loyaltyAccount = $value; + $this->_setField('loyaltyAccount'); return $this; } diff --git a/src/Types/LoyaltyAccountDeletedEvent.php b/src/Types/LoyaltyAccountDeletedEvent.php index ed14677a..9ccedfff 100644 --- a/src/Types/LoyaltyAccountDeletedEvent.php +++ b/src/Types/LoyaltyAccountDeletedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?LoyaltyAccountDeletedEventData public function setData(?LoyaltyAccountDeletedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LoyaltyAccountDeletedEventData.php b/src/Types/LoyaltyAccountDeletedEventData.php index babd8a67..c5b382d4 100644 --- a/src/Types/LoyaltyAccountDeletedEventData.php +++ b/src/Types/LoyaltyAccountDeletedEventData.php @@ -57,6 +57,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -74,6 +75,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -91,6 +93,7 @@ public function getObject(): ?LoyaltyAccountDeletedEventObject public function setObject(?LoyaltyAccountDeletedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/LoyaltyAccountDeletedEventObject.php b/src/Types/LoyaltyAccountDeletedEventObject.php index ea01b789..b2e5aa38 100644 --- a/src/Types/LoyaltyAccountDeletedEventObject.php +++ b/src/Types/LoyaltyAccountDeletedEventObject.php @@ -38,6 +38,7 @@ public function getLoyaltyAccount(): ?LoyaltyAccount public function setLoyaltyAccount(?LoyaltyAccount $value = null): self { $this->loyaltyAccount = $value; + $this->_setField('loyaltyAccount'); return $this; } diff --git a/src/Types/LoyaltyAccountExpiringPointDeadline.php b/src/Types/LoyaltyAccountExpiringPointDeadline.php index e8f44d61..d12943bc 100644 --- a/src/Types/LoyaltyAccountExpiringPointDeadline.php +++ b/src/Types/LoyaltyAccountExpiringPointDeadline.php @@ -49,6 +49,7 @@ public function getPoints(): int public function setPoints(int $value): self { $this->points = $value; + $this->_setField('points'); return $this; } @@ -66,6 +67,7 @@ public function getExpiresAt(): string public function setExpiresAt(string $value): self { $this->expiresAt = $value; + $this->_setField('expiresAt'); return $this; } diff --git a/src/Types/LoyaltyAccountMapping.php b/src/Types/LoyaltyAccountMapping.php index c605d2f1..07c8360c 100644 --- a/src/Types/LoyaltyAccountMapping.php +++ b/src/Types/LoyaltyAccountMapping.php @@ -60,6 +60,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -77,6 +78,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -94,6 +96,7 @@ public function getPhoneNumber(): ?string public function setPhoneNumber(?string $value = null): self { $this->phoneNumber = $value; + $this->_setField('phoneNumber'); return $this; } diff --git a/src/Types/LoyaltyAccountUpdatedEvent.php b/src/Types/LoyaltyAccountUpdatedEvent.php index 38d36dd6..486c0eea 100644 --- a/src/Types/LoyaltyAccountUpdatedEvent.php +++ b/src/Types/LoyaltyAccountUpdatedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?LoyaltyAccountUpdatedEventData public function setData(?LoyaltyAccountUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LoyaltyAccountUpdatedEventData.php b/src/Types/LoyaltyAccountUpdatedEventData.php index e4fa332f..8ed60540 100644 --- a/src/Types/LoyaltyAccountUpdatedEventData.php +++ b/src/Types/LoyaltyAccountUpdatedEventData.php @@ -57,6 +57,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -74,6 +75,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -91,6 +93,7 @@ public function getObject(): ?LoyaltyAccountUpdatedEventObject public function setObject(?LoyaltyAccountUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/LoyaltyAccountUpdatedEventObject.php b/src/Types/LoyaltyAccountUpdatedEventObject.php index 1f4aafcb..071c3c2a 100644 --- a/src/Types/LoyaltyAccountUpdatedEventObject.php +++ b/src/Types/LoyaltyAccountUpdatedEventObject.php @@ -38,6 +38,7 @@ public function getLoyaltyAccount(): ?LoyaltyAccount public function setLoyaltyAccount(?LoyaltyAccount $value = null): self { $this->loyaltyAccount = $value; + $this->_setField('loyaltyAccount'); return $this; } diff --git a/src/Types/LoyaltyEvent.php b/src/Types/LoyaltyEvent.php index a103e504..473c4bb3 100644 --- a/src/Types/LoyaltyEvent.php +++ b/src/Types/LoyaltyEvent.php @@ -152,6 +152,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -169,6 +170,7 @@ public function getType(): string public function setType(string $value): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -186,6 +188,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -203,6 +206,7 @@ public function getAccumulatePoints(): ?LoyaltyEventAccumulatePoints public function setAccumulatePoints(?LoyaltyEventAccumulatePoints $value = null): self { $this->accumulatePoints = $value; + $this->_setField('accumulatePoints'); return $this; } @@ -220,6 +224,7 @@ public function getCreateReward(): ?LoyaltyEventCreateReward public function setCreateReward(?LoyaltyEventCreateReward $value = null): self { $this->createReward = $value; + $this->_setField('createReward'); return $this; } @@ -237,6 +242,7 @@ public function getRedeemReward(): ?LoyaltyEventRedeemReward public function setRedeemReward(?LoyaltyEventRedeemReward $value = null): self { $this->redeemReward = $value; + $this->_setField('redeemReward'); return $this; } @@ -254,6 +260,7 @@ public function getDeleteReward(): ?LoyaltyEventDeleteReward public function setDeleteReward(?LoyaltyEventDeleteReward $value = null): self { $this->deleteReward = $value; + $this->_setField('deleteReward'); return $this; } @@ -271,6 +278,7 @@ public function getAdjustPoints(): ?LoyaltyEventAdjustPoints public function setAdjustPoints(?LoyaltyEventAdjustPoints $value = null): self { $this->adjustPoints = $value; + $this->_setField('adjustPoints'); return $this; } @@ -288,6 +296,7 @@ public function getLoyaltyAccountId(): ?string public function setLoyaltyAccountId(?string $value = null): self { $this->loyaltyAccountId = $value; + $this->_setField('loyaltyAccountId'); return $this; } @@ -305,6 +314,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -322,6 +332,7 @@ public function getSource(): string public function setSource(string $value): self { $this->source = $value; + $this->_setField('source'); return $this; } @@ -339,6 +350,7 @@ public function getExpirePoints(): ?LoyaltyEventExpirePoints public function setExpirePoints(?LoyaltyEventExpirePoints $value = null): self { $this->expirePoints = $value; + $this->_setField('expirePoints'); return $this; } @@ -356,6 +368,7 @@ public function getOtherEvent(): ?LoyaltyEventOther public function setOtherEvent(?LoyaltyEventOther $value = null): self { $this->otherEvent = $value; + $this->_setField('otherEvent'); return $this; } @@ -373,6 +386,7 @@ public function getAccumulatePromotionPoints(): ?LoyaltyEventAccumulatePromotion public function setAccumulatePromotionPoints(?LoyaltyEventAccumulatePromotionPoints $value = null): self { $this->accumulatePromotionPoints = $value; + $this->_setField('accumulatePromotionPoints'); return $this; } diff --git a/src/Types/LoyaltyEventAccumulatePoints.php b/src/Types/LoyaltyEventAccumulatePoints.php index 0d8be23c..e5c1b77d 100644 --- a/src/Types/LoyaltyEventAccumulatePoints.php +++ b/src/Types/LoyaltyEventAccumulatePoints.php @@ -60,6 +60,7 @@ public function getLoyaltyProgramId(): ?string public function setLoyaltyProgramId(?string $value = null): self { $this->loyaltyProgramId = $value; + $this->_setField('loyaltyProgramId'); return $this; } @@ -77,6 +78,7 @@ public function getPoints(): ?int public function setPoints(?int $value = null): self { $this->points = $value; + $this->_setField('points'); return $this; } @@ -94,6 +96,7 @@ public function getOrderId(): ?string public function setOrderId(?string $value = null): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } diff --git a/src/Types/LoyaltyEventAccumulatePromotionPoints.php b/src/Types/LoyaltyEventAccumulatePromotionPoints.php index de980564..5df6aab0 100644 --- a/src/Types/LoyaltyEventAccumulatePromotionPoints.php +++ b/src/Types/LoyaltyEventAccumulatePromotionPoints.php @@ -68,6 +68,7 @@ public function getLoyaltyProgramId(): ?string public function setLoyaltyProgramId(?string $value = null): self { $this->loyaltyProgramId = $value; + $this->_setField('loyaltyProgramId'); return $this; } @@ -85,6 +86,7 @@ public function getLoyaltyPromotionId(): ?string public function setLoyaltyPromotionId(?string $value = null): self { $this->loyaltyPromotionId = $value; + $this->_setField('loyaltyPromotionId'); return $this; } @@ -102,6 +104,7 @@ public function getPoints(): ?int public function setPoints(?int $value = null): self { $this->points = $value; + $this->_setField('points'); return $this; } @@ -119,6 +122,7 @@ public function getOrderId(): ?string public function setOrderId(?string $value = null): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } diff --git a/src/Types/LoyaltyEventAdjustPoints.php b/src/Types/LoyaltyEventAdjustPoints.php index d1b0fd63..92f59444 100644 --- a/src/Types/LoyaltyEventAdjustPoints.php +++ b/src/Types/LoyaltyEventAdjustPoints.php @@ -57,6 +57,7 @@ public function getLoyaltyProgramId(): ?string public function setLoyaltyProgramId(?string $value = null): self { $this->loyaltyProgramId = $value; + $this->_setField('loyaltyProgramId'); return $this; } @@ -74,6 +75,7 @@ public function getPoints(): int public function setPoints(int $value): self { $this->points = $value; + $this->_setField('points'); return $this; } @@ -91,6 +93,7 @@ public function getReason(): ?string public function setReason(?string $value = null): self { $this->reason = $value; + $this->_setField('reason'); return $this; } diff --git a/src/Types/LoyaltyEventCreateReward.php b/src/Types/LoyaltyEventCreateReward.php index d4ebcae2..bc79433e 100644 --- a/src/Types/LoyaltyEventCreateReward.php +++ b/src/Types/LoyaltyEventCreateReward.php @@ -60,6 +60,7 @@ public function getLoyaltyProgramId(): ?string public function setLoyaltyProgramId(?string $value = null): self { $this->loyaltyProgramId = $value; + $this->_setField('loyaltyProgramId'); return $this; } @@ -77,6 +78,7 @@ public function getRewardId(): ?string public function setRewardId(?string $value = null): self { $this->rewardId = $value; + $this->_setField('rewardId'); return $this; } @@ -94,6 +96,7 @@ public function getPoints(): ?int public function setPoints(?int $value = null): self { $this->points = $value; + $this->_setField('points'); return $this; } diff --git a/src/Types/LoyaltyEventCreatedEvent.php b/src/Types/LoyaltyEventCreatedEvent.php index c66e2d68..e99373fd 100644 --- a/src/Types/LoyaltyEventCreatedEvent.php +++ b/src/Types/LoyaltyEventCreatedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?LoyaltyEventCreatedEventData public function setData(?LoyaltyEventCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LoyaltyEventCreatedEventData.php b/src/Types/LoyaltyEventCreatedEventData.php index c1a8a9e7..8a9c397c 100644 --- a/src/Types/LoyaltyEventCreatedEventData.php +++ b/src/Types/LoyaltyEventCreatedEventData.php @@ -57,6 +57,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -74,6 +75,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -91,6 +93,7 @@ public function getObject(): ?LoyaltyEventCreatedEventObject public function setObject(?LoyaltyEventCreatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/LoyaltyEventCreatedEventObject.php b/src/Types/LoyaltyEventCreatedEventObject.php index a1a9b02a..846512cf 100644 --- a/src/Types/LoyaltyEventCreatedEventObject.php +++ b/src/Types/LoyaltyEventCreatedEventObject.php @@ -38,6 +38,7 @@ public function getLoyaltyEvent(): ?LoyaltyEvent public function setLoyaltyEvent(?LoyaltyEvent $value = null): self { $this->loyaltyEvent = $value; + $this->_setField('loyaltyEvent'); return $this; } diff --git a/src/Types/LoyaltyEventDateTimeFilter.php b/src/Types/LoyaltyEventDateTimeFilter.php index 5bd6fb61..42fa77e2 100644 --- a/src/Types/LoyaltyEventDateTimeFilter.php +++ b/src/Types/LoyaltyEventDateTimeFilter.php @@ -41,6 +41,7 @@ public function getCreatedAt(): TimeRange public function setCreatedAt(TimeRange $value): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } diff --git a/src/Types/LoyaltyEventDeleteReward.php b/src/Types/LoyaltyEventDeleteReward.php index 3cbb939f..5338c35e 100644 --- a/src/Types/LoyaltyEventDeleteReward.php +++ b/src/Types/LoyaltyEventDeleteReward.php @@ -60,6 +60,7 @@ public function getLoyaltyProgramId(): ?string public function setLoyaltyProgramId(?string $value = null): self { $this->loyaltyProgramId = $value; + $this->_setField('loyaltyProgramId'); return $this; } @@ -77,6 +78,7 @@ public function getRewardId(): ?string public function setRewardId(?string $value = null): self { $this->rewardId = $value; + $this->_setField('rewardId'); return $this; } @@ -94,6 +96,7 @@ public function getPoints(): ?int public function setPoints(?int $value = null): self { $this->points = $value; + $this->_setField('points'); return $this; } diff --git a/src/Types/LoyaltyEventExpirePoints.php b/src/Types/LoyaltyEventExpirePoints.php index a80f86d3..1ccc12d6 100644 --- a/src/Types/LoyaltyEventExpirePoints.php +++ b/src/Types/LoyaltyEventExpirePoints.php @@ -49,6 +49,7 @@ public function getLoyaltyProgramId(): ?string public function setLoyaltyProgramId(?string $value = null): self { $this->loyaltyProgramId = $value; + $this->_setField('loyaltyProgramId'); return $this; } @@ -66,6 +67,7 @@ public function getPoints(): int public function setPoints(int $value): self { $this->points = $value; + $this->_setField('points'); return $this; } diff --git a/src/Types/LoyaltyEventFilter.php b/src/Types/LoyaltyEventFilter.php index 1404577e..1b82e4b3 100644 --- a/src/Types/LoyaltyEventFilter.php +++ b/src/Types/LoyaltyEventFilter.php @@ -78,6 +78,7 @@ public function getLoyaltyAccountFilter(): ?LoyaltyEventLoyaltyAccountFilter public function setLoyaltyAccountFilter(?LoyaltyEventLoyaltyAccountFilter $value = null): self { $this->loyaltyAccountFilter = $value; + $this->_setField('loyaltyAccountFilter'); return $this; } @@ -95,6 +96,7 @@ public function getTypeFilter(): ?LoyaltyEventTypeFilter public function setTypeFilter(?LoyaltyEventTypeFilter $value = null): self { $this->typeFilter = $value; + $this->_setField('typeFilter'); return $this; } @@ -112,6 +114,7 @@ public function getDateTimeFilter(): ?LoyaltyEventDateTimeFilter public function setDateTimeFilter(?LoyaltyEventDateTimeFilter $value = null): self { $this->dateTimeFilter = $value; + $this->_setField('dateTimeFilter'); return $this; } @@ -129,6 +132,7 @@ public function getLocationFilter(): ?LoyaltyEventLocationFilter public function setLocationFilter(?LoyaltyEventLocationFilter $value = null): self { $this->locationFilter = $value; + $this->_setField('locationFilter'); return $this; } @@ -146,6 +150,7 @@ public function getOrderFilter(): ?LoyaltyEventOrderFilter public function setOrderFilter(?LoyaltyEventOrderFilter $value = null): self { $this->orderFilter = $value; + $this->_setField('orderFilter'); return $this; } diff --git a/src/Types/LoyaltyEventLocationFilter.php b/src/Types/LoyaltyEventLocationFilter.php index 65fb076d..a681f547 100644 --- a/src/Types/LoyaltyEventLocationFilter.php +++ b/src/Types/LoyaltyEventLocationFilter.php @@ -46,6 +46,7 @@ public function getLocationIds(): array public function setLocationIds(array $value): self { $this->locationIds = $value; + $this->_setField('locationIds'); return $this; } diff --git a/src/Types/LoyaltyEventLoyaltyAccountFilter.php b/src/Types/LoyaltyEventLoyaltyAccountFilter.php index b20e7668..393b1f0c 100644 --- a/src/Types/LoyaltyEventLoyaltyAccountFilter.php +++ b/src/Types/LoyaltyEventLoyaltyAccountFilter.php @@ -41,6 +41,7 @@ public function getLoyaltyAccountId(): string public function setLoyaltyAccountId(string $value): self { $this->loyaltyAccountId = $value; + $this->_setField('loyaltyAccountId'); return $this; } diff --git a/src/Types/LoyaltyEventOrderFilter.php b/src/Types/LoyaltyEventOrderFilter.php index 5d7ea4c3..1b414672 100644 --- a/src/Types/LoyaltyEventOrderFilter.php +++ b/src/Types/LoyaltyEventOrderFilter.php @@ -41,6 +41,7 @@ public function getOrderId(): string public function setOrderId(string $value): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } diff --git a/src/Types/LoyaltyEventOther.php b/src/Types/LoyaltyEventOther.php index 512e63c9..5dded82f 100644 --- a/src/Types/LoyaltyEventOther.php +++ b/src/Types/LoyaltyEventOther.php @@ -49,6 +49,7 @@ public function getLoyaltyProgramId(): ?string public function setLoyaltyProgramId(?string $value = null): self { $this->loyaltyProgramId = $value; + $this->_setField('loyaltyProgramId'); return $this; } @@ -66,6 +67,7 @@ public function getPoints(): int public function setPoints(int $value): self { $this->points = $value; + $this->_setField('points'); return $this; } diff --git a/src/Types/LoyaltyEventQuery.php b/src/Types/LoyaltyEventQuery.php index 52b90a2e..308fb09e 100644 --- a/src/Types/LoyaltyEventQuery.php +++ b/src/Types/LoyaltyEventQuery.php @@ -41,6 +41,7 @@ public function getFilter(): ?LoyaltyEventFilter public function setFilter(?LoyaltyEventFilter $value = null): self { $this->filter = $value; + $this->_setField('filter'); return $this; } diff --git a/src/Types/LoyaltyEventRedeemReward.php b/src/Types/LoyaltyEventRedeemReward.php index ccf00599..8b9a8ada 100644 --- a/src/Types/LoyaltyEventRedeemReward.php +++ b/src/Types/LoyaltyEventRedeemReward.php @@ -63,6 +63,7 @@ public function getLoyaltyProgramId(): ?string public function setLoyaltyProgramId(?string $value = null): self { $this->loyaltyProgramId = $value; + $this->_setField('loyaltyProgramId'); return $this; } @@ -80,6 +81,7 @@ public function getRewardId(): ?string public function setRewardId(?string $value = null): self { $this->rewardId = $value; + $this->_setField('rewardId'); return $this; } @@ -97,6 +99,7 @@ public function getOrderId(): ?string public function setOrderId(?string $value = null): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } diff --git a/src/Types/LoyaltyEventTypeFilter.php b/src/Types/LoyaltyEventTypeFilter.php index cff19a69..a04c9369 100644 --- a/src/Types/LoyaltyEventTypeFilter.php +++ b/src/Types/LoyaltyEventTypeFilter.php @@ -47,6 +47,7 @@ public function getTypes(): array public function setTypes(array $value): self { $this->types = $value; + $this->_setField('types'); return $this; } diff --git a/src/Types/LoyaltyProgram.php b/src/Types/LoyaltyProgram.php index 0884280c..dea230da 100644 --- a/src/Types/LoyaltyProgram.php +++ b/src/Types/LoyaltyProgram.php @@ -118,6 +118,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -135,6 +136,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -152,6 +154,7 @@ public function getRewardTiers(): ?array public function setRewardTiers(?array $value = null): self { $this->rewardTiers = $value; + $this->_setField('rewardTiers'); return $this; } @@ -169,6 +172,7 @@ public function getExpirationPolicy(): ?LoyaltyProgramExpirationPolicy public function setExpirationPolicy(?LoyaltyProgramExpirationPolicy $value = null): self { $this->expirationPolicy = $value; + $this->_setField('expirationPolicy'); return $this; } @@ -186,6 +190,7 @@ public function getTerminology(): ?LoyaltyProgramTerminology public function setTerminology(?LoyaltyProgramTerminology $value = null): self { $this->terminology = $value; + $this->_setField('terminology'); return $this; } @@ -203,6 +208,7 @@ public function getLocationIds(): ?array public function setLocationIds(?array $value = null): self { $this->locationIds = $value; + $this->_setField('locationIds'); return $this; } @@ -220,6 +226,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -237,6 +244,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -254,6 +262,7 @@ public function getAccrualRules(): ?array public function setAccrualRules(?array $value = null): self { $this->accrualRules = $value; + $this->_setField('accrualRules'); return $this; } diff --git a/src/Types/LoyaltyProgramAccrualRule.php b/src/Types/LoyaltyProgramAccrualRule.php index 19ea51cf..8184c6e2 100644 --- a/src/Types/LoyaltyProgramAccrualRule.php +++ b/src/Types/LoyaltyProgramAccrualRule.php @@ -87,6 +87,7 @@ public function getAccrualType(): string public function setAccrualType(string $value): self { $this->accrualType = $value; + $this->_setField('accrualType'); return $this; } @@ -104,6 +105,7 @@ public function getPoints(): ?int public function setPoints(?int $value = null): self { $this->points = $value; + $this->_setField('points'); return $this; } @@ -121,6 +123,7 @@ public function getVisitData(): ?LoyaltyProgramAccrualRuleVisitData public function setVisitData(?LoyaltyProgramAccrualRuleVisitData $value = null): self { $this->visitData = $value; + $this->_setField('visitData'); return $this; } @@ -138,6 +141,7 @@ public function getSpendData(): ?LoyaltyProgramAccrualRuleSpendData public function setSpendData(?LoyaltyProgramAccrualRuleSpendData $value = null): self { $this->spendData = $value; + $this->_setField('spendData'); return $this; } @@ -155,6 +159,7 @@ public function getItemVariationData(): ?LoyaltyProgramAccrualRuleItemVariationD public function setItemVariationData(?LoyaltyProgramAccrualRuleItemVariationData $value = null): self { $this->itemVariationData = $value; + $this->_setField('itemVariationData'); return $this; } @@ -172,6 +177,7 @@ public function getCategoryData(): ?LoyaltyProgramAccrualRuleCategoryData public function setCategoryData(?LoyaltyProgramAccrualRuleCategoryData $value = null): self { $this->categoryData = $value; + $this->_setField('categoryData'); return $this; } diff --git a/src/Types/LoyaltyProgramAccrualRuleCategoryData.php b/src/Types/LoyaltyProgramAccrualRuleCategoryData.php index a0520aa6..0ff4a9e7 100644 --- a/src/Types/LoyaltyProgramAccrualRuleCategoryData.php +++ b/src/Types/LoyaltyProgramAccrualRuleCategoryData.php @@ -44,6 +44,7 @@ public function getCategoryId(): string public function setCategoryId(string $value): self { $this->categoryId = $value; + $this->_setField('categoryId'); return $this; } diff --git a/src/Types/LoyaltyProgramAccrualRuleItemVariationData.php b/src/Types/LoyaltyProgramAccrualRuleItemVariationData.php index 5f20761a..2df7f2b2 100644 --- a/src/Types/LoyaltyProgramAccrualRuleItemVariationData.php +++ b/src/Types/LoyaltyProgramAccrualRuleItemVariationData.php @@ -44,6 +44,7 @@ public function getItemVariationId(): string public function setItemVariationId(string $value): self { $this->itemVariationId = $value; + $this->_setField('itemVariationId'); return $this; } diff --git a/src/Types/LoyaltyProgramAccrualRuleSpendData.php b/src/Types/LoyaltyProgramAccrualRuleSpendData.php index 17f2508c..2f1b4219 100644 --- a/src/Types/LoyaltyProgramAccrualRuleSpendData.php +++ b/src/Types/LoyaltyProgramAccrualRuleSpendData.php @@ -82,6 +82,7 @@ public function getAmountMoney(): Money public function setAmountMoney(Money $value): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } @@ -99,6 +100,7 @@ public function getExcludedCategoryIds(): ?array public function setExcludedCategoryIds(?array $value = null): self { $this->excludedCategoryIds = $value; + $this->_setField('excludedCategoryIds'); return $this; } @@ -116,6 +118,7 @@ public function getExcludedItemVariationIds(): ?array public function setExcludedItemVariationIds(?array $value = null): self { $this->excludedItemVariationIds = $value; + $this->_setField('excludedItemVariationIds'); return $this; } @@ -133,6 +136,7 @@ public function getTaxMode(): string public function setTaxMode(string $value): self { $this->taxMode = $value; + $this->_setField('taxMode'); return $this; } diff --git a/src/Types/LoyaltyProgramAccrualRuleVisitData.php b/src/Types/LoyaltyProgramAccrualRuleVisitData.php index a37e6e2b..4632df78 100644 --- a/src/Types/LoyaltyProgramAccrualRuleVisitData.php +++ b/src/Types/LoyaltyProgramAccrualRuleVisitData.php @@ -53,6 +53,7 @@ public function getMinimumAmountMoney(): ?Money public function setMinimumAmountMoney(?Money $value = null): self { $this->minimumAmountMoney = $value; + $this->_setField('minimumAmountMoney'); return $this; } @@ -70,6 +71,7 @@ public function getTaxMode(): string public function setTaxMode(string $value): self { $this->taxMode = $value; + $this->_setField('taxMode'); return $this; } diff --git a/src/Types/LoyaltyProgramCreatedEvent.php b/src/Types/LoyaltyProgramCreatedEvent.php index 7dc81d60..0e9fee28 100644 --- a/src/Types/LoyaltyProgramCreatedEvent.php +++ b/src/Types/LoyaltyProgramCreatedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?LoyaltyProgramCreatedEventData public function setData(?LoyaltyProgramCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LoyaltyProgramCreatedEventData.php b/src/Types/LoyaltyProgramCreatedEventData.php index bb628bee..6e635628 100644 --- a/src/Types/LoyaltyProgramCreatedEventData.php +++ b/src/Types/LoyaltyProgramCreatedEventData.php @@ -57,6 +57,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -74,6 +75,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -91,6 +93,7 @@ public function getObject(): ?LoyaltyProgramCreatedEventObject public function setObject(?LoyaltyProgramCreatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/LoyaltyProgramCreatedEventObject.php b/src/Types/LoyaltyProgramCreatedEventObject.php index c2679cfd..773e1b27 100644 --- a/src/Types/LoyaltyProgramCreatedEventObject.php +++ b/src/Types/LoyaltyProgramCreatedEventObject.php @@ -41,6 +41,7 @@ public function getLoyaltyProgram(): ?LoyaltyProgram public function setLoyaltyProgram(?LoyaltyProgram $value = null): self { $this->loyaltyProgram = $value; + $this->_setField('loyaltyProgram'); return $this; } diff --git a/src/Types/LoyaltyProgramExpirationPolicy.php b/src/Types/LoyaltyProgramExpirationPolicy.php index 3a11d954..06e1c258 100644 --- a/src/Types/LoyaltyProgramExpirationPolicy.php +++ b/src/Types/LoyaltyProgramExpirationPolicy.php @@ -44,6 +44,7 @@ public function getExpirationDuration(): string public function setExpirationDuration(string $value): self { $this->expirationDuration = $value; + $this->_setField('expirationDuration'); return $this; } diff --git a/src/Types/LoyaltyProgramRewardTier.php b/src/Types/LoyaltyProgramRewardTier.php index 747287b7..a0b082b8 100644 --- a/src/Types/LoyaltyProgramRewardTier.php +++ b/src/Types/LoyaltyProgramRewardTier.php @@ -79,6 +79,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -96,6 +97,7 @@ public function getPoints(): int public function setPoints(int $value): self { $this->points = $value; + $this->_setField('points'); return $this; } @@ -113,6 +115,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -130,6 +133,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -147,6 +151,7 @@ public function getPricingRuleReference(): CatalogObjectReference public function setPricingRuleReference(CatalogObjectReference $value): self { $this->pricingRuleReference = $value; + $this->_setField('pricingRuleReference'); return $this; } diff --git a/src/Types/LoyaltyProgramTerminology.php b/src/Types/LoyaltyProgramTerminology.php index 1fd7b25b..2a8dd9a1 100644 --- a/src/Types/LoyaltyProgramTerminology.php +++ b/src/Types/LoyaltyProgramTerminology.php @@ -49,6 +49,7 @@ public function getOne(): string public function setOne(string $value): self { $this->one = $value; + $this->_setField('one'); return $this; } @@ -66,6 +67,7 @@ public function getOther(): string public function setOther(string $value): self { $this->other = $value; + $this->_setField('other'); return $this; } diff --git a/src/Types/LoyaltyProgramUpdatedEvent.php b/src/Types/LoyaltyProgramUpdatedEvent.php index c88d5d68..28a3ad2b 100644 --- a/src/Types/LoyaltyProgramUpdatedEvent.php +++ b/src/Types/LoyaltyProgramUpdatedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?LoyaltyProgramUpdatedEventData public function setData(?LoyaltyProgramUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LoyaltyProgramUpdatedEventData.php b/src/Types/LoyaltyProgramUpdatedEventData.php index 3b4874c7..93052f43 100644 --- a/src/Types/LoyaltyProgramUpdatedEventData.php +++ b/src/Types/LoyaltyProgramUpdatedEventData.php @@ -57,6 +57,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -74,6 +75,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -91,6 +93,7 @@ public function getObject(): ?LoyaltyProgramUpdatedEventObject public function setObject(?LoyaltyProgramUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/LoyaltyProgramUpdatedEventObject.php b/src/Types/LoyaltyProgramUpdatedEventObject.php index 70bc2f66..f21b386d 100644 --- a/src/Types/LoyaltyProgramUpdatedEventObject.php +++ b/src/Types/LoyaltyProgramUpdatedEventObject.php @@ -41,6 +41,7 @@ public function getLoyaltyProgram(): ?LoyaltyProgram public function setLoyaltyProgram(?LoyaltyProgram $value = null): self { $this->loyaltyProgram = $value; + $this->_setField('loyaltyProgram'); return $this; } diff --git a/src/Types/LoyaltyPromotion.php b/src/Types/LoyaltyPromotion.php index eb8699b1..70466697 100644 --- a/src/Types/LoyaltyPromotion.php +++ b/src/Types/LoyaltyPromotion.php @@ -166,6 +166,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -183,6 +184,7 @@ public function getName(): string public function setName(string $value): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -200,6 +202,7 @@ public function getIncentive(): LoyaltyPromotionIncentive public function setIncentive(LoyaltyPromotionIncentive $value): self { $this->incentive = $value; + $this->_setField('incentive'); return $this; } @@ -217,6 +220,7 @@ public function getAvailableTime(): LoyaltyPromotionAvailableTimeData public function setAvailableTime(LoyaltyPromotionAvailableTimeData $value): self { $this->availableTime = $value; + $this->_setField('availableTime'); return $this; } @@ -234,6 +238,7 @@ public function getTriggerLimit(): ?LoyaltyPromotionTriggerLimit public function setTriggerLimit(?LoyaltyPromotionTriggerLimit $value = null): self { $this->triggerLimit = $value; + $this->_setField('triggerLimit'); return $this; } @@ -251,6 +256,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -268,6 +274,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -285,6 +292,7 @@ public function getCanceledAt(): ?string public function setCanceledAt(?string $value = null): self { $this->canceledAt = $value; + $this->_setField('canceledAt'); return $this; } @@ -302,6 +310,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -319,6 +328,7 @@ public function getLoyaltyProgramId(): ?string public function setLoyaltyProgramId(?string $value = null): self { $this->loyaltyProgramId = $value; + $this->_setField('loyaltyProgramId'); return $this; } @@ -336,6 +346,7 @@ public function getMinimumSpendAmountMoney(): ?Money public function setMinimumSpendAmountMoney(?Money $value = null): self { $this->minimumSpendAmountMoney = $value; + $this->_setField('minimumSpendAmountMoney'); return $this; } @@ -353,6 +364,7 @@ public function getQualifyingItemVariationIds(): ?array public function setQualifyingItemVariationIds(?array $value = null): self { $this->qualifyingItemVariationIds = $value; + $this->_setField('qualifyingItemVariationIds'); return $this; } @@ -370,6 +382,7 @@ public function getQualifyingCategoryIds(): ?array public function setQualifyingCategoryIds(?array $value = null): self { $this->qualifyingCategoryIds = $value; + $this->_setField('qualifyingCategoryIds'); return $this; } diff --git a/src/Types/LoyaltyPromotionAvailableTimeData.php b/src/Types/LoyaltyPromotionAvailableTimeData.php index 53b64154..306bf56a 100644 --- a/src/Types/LoyaltyPromotionAvailableTimeData.php +++ b/src/Types/LoyaltyPromotionAvailableTimeData.php @@ -78,6 +78,7 @@ public function getStartDate(): ?string public function setStartDate(?string $value = null): self { $this->startDate = $value; + $this->_setField('startDate'); return $this; } @@ -95,6 +96,7 @@ public function getEndDate(): ?string public function setEndDate(?string $value = null): self { $this->endDate = $value; + $this->_setField('endDate'); return $this; } @@ -112,6 +114,7 @@ public function getTimePeriods(): array public function setTimePeriods(array $value): self { $this->timePeriods = $value; + $this->_setField('timePeriods'); return $this; } diff --git a/src/Types/LoyaltyPromotionCreatedEvent.php b/src/Types/LoyaltyPromotionCreatedEvent.php index 97e3d2ff..e56ff4e9 100644 --- a/src/Types/LoyaltyPromotionCreatedEvent.php +++ b/src/Types/LoyaltyPromotionCreatedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?LoyaltyPromotionCreatedEventData public function setData(?LoyaltyPromotionCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LoyaltyPromotionCreatedEventData.php b/src/Types/LoyaltyPromotionCreatedEventData.php index 5b49cc84..a98b793c 100644 --- a/src/Types/LoyaltyPromotionCreatedEventData.php +++ b/src/Types/LoyaltyPromotionCreatedEventData.php @@ -57,6 +57,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -74,6 +75,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -91,6 +93,7 @@ public function getObject(): ?LoyaltyPromotionCreatedEventObject public function setObject(?LoyaltyPromotionCreatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/LoyaltyPromotionCreatedEventObject.php b/src/Types/LoyaltyPromotionCreatedEventObject.php index 4fec04f1..fe28f151 100644 --- a/src/Types/LoyaltyPromotionCreatedEventObject.php +++ b/src/Types/LoyaltyPromotionCreatedEventObject.php @@ -41,6 +41,7 @@ public function getLoyaltyPromotion(): ?LoyaltyPromotion public function setLoyaltyPromotion(?LoyaltyPromotion $value = null): self { $this->loyaltyPromotion = $value; + $this->_setField('loyaltyPromotion'); return $this; } diff --git a/src/Types/LoyaltyPromotionIncentive.php b/src/Types/LoyaltyPromotionIncentive.php index 4243d662..a1777719 100644 --- a/src/Types/LoyaltyPromotionIncentive.php +++ b/src/Types/LoyaltyPromotionIncentive.php @@ -62,6 +62,7 @@ public function getType(): string public function setType(string $value): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -79,6 +80,7 @@ public function getPointsMultiplierData(): ?LoyaltyPromotionIncentivePointsMulti public function setPointsMultiplierData(?LoyaltyPromotionIncentivePointsMultiplierData $value = null): self { $this->pointsMultiplierData = $value; + $this->_setField('pointsMultiplierData'); return $this; } @@ -96,6 +98,7 @@ public function getPointsAdditionData(): ?LoyaltyPromotionIncentivePointsAdditio public function setPointsAdditionData(?LoyaltyPromotionIncentivePointsAdditionData $value = null): self { $this->pointsAdditionData = $value; + $this->_setField('pointsAdditionData'); return $this; } diff --git a/src/Types/LoyaltyPromotionIncentivePointsAdditionData.php b/src/Types/LoyaltyPromotionIncentivePointsAdditionData.php index 96eccfc9..d5d06ecb 100644 --- a/src/Types/LoyaltyPromotionIncentivePointsAdditionData.php +++ b/src/Types/LoyaltyPromotionIncentivePointsAdditionData.php @@ -46,6 +46,7 @@ public function getPointsAddition(): int public function setPointsAddition(int $value): self { $this->pointsAddition = $value; + $this->_setField('pointsAddition'); return $this; } diff --git a/src/Types/LoyaltyPromotionIncentivePointsMultiplierData.php b/src/Types/LoyaltyPromotionIncentivePointsMultiplierData.php index 54ea24db..0839066b 100644 --- a/src/Types/LoyaltyPromotionIncentivePointsMultiplierData.php +++ b/src/Types/LoyaltyPromotionIncentivePointsMultiplierData.php @@ -73,6 +73,7 @@ public function getPointsMultiplier(): ?int public function setPointsMultiplier(?int $value = null): self { $this->pointsMultiplier = $value; + $this->_setField('pointsMultiplier'); return $this; } @@ -90,6 +91,7 @@ public function getMultiplier(): ?string public function setMultiplier(?string $value = null): self { $this->multiplier = $value; + $this->_setField('multiplier'); return $this; } diff --git a/src/Types/LoyaltyPromotionTriggerLimit.php b/src/Types/LoyaltyPromotionTriggerLimit.php index 14cbe28d..d0ce9e47 100644 --- a/src/Types/LoyaltyPromotionTriggerLimit.php +++ b/src/Types/LoyaltyPromotionTriggerLimit.php @@ -56,6 +56,7 @@ public function getTimes(): int public function setTimes(int $value): self { $this->times = $value; + $this->_setField('times'); return $this; } @@ -73,6 +74,7 @@ public function getInterval(): ?string public function setInterval(?string $value = null): self { $this->interval = $value; + $this->_setField('interval'); return $this; } diff --git a/src/Types/LoyaltyPromotionUpdatedEvent.php b/src/Types/LoyaltyPromotionUpdatedEvent.php index 5979a2ad..7feb49c1 100644 --- a/src/Types/LoyaltyPromotionUpdatedEvent.php +++ b/src/Types/LoyaltyPromotionUpdatedEvent.php @@ -77,6 +77,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -94,6 +95,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -111,6 +113,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -128,6 +131,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -145,6 +149,7 @@ public function getData(): ?LoyaltyPromotionUpdatedEventData public function setData(?LoyaltyPromotionUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/LoyaltyPromotionUpdatedEventData.php b/src/Types/LoyaltyPromotionUpdatedEventData.php index f66254ba..b0edf81f 100644 --- a/src/Types/LoyaltyPromotionUpdatedEventData.php +++ b/src/Types/LoyaltyPromotionUpdatedEventData.php @@ -57,6 +57,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -74,6 +75,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -91,6 +93,7 @@ public function getObject(): ?LoyaltyPromotionUpdatedEventObject public function setObject(?LoyaltyPromotionUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/LoyaltyPromotionUpdatedEventObject.php b/src/Types/LoyaltyPromotionUpdatedEventObject.php index 2a4f29ba..8e64abe6 100644 --- a/src/Types/LoyaltyPromotionUpdatedEventObject.php +++ b/src/Types/LoyaltyPromotionUpdatedEventObject.php @@ -41,6 +41,7 @@ public function getLoyaltyPromotion(): ?LoyaltyPromotion public function setLoyaltyPromotion(?LoyaltyPromotion $value = null): self { $this->loyaltyPromotion = $value; + $this->_setField('loyaltyPromotion'); return $this; } diff --git a/src/Types/LoyaltyReward.php b/src/Types/LoyaltyReward.php index e6faf12b..a3abf572 100644 --- a/src/Types/LoyaltyReward.php +++ b/src/Types/LoyaltyReward.php @@ -109,6 +109,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -126,6 +127,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -143,6 +145,7 @@ public function getLoyaltyAccountId(): string public function setLoyaltyAccountId(string $value): self { $this->loyaltyAccountId = $value; + $this->_setField('loyaltyAccountId'); return $this; } @@ -160,6 +163,7 @@ public function getRewardTierId(): string public function setRewardTierId(string $value): self { $this->rewardTierId = $value; + $this->_setField('rewardTierId'); return $this; } @@ -177,6 +181,7 @@ public function getPoints(): ?int public function setPoints(?int $value = null): self { $this->points = $value; + $this->_setField('points'); return $this; } @@ -194,6 +199,7 @@ public function getOrderId(): ?string public function setOrderId(?string $value = null): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } @@ -211,6 +217,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -228,6 +235,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -245,6 +253,7 @@ public function getRedeemedAt(): ?string public function setRedeemedAt(?string $value = null): self { $this->redeemedAt = $value; + $this->_setField('redeemedAt'); return $this; } diff --git a/src/Types/MeasurementUnit.php b/src/Types/MeasurementUnit.php index d28b24f4..a6ce113f 100644 --- a/src/Types/MeasurementUnit.php +++ b/src/Types/MeasurementUnit.php @@ -123,6 +123,7 @@ public function getCustomUnit(): ?MeasurementUnitCustom public function setCustomUnit(?MeasurementUnitCustom $value = null): self { $this->customUnit = $value; + $this->_setField('customUnit'); return $this; } @@ -140,6 +141,7 @@ public function getAreaUnit(): ?string public function setAreaUnit(?string $value = null): self { $this->areaUnit = $value; + $this->_setField('areaUnit'); return $this; } @@ -157,6 +159,7 @@ public function getLengthUnit(): ?string public function setLengthUnit(?string $value = null): self { $this->lengthUnit = $value; + $this->_setField('lengthUnit'); return $this; } @@ -174,6 +177,7 @@ public function getVolumeUnit(): ?string public function setVolumeUnit(?string $value = null): self { $this->volumeUnit = $value; + $this->_setField('volumeUnit'); return $this; } @@ -191,6 +195,7 @@ public function getWeightUnit(): ?string public function setWeightUnit(?string $value = null): self { $this->weightUnit = $value; + $this->_setField('weightUnit'); return $this; } @@ -208,6 +213,7 @@ public function getGenericUnit(): ?string public function setGenericUnit(?string $value = null): self { $this->genericUnit = $value; + $this->_setField('genericUnit'); return $this; } @@ -225,6 +231,7 @@ public function getTimeUnit(): ?string public function setTimeUnit(?string $value = null): self { $this->timeUnit = $value; + $this->_setField('timeUnit'); return $this; } @@ -242,6 +249,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } diff --git a/src/Types/MeasurementUnitCustom.php b/src/Types/MeasurementUnitCustom.php index e1fce634..3a79be0a 100644 --- a/src/Types/MeasurementUnitCustom.php +++ b/src/Types/MeasurementUnitCustom.php @@ -52,6 +52,7 @@ public function getName(): string public function setName(string $value): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -69,6 +70,7 @@ public function getAbbreviation(): string public function setAbbreviation(string $value): self { $this->abbreviation = $value; + $this->_setField('abbreviation'); return $this; } diff --git a/src/Types/Merchant.php b/src/Types/Merchant.php index 9456f2a5..7331abdc 100644 --- a/src/Types/Merchant.php +++ b/src/Types/Merchant.php @@ -109,6 +109,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -126,6 +127,7 @@ public function getBusinessName(): ?string public function setBusinessName(?string $value = null): self { $this->businessName = $value; + $this->_setField('businessName'); return $this; } @@ -143,6 +145,7 @@ public function getCountry(): string public function setCountry(string $value): self { $this->country = $value; + $this->_setField('country'); return $this; } @@ -160,6 +163,7 @@ public function getLanguageCode(): ?string public function setLanguageCode(?string $value = null): self { $this->languageCode = $value; + $this->_setField('languageCode'); return $this; } @@ -177,6 +181,7 @@ public function getCurrency(): ?string public function setCurrency(?string $value = null): self { $this->currency = $value; + $this->_setField('currency'); return $this; } @@ -194,6 +199,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -211,6 +217,7 @@ public function getMainLocationId(): ?string public function setMainLocationId(?string $value = null): self { $this->mainLocationId = $value; + $this->_setField('mainLocationId'); return $this; } @@ -228,6 +235,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } diff --git a/src/Types/MerchantCustomAttributeDefinitionOwnedCreatedEvent.php b/src/Types/MerchantCustomAttributeDefinitionOwnedCreatedEvent.php index 647e8d03..d2b0efd7 100644 --- a/src/Types/MerchantCustomAttributeDefinitionOwnedCreatedEvent.php +++ b/src/Types/MerchantCustomAttributeDefinitionOwnedCreatedEvent.php @@ -75,6 +75,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -92,6 +93,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -109,6 +111,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -126,6 +129,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -143,6 +147,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/MerchantCustomAttributeDefinitionOwnedDeletedEvent.php b/src/Types/MerchantCustomAttributeDefinitionOwnedDeletedEvent.php index 7793bbc8..9f52ae54 100644 --- a/src/Types/MerchantCustomAttributeDefinitionOwnedDeletedEvent.php +++ b/src/Types/MerchantCustomAttributeDefinitionOwnedDeletedEvent.php @@ -75,6 +75,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -92,6 +93,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -109,6 +111,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -126,6 +129,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -143,6 +147,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/MerchantCustomAttributeDefinitionOwnedUpdatedEvent.php b/src/Types/MerchantCustomAttributeDefinitionOwnedUpdatedEvent.php index 7b6acb06..bbad7e2a 100644 --- a/src/Types/MerchantCustomAttributeDefinitionOwnedUpdatedEvent.php +++ b/src/Types/MerchantCustomAttributeDefinitionOwnedUpdatedEvent.php @@ -75,6 +75,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -92,6 +93,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -109,6 +111,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -126,6 +129,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -143,6 +147,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/MerchantCustomAttributeDefinitionVisibleCreatedEvent.php b/src/Types/MerchantCustomAttributeDefinitionVisibleCreatedEvent.php index 471db026..83bb7f2e 100644 --- a/src/Types/MerchantCustomAttributeDefinitionVisibleCreatedEvent.php +++ b/src/Types/MerchantCustomAttributeDefinitionVisibleCreatedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/MerchantCustomAttributeDefinitionVisibleDeletedEvent.php b/src/Types/MerchantCustomAttributeDefinitionVisibleDeletedEvent.php index dbcefe89..514cfc90 100644 --- a/src/Types/MerchantCustomAttributeDefinitionVisibleDeletedEvent.php +++ b/src/Types/MerchantCustomAttributeDefinitionVisibleDeletedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/MerchantCustomAttributeDefinitionVisibleUpdatedEvent.php b/src/Types/MerchantCustomAttributeDefinitionVisibleUpdatedEvent.php index 7095adda..bdc2c0fb 100644 --- a/src/Types/MerchantCustomAttributeDefinitionVisibleUpdatedEvent.php +++ b/src/Types/MerchantCustomAttributeDefinitionVisibleUpdatedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/MerchantCustomAttributeOwnedDeletedEvent.php b/src/Types/MerchantCustomAttributeOwnedDeletedEvent.php index 58d4b3d9..3aa9d32c 100644 --- a/src/Types/MerchantCustomAttributeOwnedDeletedEvent.php +++ b/src/Types/MerchantCustomAttributeOwnedDeletedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?CustomAttributeEventData public function setData(?CustomAttributeEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/MerchantCustomAttributeOwnedUpdatedEvent.php b/src/Types/MerchantCustomAttributeOwnedUpdatedEvent.php index 44bba9a5..157297e9 100644 --- a/src/Types/MerchantCustomAttributeOwnedUpdatedEvent.php +++ b/src/Types/MerchantCustomAttributeOwnedUpdatedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?CustomAttributeEventData public function setData(?CustomAttributeEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/MerchantCustomAttributeVisibleDeletedEvent.php b/src/Types/MerchantCustomAttributeVisibleDeletedEvent.php index 782686c3..b2dce4e6 100644 --- a/src/Types/MerchantCustomAttributeVisibleDeletedEvent.php +++ b/src/Types/MerchantCustomAttributeVisibleDeletedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?CustomAttributeEventData public function setData(?CustomAttributeEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/MerchantCustomAttributeVisibleUpdatedEvent.php b/src/Types/MerchantCustomAttributeVisibleUpdatedEvent.php index 57db650e..c3aa781a 100644 --- a/src/Types/MerchantCustomAttributeVisibleUpdatedEvent.php +++ b/src/Types/MerchantCustomAttributeVisibleUpdatedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?CustomAttributeEventData public function setData(?CustomAttributeEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/MerchantSettingsUpdatedEvent.php b/src/Types/MerchantSettingsUpdatedEvent.php index 6f7ea355..98bc5e3c 100644 --- a/src/Types/MerchantSettingsUpdatedEvent.php +++ b/src/Types/MerchantSettingsUpdatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?MerchantSettingsUpdatedEventData public function setData(?MerchantSettingsUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/MerchantSettingsUpdatedEventData.php b/src/Types/MerchantSettingsUpdatedEventData.php index 7c25993e..300ca622 100644 --- a/src/Types/MerchantSettingsUpdatedEventData.php +++ b/src/Types/MerchantSettingsUpdatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?MerchantSettingsUpdatedEventObject public function setObject(?MerchantSettingsUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/MerchantSettingsUpdatedEventObject.php b/src/Types/MerchantSettingsUpdatedEventObject.php index 89beca8f..e212388b 100644 --- a/src/Types/MerchantSettingsUpdatedEventObject.php +++ b/src/Types/MerchantSettingsUpdatedEventObject.php @@ -38,6 +38,7 @@ public function getMerchantSettings(): ?CheckoutMerchantSettings public function setMerchantSettings(?CheckoutMerchantSettings $value = null): self { $this->merchantSettings = $value; + $this->_setField('merchantSettings'); return $this; } diff --git a/src/Types/ModifierLocationOverrides.php b/src/Types/ModifierLocationOverrides.php index 741bfbac..32746533 100644 --- a/src/Types/ModifierLocationOverrides.php +++ b/src/Types/ModifierLocationOverrides.php @@ -63,6 +63,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -80,6 +81,7 @@ public function getPriceMoney(): ?Money public function setPriceMoney(?Money $value = null): self { $this->priceMoney = $value; + $this->_setField('priceMoney'); return $this; } @@ -97,6 +99,7 @@ public function getSoldOut(): ?bool public function setSoldOut(?bool $value = null): self { $this->soldOut = $value; + $this->_setField('soldOut'); return $this; } diff --git a/src/Types/Money.php b/src/Types/Money.php index 1cf6b89f..842fa5ad 100644 --- a/src/Types/Money.php +++ b/src/Types/Money.php @@ -65,6 +65,7 @@ public function getAmount(): ?int public function setAmount(?int $value = null): self { $this->amount = $value; + $this->_setField('amount'); return $this; } @@ -82,6 +83,7 @@ public function getCurrency(): ?string public function setCurrency(?string $value = null): self { $this->currency = $value; + $this->_setField('currency'); return $this; } diff --git a/src/Types/OauthAuthorizationRevokedEvent.php b/src/Types/OauthAuthorizationRevokedEvent.php index d218a719..0d58da69 100644 --- a/src/Types/OauthAuthorizationRevokedEvent.php +++ b/src/Types/OauthAuthorizationRevokedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?OauthAuthorizationRevokedEventData public function setData(?OauthAuthorizationRevokedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/OauthAuthorizationRevokedEventData.php b/src/Types/OauthAuthorizationRevokedEventData.php index 15194a24..6d501ed1 100644 --- a/src/Types/OauthAuthorizationRevokedEventData.php +++ b/src/Types/OauthAuthorizationRevokedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?OauthAuthorizationRevokedEventObject public function setObject(?OauthAuthorizationRevokedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/OauthAuthorizationRevokedEventObject.php b/src/Types/OauthAuthorizationRevokedEventObject.php index 5ddd9bbc..50b10d56 100644 --- a/src/Types/OauthAuthorizationRevokedEventObject.php +++ b/src/Types/OauthAuthorizationRevokedEventObject.php @@ -38,6 +38,7 @@ public function getRevocation(): ?OauthAuthorizationRevokedEventRevocationObject public function setRevocation(?OauthAuthorizationRevokedEventRevocationObject $value = null): self { $this->revocation = $value; + $this->_setField('revocation'); return $this; } diff --git a/src/Types/OauthAuthorizationRevokedEventRevocationObject.php b/src/Types/OauthAuthorizationRevokedEventRevocationObject.php index 1c01a61b..494223ca 100644 --- a/src/Types/OauthAuthorizationRevokedEventRevocationObject.php +++ b/src/Types/OauthAuthorizationRevokedEventRevocationObject.php @@ -49,6 +49,7 @@ public function getRevokedAt(): ?string public function setRevokedAt(?string $value = null): self { $this->revokedAt = $value; + $this->_setField('revokedAt'); return $this; } @@ -66,6 +67,7 @@ public function getRevokerType(): ?string public function setRevokerType(?string $value = null): self { $this->revokerType = $value; + $this->_setField('revokerType'); return $this; } diff --git a/src/Types/ObtainTokenResponse.php b/src/Types/ObtainTokenResponse.php index ab0015e1..bd0e07b6 100644 --- a/src/Types/ObtainTokenResponse.php +++ b/src/Types/ObtainTokenResponse.php @@ -162,6 +162,7 @@ public function getAccessToken(): ?string public function setAccessToken(?string $value = null): self { $this->accessToken = $value; + $this->_setField('accessToken'); return $this; } @@ -179,6 +180,7 @@ public function getTokenType(): ?string public function setTokenType(?string $value = null): self { $this->tokenType = $value; + $this->_setField('tokenType'); return $this; } @@ -196,6 +198,7 @@ public function getExpiresAt(): ?string public function setExpiresAt(?string $value = null): self { $this->expiresAt = $value; + $this->_setField('expiresAt'); return $this; } @@ -213,6 +216,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -230,6 +234,7 @@ public function getSubscriptionId(): ?string public function setSubscriptionId(?string $value = null): self { $this->subscriptionId = $value; + $this->_setField('subscriptionId'); return $this; } @@ -247,6 +252,7 @@ public function getPlanId(): ?string public function setPlanId(?string $value = null): self { $this->planId = $value; + $this->_setField('planId'); return $this; } @@ -264,6 +270,7 @@ public function getIdToken(): ?string public function setIdToken(?string $value = null): self { $this->idToken = $value; + $this->_setField('idToken'); return $this; } @@ -281,6 +288,7 @@ public function getRefreshToken(): ?string public function setRefreshToken(?string $value = null): self { $this->refreshToken = $value; + $this->_setField('refreshToken'); return $this; } @@ -298,6 +306,7 @@ public function getShortLived(): ?bool public function setShortLived(?bool $value = null): self { $this->shortLived = $value; + $this->_setField('shortLived'); return $this; } @@ -315,6 +324,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -332,6 +342,7 @@ public function getRefreshTokenExpiresAt(): ?string public function setRefreshTokenExpiresAt(?string $value = null): self { $this->refreshTokenExpiresAt = $value; + $this->_setField('refreshTokenExpiresAt'); return $this; } diff --git a/src/Types/OfflinePaymentDetails.php b/src/Types/OfflinePaymentDetails.php index 26fa4b86..69a48c9d 100644 --- a/src/Types/OfflinePaymentDetails.php +++ b/src/Types/OfflinePaymentDetails.php @@ -41,6 +41,7 @@ public function getClientCreatedAt(): ?string public function setClientCreatedAt(?string $value = null): self { $this->clientCreatedAt = $value; + $this->_setField('clientCreatedAt'); return $this; } diff --git a/src/Types/Order.php b/src/Types/Order.php index 2af6356f..5e9fb41e 100644 --- a/src/Types/Order.php +++ b/src/Types/Order.php @@ -374,6 +374,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -391,6 +392,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -408,6 +410,7 @@ public function getReferenceId(): ?string public function setReferenceId(?string $value = null): self { $this->referenceId = $value; + $this->_setField('referenceId'); return $this; } @@ -425,6 +428,7 @@ public function getSource(): ?OrderSource public function setSource(?OrderSource $value = null): self { $this->source = $value; + $this->_setField('source'); return $this; } @@ -442,6 +446,7 @@ public function getCustomerId(): ?string public function setCustomerId(?string $value = null): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -459,6 +464,7 @@ public function getLineItems(): ?array public function setLineItems(?array $value = null): self { $this->lineItems = $value; + $this->_setField('lineItems'); return $this; } @@ -476,6 +482,7 @@ public function getTaxes(): ?array public function setTaxes(?array $value = null): self { $this->taxes = $value; + $this->_setField('taxes'); return $this; } @@ -493,6 +500,7 @@ public function getDiscounts(): ?array public function setDiscounts(?array $value = null): self { $this->discounts = $value; + $this->_setField('discounts'); return $this; } @@ -510,6 +518,7 @@ public function getServiceCharges(): ?array public function setServiceCharges(?array $value = null): self { $this->serviceCharges = $value; + $this->_setField('serviceCharges'); return $this; } @@ -527,6 +536,7 @@ public function getFulfillments(): ?array public function setFulfillments(?array $value = null): self { $this->fulfillments = $value; + $this->_setField('fulfillments'); return $this; } @@ -544,6 +554,7 @@ public function getReturns(): ?array public function setReturns(?array $value = null): self { $this->returns = $value; + $this->_setField('returns'); return $this; } @@ -561,6 +572,7 @@ public function getReturnAmounts(): ?OrderMoneyAmounts public function setReturnAmounts(?OrderMoneyAmounts $value = null): self { $this->returnAmounts = $value; + $this->_setField('returnAmounts'); return $this; } @@ -578,6 +590,7 @@ public function getNetAmounts(): ?OrderMoneyAmounts public function setNetAmounts(?OrderMoneyAmounts $value = null): self { $this->netAmounts = $value; + $this->_setField('netAmounts'); return $this; } @@ -595,6 +608,7 @@ public function getRoundingAdjustment(): ?OrderRoundingAdjustment public function setRoundingAdjustment(?OrderRoundingAdjustment $value = null): self { $this->roundingAdjustment = $value; + $this->_setField('roundingAdjustment'); return $this; } @@ -612,6 +626,7 @@ public function getTenders(): ?array public function setTenders(?array $value = null): self { $this->tenders = $value; + $this->_setField('tenders'); return $this; } @@ -629,6 +644,7 @@ public function getRefunds(): ?array public function setRefunds(?array $value = null): self { $this->refunds = $value; + $this->_setField('refunds'); return $this; } @@ -646,6 +662,7 @@ public function getMetadata(): ?array public function setMetadata(?array $value = null): self { $this->metadata = $value; + $this->_setField('metadata'); return $this; } @@ -663,6 +680,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -680,6 +698,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -697,6 +716,7 @@ public function getClosedAt(): ?string public function setClosedAt(?string $value = null): self { $this->closedAt = $value; + $this->_setField('closedAt'); return $this; } @@ -714,6 +734,7 @@ public function getState(): ?string public function setState(?string $value = null): self { $this->state = $value; + $this->_setField('state'); return $this; } @@ -731,6 +752,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -748,6 +770,7 @@ public function getTotalMoney(): ?Money public function setTotalMoney(?Money $value = null): self { $this->totalMoney = $value; + $this->_setField('totalMoney'); return $this; } @@ -765,6 +788,7 @@ public function getTotalTaxMoney(): ?Money public function setTotalTaxMoney(?Money $value = null): self { $this->totalTaxMoney = $value; + $this->_setField('totalTaxMoney'); return $this; } @@ -782,6 +806,7 @@ public function getTotalDiscountMoney(): ?Money public function setTotalDiscountMoney(?Money $value = null): self { $this->totalDiscountMoney = $value; + $this->_setField('totalDiscountMoney'); return $this; } @@ -799,6 +824,7 @@ public function getTotalTipMoney(): ?Money public function setTotalTipMoney(?Money $value = null): self { $this->totalTipMoney = $value; + $this->_setField('totalTipMoney'); return $this; } @@ -816,6 +842,7 @@ public function getTotalServiceChargeMoney(): ?Money public function setTotalServiceChargeMoney(?Money $value = null): self { $this->totalServiceChargeMoney = $value; + $this->_setField('totalServiceChargeMoney'); return $this; } @@ -833,6 +860,7 @@ public function getTicketName(): ?string public function setTicketName(?string $value = null): self { $this->ticketName = $value; + $this->_setField('ticketName'); return $this; } @@ -850,6 +878,7 @@ public function getPricingOptions(): ?OrderPricingOptions public function setPricingOptions(?OrderPricingOptions $value = null): self { $this->pricingOptions = $value; + $this->_setField('pricingOptions'); return $this; } @@ -867,6 +896,7 @@ public function getRewards(): ?array public function setRewards(?array $value = null): self { $this->rewards = $value; + $this->_setField('rewards'); return $this; } @@ -884,6 +914,7 @@ public function getNetAmountDueMoney(): ?Money public function setNetAmountDueMoney(?Money $value = null): self { $this->netAmountDueMoney = $value; + $this->_setField('netAmountDueMoney'); return $this; } diff --git a/src/Types/OrderCreated.php b/src/Types/OrderCreated.php index 76e66264..76c3b0f6 100644 --- a/src/Types/OrderCreated.php +++ b/src/Types/OrderCreated.php @@ -79,6 +79,7 @@ public function getOrderId(): ?string public function setOrderId(?string $value = null): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } @@ -96,6 +97,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -113,6 +115,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -130,6 +133,7 @@ public function getState(): ?string public function setState(?string $value = null): self { $this->state = $value; + $this->_setField('state'); return $this; } @@ -147,6 +151,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } diff --git a/src/Types/OrderCreatedEvent.php b/src/Types/OrderCreatedEvent.php index c6019714..ac927a71 100644 --- a/src/Types/OrderCreatedEvent.php +++ b/src/Types/OrderCreatedEvent.php @@ -76,6 +76,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -93,6 +94,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -110,6 +112,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -127,6 +130,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -144,6 +148,7 @@ public function getData(): ?OrderCreatedEventData public function setData(?OrderCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/OrderCreatedEventData.php b/src/Types/OrderCreatedEventData.php index 8ababe91..423860b8 100644 --- a/src/Types/OrderCreatedEventData.php +++ b/src/Types/OrderCreatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?OrderCreatedObject public function setObject(?OrderCreatedObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/OrderCreatedObject.php b/src/Types/OrderCreatedObject.php index ef1f582c..a2c5bbe5 100644 --- a/src/Types/OrderCreatedObject.php +++ b/src/Types/OrderCreatedObject.php @@ -38,6 +38,7 @@ public function getOrderCreated(): ?OrderCreated public function setOrderCreated(?OrderCreated $value = null): self { $this->orderCreated = $value; + $this->_setField('orderCreated'); return $this; } diff --git a/src/Types/OrderCustomAttributeDefinitionOwnedCreatedEvent.php b/src/Types/OrderCustomAttributeDefinitionOwnedCreatedEvent.php index c5376c6e..484546b3 100644 --- a/src/Types/OrderCustomAttributeDefinitionOwnedCreatedEvent.php +++ b/src/Types/OrderCustomAttributeDefinitionOwnedCreatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/OrderCustomAttributeDefinitionOwnedDeletedEvent.php b/src/Types/OrderCustomAttributeDefinitionOwnedDeletedEvent.php index aa26456e..61713159 100644 --- a/src/Types/OrderCustomAttributeDefinitionOwnedDeletedEvent.php +++ b/src/Types/OrderCustomAttributeDefinitionOwnedDeletedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/OrderCustomAttributeDefinitionOwnedUpdatedEvent.php b/src/Types/OrderCustomAttributeDefinitionOwnedUpdatedEvent.php index 3b2e57c1..2b2fe2a8 100644 --- a/src/Types/OrderCustomAttributeDefinitionOwnedUpdatedEvent.php +++ b/src/Types/OrderCustomAttributeDefinitionOwnedUpdatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/OrderCustomAttributeDefinitionVisibleCreatedEvent.php b/src/Types/OrderCustomAttributeDefinitionVisibleCreatedEvent.php index bdd18ba0..c05dfaec 100644 --- a/src/Types/OrderCustomAttributeDefinitionVisibleCreatedEvent.php +++ b/src/Types/OrderCustomAttributeDefinitionVisibleCreatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/OrderCustomAttributeDefinitionVisibleDeletedEvent.php b/src/Types/OrderCustomAttributeDefinitionVisibleDeletedEvent.php index f06bcec0..65f8436a 100644 --- a/src/Types/OrderCustomAttributeDefinitionVisibleDeletedEvent.php +++ b/src/Types/OrderCustomAttributeDefinitionVisibleDeletedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/OrderCustomAttributeDefinitionVisibleUpdatedEvent.php b/src/Types/OrderCustomAttributeDefinitionVisibleUpdatedEvent.php index 09d657c7..5a9febbc 100644 --- a/src/Types/OrderCustomAttributeDefinitionVisibleUpdatedEvent.php +++ b/src/Types/OrderCustomAttributeDefinitionVisibleUpdatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?CustomAttributeDefinitionEventData public function setData(?CustomAttributeDefinitionEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/OrderCustomAttributeOwnedDeletedEvent.php b/src/Types/OrderCustomAttributeOwnedDeletedEvent.php index 8852c7c4..21e1054b 100644 --- a/src/Types/OrderCustomAttributeOwnedDeletedEvent.php +++ b/src/Types/OrderCustomAttributeOwnedDeletedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?CustomAttributeEventData public function setData(?CustomAttributeEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/OrderCustomAttributeOwnedUpdatedEvent.php b/src/Types/OrderCustomAttributeOwnedUpdatedEvent.php index a27037fc..99227c42 100644 --- a/src/Types/OrderCustomAttributeOwnedUpdatedEvent.php +++ b/src/Types/OrderCustomAttributeOwnedUpdatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?CustomAttributeEventData public function setData(?CustomAttributeEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/OrderCustomAttributeVisibleDeletedEvent.php b/src/Types/OrderCustomAttributeVisibleDeletedEvent.php index ab726d31..58affdd6 100644 --- a/src/Types/OrderCustomAttributeVisibleDeletedEvent.php +++ b/src/Types/OrderCustomAttributeVisibleDeletedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?CustomAttributeEventData public function setData(?CustomAttributeEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/OrderCustomAttributeVisibleUpdatedEvent.php b/src/Types/OrderCustomAttributeVisibleUpdatedEvent.php index 96061ad1..54118742 100644 --- a/src/Types/OrderCustomAttributeVisibleUpdatedEvent.php +++ b/src/Types/OrderCustomAttributeVisibleUpdatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?CustomAttributeEventData public function setData(?CustomAttributeEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/OrderEntry.php b/src/Types/OrderEntry.php index 961910d4..902d7b29 100644 --- a/src/Types/OrderEntry.php +++ b/src/Types/OrderEntry.php @@ -64,6 +64,7 @@ public function getOrderId(): ?string public function setOrderId(?string $value = null): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } @@ -81,6 +82,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -98,6 +100,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } diff --git a/src/Types/OrderFulfillmentUpdated.php b/src/Types/OrderFulfillmentUpdated.php index e21f2675..fae34e15 100644 --- a/src/Types/OrderFulfillmentUpdated.php +++ b/src/Types/OrderFulfillmentUpdated.php @@ -96,6 +96,7 @@ public function getOrderId(): ?string public function setOrderId(?string $value = null): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } @@ -113,6 +114,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -130,6 +132,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -147,6 +150,7 @@ public function getState(): ?string public function setState(?string $value = null): self { $this->state = $value; + $this->_setField('state'); return $this; } @@ -164,6 +168,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -181,6 +186,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -198,6 +204,7 @@ public function getFulfillmentUpdate(): ?array public function setFulfillmentUpdate(?array $value = null): self { $this->fulfillmentUpdate = $value; + $this->_setField('fulfillmentUpdate'); return $this; } diff --git a/src/Types/OrderFulfillmentUpdatedEvent.php b/src/Types/OrderFulfillmentUpdatedEvent.php index 24b1d267..6deee62c 100644 --- a/src/Types/OrderFulfillmentUpdatedEvent.php +++ b/src/Types/OrderFulfillmentUpdatedEvent.php @@ -75,6 +75,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -92,6 +93,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -109,6 +111,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -126,6 +129,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -143,6 +147,7 @@ public function getData(): ?OrderFulfillmentUpdatedEventData public function setData(?OrderFulfillmentUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/OrderFulfillmentUpdatedEventData.php b/src/Types/OrderFulfillmentUpdatedEventData.php index faefec77..e1365efa 100644 --- a/src/Types/OrderFulfillmentUpdatedEventData.php +++ b/src/Types/OrderFulfillmentUpdatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?OrderFulfillmentUpdatedObject public function setObject(?OrderFulfillmentUpdatedObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/OrderFulfillmentUpdatedObject.php b/src/Types/OrderFulfillmentUpdatedObject.php index 6911f8a6..f4d8d55d 100644 --- a/src/Types/OrderFulfillmentUpdatedObject.php +++ b/src/Types/OrderFulfillmentUpdatedObject.php @@ -38,6 +38,7 @@ public function getOrderFulfillmentUpdated(): ?OrderFulfillmentUpdated public function setOrderFulfillmentUpdated(?OrderFulfillmentUpdated $value = null): self { $this->orderFulfillmentUpdated = $value; + $this->_setField('orderFulfillmentUpdated'); return $this; } diff --git a/src/Types/OrderFulfillmentUpdatedUpdate.php b/src/Types/OrderFulfillmentUpdatedUpdate.php index 32d71c74..d00ba552 100644 --- a/src/Types/OrderFulfillmentUpdatedUpdate.php +++ b/src/Types/OrderFulfillmentUpdatedUpdate.php @@ -63,6 +63,7 @@ public function getFulfillmentUid(): ?string public function setFulfillmentUid(?string $value = null): self { $this->fulfillmentUid = $value; + $this->_setField('fulfillmentUid'); return $this; } @@ -80,6 +81,7 @@ public function getOldState(): ?string public function setOldState(?string $value = null): self { $this->oldState = $value; + $this->_setField('oldState'); return $this; } @@ -97,6 +99,7 @@ public function getNewState(): ?string public function setNewState(?string $value = null): self { $this->newState = $value; + $this->_setField('newState'); return $this; } diff --git a/src/Types/OrderLineItem.php b/src/Types/OrderLineItem.php index 50311421..4b698a09 100644 --- a/src/Types/OrderLineItem.php +++ b/src/Types/OrderLineItem.php @@ -294,6 +294,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -311,6 +312,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -328,6 +330,7 @@ public function getQuantity(): string public function setQuantity(string $value): self { $this->quantity = $value; + $this->_setField('quantity'); return $this; } @@ -345,6 +348,7 @@ public function getQuantityUnit(): ?OrderQuantityUnit public function setQuantityUnit(?OrderQuantityUnit $value = null): self { $this->quantityUnit = $value; + $this->_setField('quantityUnit'); return $this; } @@ -362,6 +366,7 @@ public function getNote(): ?string public function setNote(?string $value = null): self { $this->note = $value; + $this->_setField('note'); return $this; } @@ -379,6 +384,7 @@ public function getCatalogObjectId(): ?string public function setCatalogObjectId(?string $value = null): self { $this->catalogObjectId = $value; + $this->_setField('catalogObjectId'); return $this; } @@ -396,6 +402,7 @@ public function getCatalogVersion(): ?int public function setCatalogVersion(?int $value = null): self { $this->catalogVersion = $value; + $this->_setField('catalogVersion'); return $this; } @@ -413,6 +420,7 @@ public function getVariationName(): ?string public function setVariationName(?string $value = null): self { $this->variationName = $value; + $this->_setField('variationName'); return $this; } @@ -430,6 +438,7 @@ public function getItemType(): ?string public function setItemType(?string $value = null): self { $this->itemType = $value; + $this->_setField('itemType'); return $this; } @@ -447,6 +456,7 @@ public function getMetadata(): ?array public function setMetadata(?array $value = null): self { $this->metadata = $value; + $this->_setField('metadata'); return $this; } @@ -464,6 +474,7 @@ public function getModifiers(): ?array public function setModifiers(?array $value = null): self { $this->modifiers = $value; + $this->_setField('modifiers'); return $this; } @@ -481,6 +492,7 @@ public function getAppliedTaxes(): ?array public function setAppliedTaxes(?array $value = null): self { $this->appliedTaxes = $value; + $this->_setField('appliedTaxes'); return $this; } @@ -498,6 +510,7 @@ public function getAppliedDiscounts(): ?array public function setAppliedDiscounts(?array $value = null): self { $this->appliedDiscounts = $value; + $this->_setField('appliedDiscounts'); return $this; } @@ -515,6 +528,7 @@ public function getAppliedServiceCharges(): ?array public function setAppliedServiceCharges(?array $value = null): self { $this->appliedServiceCharges = $value; + $this->_setField('appliedServiceCharges'); return $this; } @@ -532,6 +546,7 @@ public function getBasePriceMoney(): ?Money public function setBasePriceMoney(?Money $value = null): self { $this->basePriceMoney = $value; + $this->_setField('basePriceMoney'); return $this; } @@ -549,6 +564,7 @@ public function getVariationTotalPriceMoney(): ?Money public function setVariationTotalPriceMoney(?Money $value = null): self { $this->variationTotalPriceMoney = $value; + $this->_setField('variationTotalPriceMoney'); return $this; } @@ -566,6 +582,7 @@ public function getGrossSalesMoney(): ?Money public function setGrossSalesMoney(?Money $value = null): self { $this->grossSalesMoney = $value; + $this->_setField('grossSalesMoney'); return $this; } @@ -583,6 +600,7 @@ public function getTotalTaxMoney(): ?Money public function setTotalTaxMoney(?Money $value = null): self { $this->totalTaxMoney = $value; + $this->_setField('totalTaxMoney'); return $this; } @@ -600,6 +618,7 @@ public function getTotalDiscountMoney(): ?Money public function setTotalDiscountMoney(?Money $value = null): self { $this->totalDiscountMoney = $value; + $this->_setField('totalDiscountMoney'); return $this; } @@ -617,6 +636,7 @@ public function getTotalMoney(): ?Money public function setTotalMoney(?Money $value = null): self { $this->totalMoney = $value; + $this->_setField('totalMoney'); return $this; } @@ -634,6 +654,7 @@ public function getPricingBlocklists(): ?OrderLineItemPricingBlocklists public function setPricingBlocklists(?OrderLineItemPricingBlocklists $value = null): self { $this->pricingBlocklists = $value; + $this->_setField('pricingBlocklists'); return $this; } @@ -651,6 +672,7 @@ public function getTotalServiceChargeMoney(): ?Money public function setTotalServiceChargeMoney(?Money $value = null): self { $this->totalServiceChargeMoney = $value; + $this->_setField('totalServiceChargeMoney'); return $this; } diff --git a/src/Types/OrderLineItemAppliedDiscount.php b/src/Types/OrderLineItemAppliedDiscount.php index 4eed5712..5c03dc80 100644 --- a/src/Types/OrderLineItemAppliedDiscount.php +++ b/src/Types/OrderLineItemAppliedDiscount.php @@ -68,6 +68,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -85,6 +86,7 @@ public function getDiscountUid(): string public function setDiscountUid(string $value): self { $this->discountUid = $value; + $this->_setField('discountUid'); return $this; } @@ -102,6 +104,7 @@ public function getAppliedMoney(): ?Money public function setAppliedMoney(?Money $value = null): self { $this->appliedMoney = $value; + $this->_setField('appliedMoney'); return $this; } diff --git a/src/Types/OrderLineItemAppliedServiceCharge.php b/src/Types/OrderLineItemAppliedServiceCharge.php index 54ba28e4..d63088d2 100644 --- a/src/Types/OrderLineItemAppliedServiceCharge.php +++ b/src/Types/OrderLineItemAppliedServiceCharge.php @@ -60,6 +60,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -77,6 +78,7 @@ public function getServiceChargeUid(): string public function setServiceChargeUid(string $value): self { $this->serviceChargeUid = $value; + $this->_setField('serviceChargeUid'); return $this; } @@ -94,6 +96,7 @@ public function getAppliedMoney(): ?Money public function setAppliedMoney(?Money $value = null): self { $this->appliedMoney = $value; + $this->_setField('appliedMoney'); return $this; } diff --git a/src/Types/OrderLineItemAppliedTax.php b/src/Types/OrderLineItemAppliedTax.php index 492b0a1b..21852acf 100644 --- a/src/Types/OrderLineItemAppliedTax.php +++ b/src/Types/OrderLineItemAppliedTax.php @@ -80,6 +80,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -97,6 +98,7 @@ public function getTaxUid(): string public function setTaxUid(string $value): self { $this->taxUid = $value; + $this->_setField('taxUid'); return $this; } @@ -114,6 +116,7 @@ public function getAppliedMoney(): ?Money public function setAppliedMoney(?Money $value = null): self { $this->appliedMoney = $value; + $this->_setField('appliedMoney'); return $this; } @@ -131,6 +134,7 @@ public function getAutoApplied(): ?bool public function setAutoApplied(?bool $value = null): self { $this->autoApplied = $value; + $this->_setField('autoApplied'); return $this; } diff --git a/src/Types/OrderLineItemDiscount.php b/src/Types/OrderLineItemDiscount.php index 8d9d852a..9fb084dd 100644 --- a/src/Types/OrderLineItemDiscount.php +++ b/src/Types/OrderLineItemDiscount.php @@ -197,6 +197,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -214,6 +215,7 @@ public function getCatalogObjectId(): ?string public function setCatalogObjectId(?string $value = null): self { $this->catalogObjectId = $value; + $this->_setField('catalogObjectId'); return $this; } @@ -231,6 +233,7 @@ public function getCatalogVersion(): ?int public function setCatalogVersion(?int $value = null): self { $this->catalogVersion = $value; + $this->_setField('catalogVersion'); return $this; } @@ -248,6 +251,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -265,6 +269,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -282,6 +287,7 @@ public function getPercentage(): ?string public function setPercentage(?string $value = null): self { $this->percentage = $value; + $this->_setField('percentage'); return $this; } @@ -299,6 +305,7 @@ public function getAmountMoney(): ?Money public function setAmountMoney(?Money $value = null): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } @@ -316,6 +323,7 @@ public function getAppliedMoney(): ?Money public function setAppliedMoney(?Money $value = null): self { $this->appliedMoney = $value; + $this->_setField('appliedMoney'); return $this; } @@ -333,6 +341,7 @@ public function getMetadata(): ?array public function setMetadata(?array $value = null): self { $this->metadata = $value; + $this->_setField('metadata'); return $this; } @@ -350,6 +359,7 @@ public function getScope(): ?string public function setScope(?string $value = null): self { $this->scope = $value; + $this->_setField('scope'); return $this; } @@ -367,6 +377,7 @@ public function getRewardIds(): ?array public function setRewardIds(?array $value = null): self { $this->rewardIds = $value; + $this->_setField('rewardIds'); return $this; } @@ -384,6 +395,7 @@ public function getPricingRuleId(): ?string public function setPricingRuleId(?string $value = null): self { $this->pricingRuleId = $value; + $this->_setField('pricingRuleId'); return $this; } diff --git a/src/Types/OrderLineItemModifier.php b/src/Types/OrderLineItemModifier.php index 4a0c6fc9..3c1fabf8 100644 --- a/src/Types/OrderLineItemModifier.php +++ b/src/Types/OrderLineItemModifier.php @@ -135,6 +135,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -152,6 +153,7 @@ public function getCatalogObjectId(): ?string public function setCatalogObjectId(?string $value = null): self { $this->catalogObjectId = $value; + $this->_setField('catalogObjectId'); return $this; } @@ -169,6 +171,7 @@ public function getCatalogVersion(): ?int public function setCatalogVersion(?int $value = null): self { $this->catalogVersion = $value; + $this->_setField('catalogVersion'); return $this; } @@ -186,6 +189,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -203,6 +207,7 @@ public function getQuantity(): ?string public function setQuantity(?string $value = null): self { $this->quantity = $value; + $this->_setField('quantity'); return $this; } @@ -220,6 +225,7 @@ public function getBasePriceMoney(): ?Money public function setBasePriceMoney(?Money $value = null): self { $this->basePriceMoney = $value; + $this->_setField('basePriceMoney'); return $this; } @@ -237,6 +243,7 @@ public function getTotalPriceMoney(): ?Money public function setTotalPriceMoney(?Money $value = null): self { $this->totalPriceMoney = $value; + $this->_setField('totalPriceMoney'); return $this; } @@ -254,6 +261,7 @@ public function getMetadata(): ?array public function setMetadata(?array $value = null): self { $this->metadata = $value; + $this->_setField('metadata'); return $this; } diff --git a/src/Types/OrderLineItemPricingBlocklists.php b/src/Types/OrderLineItemPricingBlocklists.php index 29a3b6a4..1697bbf1 100644 --- a/src/Types/OrderLineItemPricingBlocklists.php +++ b/src/Types/OrderLineItemPricingBlocklists.php @@ -73,6 +73,7 @@ public function getBlockedDiscounts(): ?array public function setBlockedDiscounts(?array $value = null): self { $this->blockedDiscounts = $value; + $this->_setField('blockedDiscounts'); return $this; } @@ -90,6 +91,7 @@ public function getBlockedTaxes(): ?array public function setBlockedTaxes(?array $value = null): self { $this->blockedTaxes = $value; + $this->_setField('blockedTaxes'); return $this; } @@ -107,6 +109,7 @@ public function getBlockedServiceCharges(): ?array public function setBlockedServiceCharges(?array $value = null): self { $this->blockedServiceCharges = $value; + $this->_setField('blockedServiceCharges'); return $this; } diff --git a/src/Types/OrderLineItemPricingBlocklistsBlockedDiscount.php b/src/Types/OrderLineItemPricingBlocklistsBlockedDiscount.php index 2e2b8aea..6ffa870b 100644 --- a/src/Types/OrderLineItemPricingBlocklistsBlockedDiscount.php +++ b/src/Types/OrderLineItemPricingBlocklistsBlockedDiscount.php @@ -65,6 +65,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -82,6 +83,7 @@ public function getDiscountUid(): ?string public function setDiscountUid(?string $value = null): self { $this->discountUid = $value; + $this->_setField('discountUid'); return $this; } @@ -99,6 +101,7 @@ public function getDiscountCatalogObjectId(): ?string public function setDiscountCatalogObjectId(?string $value = null): self { $this->discountCatalogObjectId = $value; + $this->_setField('discountCatalogObjectId'); return $this; } diff --git a/src/Types/OrderLineItemPricingBlocklistsBlockedServiceCharge.php b/src/Types/OrderLineItemPricingBlocklistsBlockedServiceCharge.php index 3dcaabf1..f15985c7 100644 --- a/src/Types/OrderLineItemPricingBlocklistsBlockedServiceCharge.php +++ b/src/Types/OrderLineItemPricingBlocklistsBlockedServiceCharge.php @@ -67,6 +67,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -84,6 +85,7 @@ public function getServiceChargeUid(): ?string public function setServiceChargeUid(?string $value = null): self { $this->serviceChargeUid = $value; + $this->_setField('serviceChargeUid'); return $this; } @@ -101,6 +103,7 @@ public function getServiceChargeCatalogObjectId(): ?string public function setServiceChargeCatalogObjectId(?string $value = null): self { $this->serviceChargeCatalogObjectId = $value; + $this->_setField('serviceChargeCatalogObjectId'); return $this; } diff --git a/src/Types/OrderLineItemPricingBlocklistsBlockedTax.php b/src/Types/OrderLineItemPricingBlocklistsBlockedTax.php index 78987b25..118ad1fb 100644 --- a/src/Types/OrderLineItemPricingBlocklistsBlockedTax.php +++ b/src/Types/OrderLineItemPricingBlocklistsBlockedTax.php @@ -65,6 +65,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -82,6 +83,7 @@ public function getTaxUid(): ?string public function setTaxUid(?string $value = null): self { $this->taxUid = $value; + $this->_setField('taxUid'); return $this; } @@ -99,6 +101,7 @@ public function getTaxCatalogObjectId(): ?string public function setTaxCatalogObjectId(?string $value = null): self { $this->taxCatalogObjectId = $value; + $this->_setField('taxCatalogObjectId'); return $this; } diff --git a/src/Types/OrderLineItemTax.php b/src/Types/OrderLineItemTax.php index 26e0155f..e088e8a3 100644 --- a/src/Types/OrderLineItemTax.php +++ b/src/Types/OrderLineItemTax.php @@ -163,6 +163,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -180,6 +181,7 @@ public function getCatalogObjectId(): ?string public function setCatalogObjectId(?string $value = null): self { $this->catalogObjectId = $value; + $this->_setField('catalogObjectId'); return $this; } @@ -197,6 +199,7 @@ public function getCatalogVersion(): ?int public function setCatalogVersion(?int $value = null): self { $this->catalogVersion = $value; + $this->_setField('catalogVersion'); return $this; } @@ -214,6 +217,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -231,6 +235,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -248,6 +253,7 @@ public function getPercentage(): ?string public function setPercentage(?string $value = null): self { $this->percentage = $value; + $this->_setField('percentage'); return $this; } @@ -265,6 +271,7 @@ public function getMetadata(): ?array public function setMetadata(?array $value = null): self { $this->metadata = $value; + $this->_setField('metadata'); return $this; } @@ -282,6 +289,7 @@ public function getAppliedMoney(): ?Money public function setAppliedMoney(?Money $value = null): self { $this->appliedMoney = $value; + $this->_setField('appliedMoney'); return $this; } @@ -299,6 +307,7 @@ public function getScope(): ?string public function setScope(?string $value = null): self { $this->scope = $value; + $this->_setField('scope'); return $this; } @@ -316,6 +325,7 @@ public function getAutoApplied(): ?bool public function setAutoApplied(?bool $value = null): self { $this->autoApplied = $value; + $this->_setField('autoApplied'); return $this; } diff --git a/src/Types/OrderMoneyAmounts.php b/src/Types/OrderMoneyAmounts.php index fa8667d5..591a03d5 100644 --- a/src/Types/OrderMoneyAmounts.php +++ b/src/Types/OrderMoneyAmounts.php @@ -73,6 +73,7 @@ public function getTotalMoney(): ?Money public function setTotalMoney(?Money $value = null): self { $this->totalMoney = $value; + $this->_setField('totalMoney'); return $this; } @@ -90,6 +91,7 @@ public function getTaxMoney(): ?Money public function setTaxMoney(?Money $value = null): self { $this->taxMoney = $value; + $this->_setField('taxMoney'); return $this; } @@ -107,6 +109,7 @@ public function getDiscountMoney(): ?Money public function setDiscountMoney(?Money $value = null): self { $this->discountMoney = $value; + $this->_setField('discountMoney'); return $this; } @@ -124,6 +127,7 @@ public function getTipMoney(): ?Money public function setTipMoney(?Money $value = null): self { $this->tipMoney = $value; + $this->_setField('tipMoney'); return $this; } @@ -141,6 +145,7 @@ public function getServiceChargeMoney(): ?Money public function setServiceChargeMoney(?Money $value = null): self { $this->serviceChargeMoney = $value; + $this->_setField('serviceChargeMoney'); return $this; } diff --git a/src/Types/OrderPricingOptions.php b/src/Types/OrderPricingOptions.php index 6ceb5e55..51d22f91 100644 --- a/src/Types/OrderPricingOptions.php +++ b/src/Types/OrderPricingOptions.php @@ -57,6 +57,7 @@ public function getAutoApplyDiscounts(): ?bool public function setAutoApplyDiscounts(?bool $value = null): self { $this->autoApplyDiscounts = $value; + $this->_setField('autoApplyDiscounts'); return $this; } @@ -74,6 +75,7 @@ public function getAutoApplyTaxes(): ?bool public function setAutoApplyTaxes(?bool $value = null): self { $this->autoApplyTaxes = $value; + $this->_setField('autoApplyTaxes'); return $this; } diff --git a/src/Types/OrderQuantityUnit.php b/src/Types/OrderQuantityUnit.php index 78856d68..6c392a41 100644 --- a/src/Types/OrderQuantityUnit.php +++ b/src/Types/OrderQuantityUnit.php @@ -85,6 +85,7 @@ public function getMeasurementUnit(): ?MeasurementUnit public function setMeasurementUnit(?MeasurementUnit $value = null): self { $this->measurementUnit = $value; + $this->_setField('measurementUnit'); return $this; } @@ -102,6 +103,7 @@ public function getPrecision(): ?int public function setPrecision(?int $value = null): self { $this->precision = $value; + $this->_setField('precision'); return $this; } @@ -119,6 +121,7 @@ public function getCatalogObjectId(): ?string public function setCatalogObjectId(?string $value = null): self { $this->catalogObjectId = $value; + $this->_setField('catalogObjectId'); return $this; } @@ -136,6 +139,7 @@ public function getCatalogVersion(): ?int public function setCatalogVersion(?int $value = null): self { $this->catalogVersion = $value; + $this->_setField('catalogVersion'); return $this; } diff --git a/src/Types/OrderReturn.php b/src/Types/OrderReturn.php index 0eef00fc..42a4a1a5 100644 --- a/src/Types/OrderReturn.php +++ b/src/Types/OrderReturn.php @@ -121,6 +121,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -138,6 +139,7 @@ public function getSourceOrderId(): ?string public function setSourceOrderId(?string $value = null): self { $this->sourceOrderId = $value; + $this->_setField('sourceOrderId'); return $this; } @@ -155,6 +157,7 @@ public function getReturnLineItems(): ?array public function setReturnLineItems(?array $value = null): self { $this->returnLineItems = $value; + $this->_setField('returnLineItems'); return $this; } @@ -172,6 +175,7 @@ public function getReturnServiceCharges(): ?array public function setReturnServiceCharges(?array $value = null): self { $this->returnServiceCharges = $value; + $this->_setField('returnServiceCharges'); return $this; } @@ -189,6 +193,7 @@ public function getReturnTaxes(): ?array public function setReturnTaxes(?array $value = null): self { $this->returnTaxes = $value; + $this->_setField('returnTaxes'); return $this; } @@ -206,6 +211,7 @@ public function getReturnDiscounts(): ?array public function setReturnDiscounts(?array $value = null): self { $this->returnDiscounts = $value; + $this->_setField('returnDiscounts'); return $this; } @@ -223,6 +229,7 @@ public function getReturnTips(): ?array public function setReturnTips(?array $value = null): self { $this->returnTips = $value; + $this->_setField('returnTips'); return $this; } @@ -240,6 +247,7 @@ public function getRoundingAdjustment(): ?OrderRoundingAdjustment public function setRoundingAdjustment(?OrderRoundingAdjustment $value = null): self { $this->roundingAdjustment = $value; + $this->_setField('roundingAdjustment'); return $this; } @@ -257,6 +265,7 @@ public function getReturnAmounts(): ?OrderMoneyAmounts public function setReturnAmounts(?OrderMoneyAmounts $value = null): self { $this->returnAmounts = $value; + $this->_setField('returnAmounts'); return $this; } diff --git a/src/Types/OrderReturnDiscount.php b/src/Types/OrderReturnDiscount.php index b96b56c6..46d3fccd 100644 --- a/src/Types/OrderReturnDiscount.php +++ b/src/Types/OrderReturnDiscount.php @@ -143,6 +143,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -160,6 +161,7 @@ public function getSourceDiscountUid(): ?string public function setSourceDiscountUid(?string $value = null): self { $this->sourceDiscountUid = $value; + $this->_setField('sourceDiscountUid'); return $this; } @@ -177,6 +179,7 @@ public function getCatalogObjectId(): ?string public function setCatalogObjectId(?string $value = null): self { $this->catalogObjectId = $value; + $this->_setField('catalogObjectId'); return $this; } @@ -194,6 +197,7 @@ public function getCatalogVersion(): ?int public function setCatalogVersion(?int $value = null): self { $this->catalogVersion = $value; + $this->_setField('catalogVersion'); return $this; } @@ -211,6 +215,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -228,6 +233,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -245,6 +251,7 @@ public function getPercentage(): ?string public function setPercentage(?string $value = null): self { $this->percentage = $value; + $this->_setField('percentage'); return $this; } @@ -262,6 +269,7 @@ public function getAmountMoney(): ?Money public function setAmountMoney(?Money $value = null): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } @@ -279,6 +287,7 @@ public function getAppliedMoney(): ?Money public function setAppliedMoney(?Money $value = null): self { $this->appliedMoney = $value; + $this->_setField('appliedMoney'); return $this; } @@ -296,6 +305,7 @@ public function getScope(): ?string public function setScope(?string $value = null): self { $this->scope = $value; + $this->_setField('scope'); return $this; } diff --git a/src/Types/OrderReturnLineItem.php b/src/Types/OrderReturnLineItem.php index 3b61d358..bed6c7b0 100644 --- a/src/Types/OrderReturnLineItem.php +++ b/src/Types/OrderReturnLineItem.php @@ -231,6 +231,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -248,6 +249,7 @@ public function getSourceLineItemUid(): ?string public function setSourceLineItemUid(?string $value = null): self { $this->sourceLineItemUid = $value; + $this->_setField('sourceLineItemUid'); return $this; } @@ -265,6 +267,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -282,6 +285,7 @@ public function getQuantity(): string public function setQuantity(string $value): self { $this->quantity = $value; + $this->_setField('quantity'); return $this; } @@ -299,6 +303,7 @@ public function getQuantityUnit(): ?OrderQuantityUnit public function setQuantityUnit(?OrderQuantityUnit $value = null): self { $this->quantityUnit = $value; + $this->_setField('quantityUnit'); return $this; } @@ -316,6 +321,7 @@ public function getNote(): ?string public function setNote(?string $value = null): self { $this->note = $value; + $this->_setField('note'); return $this; } @@ -333,6 +339,7 @@ public function getCatalogObjectId(): ?string public function setCatalogObjectId(?string $value = null): self { $this->catalogObjectId = $value; + $this->_setField('catalogObjectId'); return $this; } @@ -350,6 +357,7 @@ public function getCatalogVersion(): ?int public function setCatalogVersion(?int $value = null): self { $this->catalogVersion = $value; + $this->_setField('catalogVersion'); return $this; } @@ -367,6 +375,7 @@ public function getVariationName(): ?string public function setVariationName(?string $value = null): self { $this->variationName = $value; + $this->_setField('variationName'); return $this; } @@ -384,6 +393,7 @@ public function getItemType(): ?string public function setItemType(?string $value = null): self { $this->itemType = $value; + $this->_setField('itemType'); return $this; } @@ -401,6 +411,7 @@ public function getReturnModifiers(): ?array public function setReturnModifiers(?array $value = null): self { $this->returnModifiers = $value; + $this->_setField('returnModifiers'); return $this; } @@ -418,6 +429,7 @@ public function getAppliedTaxes(): ?array public function setAppliedTaxes(?array $value = null): self { $this->appliedTaxes = $value; + $this->_setField('appliedTaxes'); return $this; } @@ -435,6 +447,7 @@ public function getAppliedDiscounts(): ?array public function setAppliedDiscounts(?array $value = null): self { $this->appliedDiscounts = $value; + $this->_setField('appliedDiscounts'); return $this; } @@ -452,6 +465,7 @@ public function getBasePriceMoney(): ?Money public function setBasePriceMoney(?Money $value = null): self { $this->basePriceMoney = $value; + $this->_setField('basePriceMoney'); return $this; } @@ -469,6 +483,7 @@ public function getVariationTotalPriceMoney(): ?Money public function setVariationTotalPriceMoney(?Money $value = null): self { $this->variationTotalPriceMoney = $value; + $this->_setField('variationTotalPriceMoney'); return $this; } @@ -486,6 +501,7 @@ public function getGrossReturnMoney(): ?Money public function setGrossReturnMoney(?Money $value = null): self { $this->grossReturnMoney = $value; + $this->_setField('grossReturnMoney'); return $this; } @@ -503,6 +519,7 @@ public function getTotalTaxMoney(): ?Money public function setTotalTaxMoney(?Money $value = null): self { $this->totalTaxMoney = $value; + $this->_setField('totalTaxMoney'); return $this; } @@ -520,6 +537,7 @@ public function getTotalDiscountMoney(): ?Money public function setTotalDiscountMoney(?Money $value = null): self { $this->totalDiscountMoney = $value; + $this->_setField('totalDiscountMoney'); return $this; } @@ -537,6 +555,7 @@ public function getTotalMoney(): ?Money public function setTotalMoney(?Money $value = null): self { $this->totalMoney = $value; + $this->_setField('totalMoney'); return $this; } @@ -554,6 +573,7 @@ public function getAppliedServiceCharges(): ?array public function setAppliedServiceCharges(?array $value = null): self { $this->appliedServiceCharges = $value; + $this->_setField('appliedServiceCharges'); return $this; } @@ -571,6 +591,7 @@ public function getTotalServiceChargeMoney(): ?Money public function setTotalServiceChargeMoney(?Money $value = null): self { $this->totalServiceChargeMoney = $value; + $this->_setField('totalServiceChargeMoney'); return $this; } diff --git a/src/Types/OrderReturnLineItemModifier.php b/src/Types/OrderReturnLineItemModifier.php index 457c2537..b79cb8d7 100644 --- a/src/Types/OrderReturnLineItemModifier.php +++ b/src/Types/OrderReturnLineItemModifier.php @@ -116,6 +116,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -133,6 +134,7 @@ public function getSourceModifierUid(): ?string public function setSourceModifierUid(?string $value = null): self { $this->sourceModifierUid = $value; + $this->_setField('sourceModifierUid'); return $this; } @@ -150,6 +152,7 @@ public function getCatalogObjectId(): ?string public function setCatalogObjectId(?string $value = null): self { $this->catalogObjectId = $value; + $this->_setField('catalogObjectId'); return $this; } @@ -167,6 +170,7 @@ public function getCatalogVersion(): ?int public function setCatalogVersion(?int $value = null): self { $this->catalogVersion = $value; + $this->_setField('catalogVersion'); return $this; } @@ -184,6 +188,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -201,6 +206,7 @@ public function getBasePriceMoney(): ?Money public function setBasePriceMoney(?Money $value = null): self { $this->basePriceMoney = $value; + $this->_setField('basePriceMoney'); return $this; } @@ -218,6 +224,7 @@ public function getTotalPriceMoney(): ?Money public function setTotalPriceMoney(?Money $value = null): self { $this->totalPriceMoney = $value; + $this->_setField('totalPriceMoney'); return $this; } @@ -235,6 +242,7 @@ public function getQuantity(): ?string public function setQuantity(?string $value = null): self { $this->quantity = $value; + $this->_setField('quantity'); return $this; } diff --git a/src/Types/OrderReturnServiceCharge.php b/src/Types/OrderReturnServiceCharge.php index b748b345..43cdf75b 100644 --- a/src/Types/OrderReturnServiceCharge.php +++ b/src/Types/OrderReturnServiceCharge.php @@ -216,6 +216,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -233,6 +234,7 @@ public function getSourceServiceChargeUid(): ?string public function setSourceServiceChargeUid(?string $value = null): self { $this->sourceServiceChargeUid = $value; + $this->_setField('sourceServiceChargeUid'); return $this; } @@ -250,6 +252,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -267,6 +270,7 @@ public function getCatalogObjectId(): ?string public function setCatalogObjectId(?string $value = null): self { $this->catalogObjectId = $value; + $this->_setField('catalogObjectId'); return $this; } @@ -284,6 +288,7 @@ public function getCatalogVersion(): ?int public function setCatalogVersion(?int $value = null): self { $this->catalogVersion = $value; + $this->_setField('catalogVersion'); return $this; } @@ -301,6 +306,7 @@ public function getPercentage(): ?string public function setPercentage(?string $value = null): self { $this->percentage = $value; + $this->_setField('percentage'); return $this; } @@ -318,6 +324,7 @@ public function getAmountMoney(): ?Money public function setAmountMoney(?Money $value = null): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } @@ -335,6 +342,7 @@ public function getAppliedMoney(): ?Money public function setAppliedMoney(?Money $value = null): self { $this->appliedMoney = $value; + $this->_setField('appliedMoney'); return $this; } @@ -352,6 +360,7 @@ public function getTotalMoney(): ?Money public function setTotalMoney(?Money $value = null): self { $this->totalMoney = $value; + $this->_setField('totalMoney'); return $this; } @@ -369,6 +378,7 @@ public function getTotalTaxMoney(): ?Money public function setTotalTaxMoney(?Money $value = null): self { $this->totalTaxMoney = $value; + $this->_setField('totalTaxMoney'); return $this; } @@ -386,6 +396,7 @@ public function getCalculationPhase(): ?string public function setCalculationPhase(?string $value = null): self { $this->calculationPhase = $value; + $this->_setField('calculationPhase'); return $this; } @@ -403,6 +414,7 @@ public function getTaxable(): ?bool public function setTaxable(?bool $value = null): self { $this->taxable = $value; + $this->_setField('taxable'); return $this; } @@ -420,6 +432,7 @@ public function getAppliedTaxes(): ?array public function setAppliedTaxes(?array $value = null): self { $this->appliedTaxes = $value; + $this->_setField('appliedTaxes'); return $this; } @@ -437,6 +450,7 @@ public function getTreatmentType(): ?string public function setTreatmentType(?string $value = null): self { $this->treatmentType = $value; + $this->_setField('treatmentType'); return $this; } @@ -454,6 +468,7 @@ public function getScope(): ?string public function setScope(?string $value = null): self { $this->scope = $value; + $this->_setField('scope'); return $this; } @@ -471,6 +486,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } diff --git a/src/Types/OrderReturnTax.php b/src/Types/OrderReturnTax.php index 55941957..59866736 100644 --- a/src/Types/OrderReturnTax.php +++ b/src/Types/OrderReturnTax.php @@ -121,6 +121,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -138,6 +139,7 @@ public function getSourceTaxUid(): ?string public function setSourceTaxUid(?string $value = null): self { $this->sourceTaxUid = $value; + $this->_setField('sourceTaxUid'); return $this; } @@ -155,6 +157,7 @@ public function getCatalogObjectId(): ?string public function setCatalogObjectId(?string $value = null): self { $this->catalogObjectId = $value; + $this->_setField('catalogObjectId'); return $this; } @@ -172,6 +175,7 @@ public function getCatalogVersion(): ?int public function setCatalogVersion(?int $value = null): self { $this->catalogVersion = $value; + $this->_setField('catalogVersion'); return $this; } @@ -189,6 +193,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -206,6 +211,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -223,6 +229,7 @@ public function getPercentage(): ?string public function setPercentage(?string $value = null): self { $this->percentage = $value; + $this->_setField('percentage'); return $this; } @@ -240,6 +247,7 @@ public function getAppliedMoney(): ?Money public function setAppliedMoney(?Money $value = null): self { $this->appliedMoney = $value; + $this->_setField('appliedMoney'); return $this; } @@ -257,6 +265,7 @@ public function getScope(): ?string public function setScope(?string $value = null): self { $this->scope = $value; + $this->_setField('scope'); return $this; } diff --git a/src/Types/OrderReturnTip.php b/src/Types/OrderReturnTip.php index 8ffb2088..e139cffb 100644 --- a/src/Types/OrderReturnTip.php +++ b/src/Types/OrderReturnTip.php @@ -68,6 +68,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -85,6 +86,7 @@ public function getAppliedMoney(): ?Money public function setAppliedMoney(?Money $value = null): self { $this->appliedMoney = $value; + $this->_setField('appliedMoney'); return $this; } @@ -102,6 +104,7 @@ public function getSourceTenderUid(): ?string public function setSourceTenderUid(?string $value = null): self { $this->sourceTenderUid = $value; + $this->_setField('sourceTenderUid'); return $this; } @@ -119,6 +122,7 @@ public function getSourceTenderId(): ?string public function setSourceTenderId(?string $value = null): self { $this->sourceTenderId = $value; + $this->_setField('sourceTenderId'); return $this; } diff --git a/src/Types/OrderReward.php b/src/Types/OrderReward.php index 2cc54a12..b6ed551a 100644 --- a/src/Types/OrderReward.php +++ b/src/Types/OrderReward.php @@ -50,6 +50,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -67,6 +68,7 @@ public function getRewardTierId(): string public function setRewardTierId(string $value): self { $this->rewardTierId = $value; + $this->_setField('rewardTierId'); return $this; } diff --git a/src/Types/OrderRoundingAdjustment.php b/src/Types/OrderRoundingAdjustment.php index 7b99252a..c752b39f 100644 --- a/src/Types/OrderRoundingAdjustment.php +++ b/src/Types/OrderRoundingAdjustment.php @@ -58,6 +58,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -75,6 +76,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -92,6 +94,7 @@ public function getAmountMoney(): ?Money public function setAmountMoney(?Money $value = null): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } diff --git a/src/Types/OrderServiceCharge.php b/src/Types/OrderServiceCharge.php index f52402bb..784dec8f 100644 --- a/src/Types/OrderServiceCharge.php +++ b/src/Types/OrderServiceCharge.php @@ -241,6 +241,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -258,6 +259,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -275,6 +277,7 @@ public function getCatalogObjectId(): ?string public function setCatalogObjectId(?string $value = null): self { $this->catalogObjectId = $value; + $this->_setField('catalogObjectId'); return $this; } @@ -292,6 +295,7 @@ public function getCatalogVersion(): ?int public function setCatalogVersion(?int $value = null): self { $this->catalogVersion = $value; + $this->_setField('catalogVersion'); return $this; } @@ -309,6 +313,7 @@ public function getPercentage(): ?string public function setPercentage(?string $value = null): self { $this->percentage = $value; + $this->_setField('percentage'); return $this; } @@ -326,6 +331,7 @@ public function getAmountMoney(): ?Money public function setAmountMoney(?Money $value = null): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } @@ -343,6 +349,7 @@ public function getAppliedMoney(): ?Money public function setAppliedMoney(?Money $value = null): self { $this->appliedMoney = $value; + $this->_setField('appliedMoney'); return $this; } @@ -360,6 +367,7 @@ public function getTotalMoney(): ?Money public function setTotalMoney(?Money $value = null): self { $this->totalMoney = $value; + $this->_setField('totalMoney'); return $this; } @@ -377,6 +385,7 @@ public function getTotalTaxMoney(): ?Money public function setTotalTaxMoney(?Money $value = null): self { $this->totalTaxMoney = $value; + $this->_setField('totalTaxMoney'); return $this; } @@ -394,6 +403,7 @@ public function getCalculationPhase(): ?string public function setCalculationPhase(?string $value = null): self { $this->calculationPhase = $value; + $this->_setField('calculationPhase'); return $this; } @@ -411,6 +421,7 @@ public function getTaxable(): ?bool public function setTaxable(?bool $value = null): self { $this->taxable = $value; + $this->_setField('taxable'); return $this; } @@ -428,6 +439,7 @@ public function getAppliedTaxes(): ?array public function setAppliedTaxes(?array $value = null): self { $this->appliedTaxes = $value; + $this->_setField('appliedTaxes'); return $this; } @@ -445,6 +457,7 @@ public function getMetadata(): ?array public function setMetadata(?array $value = null): self { $this->metadata = $value; + $this->_setField('metadata'); return $this; } @@ -462,6 +475,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -479,6 +493,7 @@ public function getTreatmentType(): ?string public function setTreatmentType(?string $value = null): self { $this->treatmentType = $value; + $this->_setField('treatmentType'); return $this; } @@ -496,6 +511,7 @@ public function getScope(): ?string public function setScope(?string $value = null): self { $this->scope = $value; + $this->_setField('scope'); return $this; } diff --git a/src/Types/OrderSource.php b/src/Types/OrderSource.php index f6544b25..46ddf8a2 100644 --- a/src/Types/OrderSource.php +++ b/src/Types/OrderSource.php @@ -44,6 +44,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } diff --git a/src/Types/OrderUpdated.php b/src/Types/OrderUpdated.php index 8fd4a347..1eebc281 100644 --- a/src/Types/OrderUpdated.php +++ b/src/Types/OrderUpdated.php @@ -87,6 +87,7 @@ public function getOrderId(): ?string public function setOrderId(?string $value = null): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } @@ -104,6 +105,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -121,6 +123,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -138,6 +141,7 @@ public function getState(): ?string public function setState(?string $value = null): self { $this->state = $value; + $this->_setField('state'); return $this; } @@ -155,6 +159,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -172,6 +177,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } diff --git a/src/Types/OrderUpdatedEvent.php b/src/Types/OrderUpdatedEvent.php index cd87eb0b..d94a2be9 100644 --- a/src/Types/OrderUpdatedEvent.php +++ b/src/Types/OrderUpdatedEvent.php @@ -75,6 +75,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -92,6 +93,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -109,6 +111,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -126,6 +129,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -143,6 +147,7 @@ public function getData(): ?OrderUpdatedEventData public function setData(?OrderUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/OrderUpdatedEventData.php b/src/Types/OrderUpdatedEventData.php index 37c73117..314ab412 100644 --- a/src/Types/OrderUpdatedEventData.php +++ b/src/Types/OrderUpdatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?OrderUpdatedObject public function setObject(?OrderUpdatedObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/OrderUpdatedObject.php b/src/Types/OrderUpdatedObject.php index 40d7dd5a..567fff7f 100644 --- a/src/Types/OrderUpdatedObject.php +++ b/src/Types/OrderUpdatedObject.php @@ -38,6 +38,7 @@ public function getOrderUpdated(): ?OrderUpdated public function setOrderUpdated(?OrderUpdated $value = null): self { $this->orderUpdated = $value; + $this->_setField('orderUpdated'); return $this; } diff --git a/src/Types/PauseSubscriptionResponse.php b/src/Types/PauseSubscriptionResponse.php index 98df24e5..474ae4c9 100644 --- a/src/Types/PauseSubscriptionResponse.php +++ b/src/Types/PauseSubscriptionResponse.php @@ -59,6 +59,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -76,6 +77,7 @@ public function getSubscription(): ?Subscription public function setSubscription(?Subscription $value = null): self { $this->subscription = $value; + $this->_setField('subscription'); return $this; } @@ -93,6 +95,7 @@ public function getActions(): ?array public function setActions(?array $value = null): self { $this->actions = $value; + $this->_setField('actions'); return $this; } diff --git a/src/Types/PayOrderResponse.php b/src/Types/PayOrderResponse.php index d1a2b828..c7913b35 100644 --- a/src/Types/PayOrderResponse.php +++ b/src/Types/PayOrderResponse.php @@ -51,6 +51,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -68,6 +69,7 @@ public function getOrder(): ?Order public function setOrder(?Order $value = null): self { $this->order = $value; + $this->_setField('order'); return $this; } diff --git a/src/Types/Payment.php b/src/Types/Payment.php index c2e3e612..b3f97366 100644 --- a/src/Types/Payment.php +++ b/src/Types/Payment.php @@ -516,6 +516,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -533,6 +534,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -550,6 +552,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -567,6 +570,7 @@ public function getAmountMoney(): ?Money public function setAmountMoney(?Money $value = null): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } @@ -584,6 +588,7 @@ public function getTipMoney(): ?Money public function setTipMoney(?Money $value = null): self { $this->tipMoney = $value; + $this->_setField('tipMoney'); return $this; } @@ -601,6 +606,7 @@ public function getTotalMoney(): ?Money public function setTotalMoney(?Money $value = null): self { $this->totalMoney = $value; + $this->_setField('totalMoney'); return $this; } @@ -618,6 +624,7 @@ public function getAppFeeMoney(): ?Money public function setAppFeeMoney(?Money $value = null): self { $this->appFeeMoney = $value; + $this->_setField('appFeeMoney'); return $this; } @@ -635,6 +642,7 @@ public function getApprovedMoney(): ?Money public function setApprovedMoney(?Money $value = null): self { $this->approvedMoney = $value; + $this->_setField('approvedMoney'); return $this; } @@ -652,6 +660,7 @@ public function getProcessingFee(): ?array public function setProcessingFee(?array $value = null): self { $this->processingFee = $value; + $this->_setField('processingFee'); return $this; } @@ -669,6 +678,7 @@ public function getRefundedMoney(): ?Money public function setRefundedMoney(?Money $value = null): self { $this->refundedMoney = $value; + $this->_setField('refundedMoney'); return $this; } @@ -686,6 +696,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -703,6 +714,7 @@ public function getDelayDuration(): ?string public function setDelayDuration(?string $value = null): self { $this->delayDuration = $value; + $this->_setField('delayDuration'); return $this; } @@ -720,6 +732,7 @@ public function getDelayAction(): ?string public function setDelayAction(?string $value = null): self { $this->delayAction = $value; + $this->_setField('delayAction'); return $this; } @@ -737,6 +750,7 @@ public function getDelayedUntil(): ?string public function setDelayedUntil(?string $value = null): self { $this->delayedUntil = $value; + $this->_setField('delayedUntil'); return $this; } @@ -754,6 +768,7 @@ public function getSourceType(): ?string public function setSourceType(?string $value = null): self { $this->sourceType = $value; + $this->_setField('sourceType'); return $this; } @@ -771,6 +786,7 @@ public function getCardDetails(): ?CardPaymentDetails public function setCardDetails(?CardPaymentDetails $value = null): self { $this->cardDetails = $value; + $this->_setField('cardDetails'); return $this; } @@ -788,6 +804,7 @@ public function getCashDetails(): ?CashPaymentDetails public function setCashDetails(?CashPaymentDetails $value = null): self { $this->cashDetails = $value; + $this->_setField('cashDetails'); return $this; } @@ -805,6 +822,7 @@ public function getBankAccountDetails(): ?BankAccountPaymentDetails public function setBankAccountDetails(?BankAccountPaymentDetails $value = null): self { $this->bankAccountDetails = $value; + $this->_setField('bankAccountDetails'); return $this; } @@ -822,6 +840,7 @@ public function getExternalDetails(): ?ExternalPaymentDetails public function setExternalDetails(?ExternalPaymentDetails $value = null): self { $this->externalDetails = $value; + $this->_setField('externalDetails'); return $this; } @@ -839,6 +858,7 @@ public function getWalletDetails(): ?DigitalWalletDetails public function setWalletDetails(?DigitalWalletDetails $value = null): self { $this->walletDetails = $value; + $this->_setField('walletDetails'); return $this; } @@ -856,6 +876,7 @@ public function getBuyNowPayLaterDetails(): ?BuyNowPayLaterDetails public function setBuyNowPayLaterDetails(?BuyNowPayLaterDetails $value = null): self { $this->buyNowPayLaterDetails = $value; + $this->_setField('buyNowPayLaterDetails'); return $this; } @@ -873,6 +894,7 @@ public function getSquareAccountDetails(): ?SquareAccountDetails public function setSquareAccountDetails(?SquareAccountDetails $value = null): self { $this->squareAccountDetails = $value; + $this->_setField('squareAccountDetails'); return $this; } @@ -890,6 +912,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -907,6 +930,7 @@ public function getOrderId(): ?string public function setOrderId(?string $value = null): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } @@ -924,6 +948,7 @@ public function getReferenceId(): ?string public function setReferenceId(?string $value = null): self { $this->referenceId = $value; + $this->_setField('referenceId'); return $this; } @@ -941,6 +966,7 @@ public function getCustomerId(): ?string public function setCustomerId(?string $value = null): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -958,6 +984,7 @@ public function getEmployeeId(): ?string public function setEmployeeId(?string $value = null): self { $this->employeeId = $value; + $this->_setField('employeeId'); return $this; } @@ -975,6 +1002,7 @@ public function getTeamMemberId(): ?string public function setTeamMemberId(?string $value = null): self { $this->teamMemberId = $value; + $this->_setField('teamMemberId'); return $this; } @@ -992,6 +1020,7 @@ public function getRefundIds(): ?array public function setRefundIds(?array $value = null): self { $this->refundIds = $value; + $this->_setField('refundIds'); return $this; } @@ -1009,6 +1038,7 @@ public function getRiskEvaluation(): ?RiskEvaluation public function setRiskEvaluation(?RiskEvaluation $value = null): self { $this->riskEvaluation = $value; + $this->_setField('riskEvaluation'); return $this; } @@ -1026,6 +1056,7 @@ public function getTerminalCheckoutId(): ?string public function setTerminalCheckoutId(?string $value = null): self { $this->terminalCheckoutId = $value; + $this->_setField('terminalCheckoutId'); return $this; } @@ -1043,6 +1074,7 @@ public function getBuyerEmailAddress(): ?string public function setBuyerEmailAddress(?string $value = null): self { $this->buyerEmailAddress = $value; + $this->_setField('buyerEmailAddress'); return $this; } @@ -1060,6 +1092,7 @@ public function getBillingAddress(): ?Address public function setBillingAddress(?Address $value = null): self { $this->billingAddress = $value; + $this->_setField('billingAddress'); return $this; } @@ -1077,6 +1110,7 @@ public function getShippingAddress(): ?Address public function setShippingAddress(?Address $value = null): self { $this->shippingAddress = $value; + $this->_setField('shippingAddress'); return $this; } @@ -1094,6 +1128,7 @@ public function getNote(): ?string public function setNote(?string $value = null): self { $this->note = $value; + $this->_setField('note'); return $this; } @@ -1111,6 +1146,7 @@ public function getStatementDescriptionIdentifier(): ?string public function setStatementDescriptionIdentifier(?string $value = null): self { $this->statementDescriptionIdentifier = $value; + $this->_setField('statementDescriptionIdentifier'); return $this; } @@ -1128,6 +1164,7 @@ public function getCapabilities(): ?array public function setCapabilities(?array $value = null): self { $this->capabilities = $value; + $this->_setField('capabilities'); return $this; } @@ -1145,6 +1182,7 @@ public function getReceiptNumber(): ?string public function setReceiptNumber(?string $value = null): self { $this->receiptNumber = $value; + $this->_setField('receiptNumber'); return $this; } @@ -1162,6 +1200,7 @@ public function getReceiptUrl(): ?string public function setReceiptUrl(?string $value = null): self { $this->receiptUrl = $value; + $this->_setField('receiptUrl'); return $this; } @@ -1179,6 +1218,7 @@ public function getDeviceDetails(): ?DeviceDetails public function setDeviceDetails(?DeviceDetails $value = null): self { $this->deviceDetails = $value; + $this->_setField('deviceDetails'); return $this; } @@ -1196,6 +1236,7 @@ public function getApplicationDetails(): ?ApplicationDetails public function setApplicationDetails(?ApplicationDetails $value = null): self { $this->applicationDetails = $value; + $this->_setField('applicationDetails'); return $this; } @@ -1213,6 +1254,7 @@ public function getIsOfflinePayment(): ?bool public function setIsOfflinePayment(?bool $value = null): self { $this->isOfflinePayment = $value; + $this->_setField('isOfflinePayment'); return $this; } @@ -1230,6 +1272,7 @@ public function getOfflinePaymentDetails(): ?OfflinePaymentDetails public function setOfflinePaymentDetails(?OfflinePaymentDetails $value = null): self { $this->offlinePaymentDetails = $value; + $this->_setField('offlinePaymentDetails'); return $this; } @@ -1247,6 +1290,7 @@ public function getVersionToken(): ?string public function setVersionToken(?string $value = null): self { $this->versionToken = $value; + $this->_setField('versionToken'); return $this; } diff --git a/src/Types/PaymentBalanceActivityAppFeeRefundDetail.php b/src/Types/PaymentBalanceActivityAppFeeRefundDetail.php index ac1b10fe..f98945b2 100644 --- a/src/Types/PaymentBalanceActivityAppFeeRefundDetail.php +++ b/src/Types/PaymentBalanceActivityAppFeeRefundDetail.php @@ -54,6 +54,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } @@ -71,6 +72,7 @@ public function getRefundId(): ?string public function setRefundId(?string $value = null): self { $this->refundId = $value; + $this->_setField('refundId'); return $this; } @@ -88,6 +90,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } diff --git a/src/Types/PaymentBalanceActivityAppFeeRevenueDetail.php b/src/Types/PaymentBalanceActivityAppFeeRevenueDetail.php index 2dfecff2..dc0a9bf0 100644 --- a/src/Types/PaymentBalanceActivityAppFeeRevenueDetail.php +++ b/src/Types/PaymentBalanceActivityAppFeeRevenueDetail.php @@ -46,6 +46,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } @@ -63,6 +64,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } diff --git a/src/Types/PaymentBalanceActivityAutomaticSavingsDetail.php b/src/Types/PaymentBalanceActivityAutomaticSavingsDetail.php index 9c503450..6c15a9d1 100644 --- a/src/Types/PaymentBalanceActivityAutomaticSavingsDetail.php +++ b/src/Types/PaymentBalanceActivityAutomaticSavingsDetail.php @@ -46,6 +46,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } @@ -63,6 +64,7 @@ public function getPayoutId(): ?string public function setPayoutId(?string $value = null): self { $this->payoutId = $value; + $this->_setField('payoutId'); return $this; } diff --git a/src/Types/PaymentBalanceActivityAutomaticSavingsReversedDetail.php b/src/Types/PaymentBalanceActivityAutomaticSavingsReversedDetail.php index 256a3d3b..8233bf57 100644 --- a/src/Types/PaymentBalanceActivityAutomaticSavingsReversedDetail.php +++ b/src/Types/PaymentBalanceActivityAutomaticSavingsReversedDetail.php @@ -46,6 +46,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } @@ -63,6 +64,7 @@ public function getPayoutId(): ?string public function setPayoutId(?string $value = null): self { $this->payoutId = $value; + $this->_setField('payoutId'); return $this; } diff --git a/src/Types/PaymentBalanceActivityChargeDetail.php b/src/Types/PaymentBalanceActivityChargeDetail.php index 136daf76..b85fe81a 100644 --- a/src/Types/PaymentBalanceActivityChargeDetail.php +++ b/src/Types/PaymentBalanceActivityChargeDetail.php @@ -38,6 +38,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } diff --git a/src/Types/PaymentBalanceActivityDepositFeeDetail.php b/src/Types/PaymentBalanceActivityDepositFeeDetail.php index 910bd739..0e863b83 100644 --- a/src/Types/PaymentBalanceActivityDepositFeeDetail.php +++ b/src/Types/PaymentBalanceActivityDepositFeeDetail.php @@ -38,6 +38,7 @@ public function getPayoutId(): ?string public function setPayoutId(?string $value = null): self { $this->payoutId = $value; + $this->_setField('payoutId'); return $this; } diff --git a/src/Types/PaymentBalanceActivityDepositFeeReversedDetail.php b/src/Types/PaymentBalanceActivityDepositFeeReversedDetail.php index cc440e84..5ad88332 100644 --- a/src/Types/PaymentBalanceActivityDepositFeeReversedDetail.php +++ b/src/Types/PaymentBalanceActivityDepositFeeReversedDetail.php @@ -38,6 +38,7 @@ public function getPayoutId(): ?string public function setPayoutId(?string $value = null): self { $this->payoutId = $value; + $this->_setField('payoutId'); return $this; } diff --git a/src/Types/PaymentBalanceActivityDisputeDetail.php b/src/Types/PaymentBalanceActivityDisputeDetail.php index 8dd34ffc..90f73532 100644 --- a/src/Types/PaymentBalanceActivityDisputeDetail.php +++ b/src/Types/PaymentBalanceActivityDisputeDetail.php @@ -46,6 +46,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } @@ -63,6 +64,7 @@ public function getDisputeId(): ?string public function setDisputeId(?string $value = null): self { $this->disputeId = $value; + $this->_setField('disputeId'); return $this; } diff --git a/src/Types/PaymentBalanceActivityFeeDetail.php b/src/Types/PaymentBalanceActivityFeeDetail.php index 4390318d..65a6be6a 100644 --- a/src/Types/PaymentBalanceActivityFeeDetail.php +++ b/src/Types/PaymentBalanceActivityFeeDetail.php @@ -43,6 +43,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } diff --git a/src/Types/PaymentBalanceActivityFreeProcessingDetail.php b/src/Types/PaymentBalanceActivityFreeProcessingDetail.php index 81c53a45..b28ffea5 100644 --- a/src/Types/PaymentBalanceActivityFreeProcessingDetail.php +++ b/src/Types/PaymentBalanceActivityFreeProcessingDetail.php @@ -38,6 +38,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } diff --git a/src/Types/PaymentBalanceActivityHoldAdjustmentDetail.php b/src/Types/PaymentBalanceActivityHoldAdjustmentDetail.php index c1b7657f..5ee01b86 100644 --- a/src/Types/PaymentBalanceActivityHoldAdjustmentDetail.php +++ b/src/Types/PaymentBalanceActivityHoldAdjustmentDetail.php @@ -38,6 +38,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } diff --git a/src/Types/PaymentBalanceActivityOpenDisputeDetail.php b/src/Types/PaymentBalanceActivityOpenDisputeDetail.php index 47dda480..96010827 100644 --- a/src/Types/PaymentBalanceActivityOpenDisputeDetail.php +++ b/src/Types/PaymentBalanceActivityOpenDisputeDetail.php @@ -46,6 +46,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } @@ -63,6 +64,7 @@ public function getDisputeId(): ?string public function setDisputeId(?string $value = null): self { $this->disputeId = $value; + $this->_setField('disputeId'); return $this; } diff --git a/src/Types/PaymentBalanceActivityOtherAdjustmentDetail.php b/src/Types/PaymentBalanceActivityOtherAdjustmentDetail.php index b953148a..90dc3538 100644 --- a/src/Types/PaymentBalanceActivityOtherAdjustmentDetail.php +++ b/src/Types/PaymentBalanceActivityOtherAdjustmentDetail.php @@ -38,6 +38,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } diff --git a/src/Types/PaymentBalanceActivityOtherDetail.php b/src/Types/PaymentBalanceActivityOtherDetail.php index c95cde50..92c9627c 100644 --- a/src/Types/PaymentBalanceActivityOtherDetail.php +++ b/src/Types/PaymentBalanceActivityOtherDetail.php @@ -38,6 +38,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } diff --git a/src/Types/PaymentBalanceActivityRefundDetail.php b/src/Types/PaymentBalanceActivityRefundDetail.php index fa653aae..3e75f514 100644 --- a/src/Types/PaymentBalanceActivityRefundDetail.php +++ b/src/Types/PaymentBalanceActivityRefundDetail.php @@ -46,6 +46,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } @@ -63,6 +64,7 @@ public function getRefundId(): ?string public function setRefundId(?string $value = null): self { $this->refundId = $value; + $this->_setField('refundId'); return $this; } diff --git a/src/Types/PaymentBalanceActivityReleaseAdjustmentDetail.php b/src/Types/PaymentBalanceActivityReleaseAdjustmentDetail.php index d1016d8f..e7c2df05 100644 --- a/src/Types/PaymentBalanceActivityReleaseAdjustmentDetail.php +++ b/src/Types/PaymentBalanceActivityReleaseAdjustmentDetail.php @@ -38,6 +38,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } diff --git a/src/Types/PaymentBalanceActivityReserveHoldDetail.php b/src/Types/PaymentBalanceActivityReserveHoldDetail.php index 1b7b5006..62e91234 100644 --- a/src/Types/PaymentBalanceActivityReserveHoldDetail.php +++ b/src/Types/PaymentBalanceActivityReserveHoldDetail.php @@ -38,6 +38,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } diff --git a/src/Types/PaymentBalanceActivityReserveReleaseDetail.php b/src/Types/PaymentBalanceActivityReserveReleaseDetail.php index c5bfc590..5bd86d75 100644 --- a/src/Types/PaymentBalanceActivityReserveReleaseDetail.php +++ b/src/Types/PaymentBalanceActivityReserveReleaseDetail.php @@ -38,6 +38,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } diff --git a/src/Types/PaymentBalanceActivitySquareCapitalPaymentDetail.php b/src/Types/PaymentBalanceActivitySquareCapitalPaymentDetail.php index df17c0f5..0ae05173 100644 --- a/src/Types/PaymentBalanceActivitySquareCapitalPaymentDetail.php +++ b/src/Types/PaymentBalanceActivitySquareCapitalPaymentDetail.php @@ -38,6 +38,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } diff --git a/src/Types/PaymentBalanceActivitySquareCapitalReversedPaymentDetail.php b/src/Types/PaymentBalanceActivitySquareCapitalReversedPaymentDetail.php index 92c9aada..a51d52e7 100644 --- a/src/Types/PaymentBalanceActivitySquareCapitalReversedPaymentDetail.php +++ b/src/Types/PaymentBalanceActivitySquareCapitalReversedPaymentDetail.php @@ -38,6 +38,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } diff --git a/src/Types/PaymentBalanceActivitySquarePayrollTransferDetail.php b/src/Types/PaymentBalanceActivitySquarePayrollTransferDetail.php index f9b95975..0c96265c 100644 --- a/src/Types/PaymentBalanceActivitySquarePayrollTransferDetail.php +++ b/src/Types/PaymentBalanceActivitySquarePayrollTransferDetail.php @@ -38,6 +38,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } diff --git a/src/Types/PaymentBalanceActivitySquarePayrollTransferReversedDetail.php b/src/Types/PaymentBalanceActivitySquarePayrollTransferReversedDetail.php index 47f3c501..2646e502 100644 --- a/src/Types/PaymentBalanceActivitySquarePayrollTransferReversedDetail.php +++ b/src/Types/PaymentBalanceActivitySquarePayrollTransferReversedDetail.php @@ -38,6 +38,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } diff --git a/src/Types/PaymentBalanceActivityTaxOnFeeDetail.php b/src/Types/PaymentBalanceActivityTaxOnFeeDetail.php index f5153aae..bc1a04a1 100644 --- a/src/Types/PaymentBalanceActivityTaxOnFeeDetail.php +++ b/src/Types/PaymentBalanceActivityTaxOnFeeDetail.php @@ -46,6 +46,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } @@ -63,6 +64,7 @@ public function getTaxRateDescription(): ?string public function setTaxRateDescription(?string $value = null): self { $this->taxRateDescription = $value; + $this->_setField('taxRateDescription'); return $this; } diff --git a/src/Types/PaymentBalanceActivityThirdPartyFeeDetail.php b/src/Types/PaymentBalanceActivityThirdPartyFeeDetail.php index c74c0661..0d79f1f8 100644 --- a/src/Types/PaymentBalanceActivityThirdPartyFeeDetail.php +++ b/src/Types/PaymentBalanceActivityThirdPartyFeeDetail.php @@ -38,6 +38,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } diff --git a/src/Types/PaymentBalanceActivityThirdPartyFeeRefundDetail.php b/src/Types/PaymentBalanceActivityThirdPartyFeeRefundDetail.php index 07845e41..2c20ba61 100644 --- a/src/Types/PaymentBalanceActivityThirdPartyFeeRefundDetail.php +++ b/src/Types/PaymentBalanceActivityThirdPartyFeeRefundDetail.php @@ -46,6 +46,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } @@ -63,6 +64,7 @@ public function getRefundId(): ?string public function setRefundId(?string $value = null): self { $this->refundId = $value; + $this->_setField('refundId'); return $this; } diff --git a/src/Types/PaymentCreatedEvent.php b/src/Types/PaymentCreatedEvent.php index 60e0dd33..7ba40dcb 100644 --- a/src/Types/PaymentCreatedEvent.php +++ b/src/Types/PaymentCreatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?PaymentCreatedEventData public function setData(?PaymentCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/PaymentCreatedEventData.php b/src/Types/PaymentCreatedEventData.php index 2456f333..780aa20a 100644 --- a/src/Types/PaymentCreatedEventData.php +++ b/src/Types/PaymentCreatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?PaymentCreatedEventObject public function setObject(?PaymentCreatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/PaymentCreatedEventObject.php b/src/Types/PaymentCreatedEventObject.php index eb3bfe4a..94e97746 100644 --- a/src/Types/PaymentCreatedEventObject.php +++ b/src/Types/PaymentCreatedEventObject.php @@ -38,6 +38,7 @@ public function getPayment(): ?Payment public function setPayment(?Payment $value = null): self { $this->payment = $value; + $this->_setField('payment'); return $this; } diff --git a/src/Types/PaymentLink.php b/src/Types/PaymentLink.php index 212afca6..6b7abf2d 100644 --- a/src/Types/PaymentLink.php +++ b/src/Types/PaymentLink.php @@ -130,6 +130,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -147,6 +148,7 @@ public function getVersion(): int public function setVersion(int $value): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -164,6 +166,7 @@ public function getDescription(): ?string public function setDescription(?string $value = null): self { $this->description = $value; + $this->_setField('description'); return $this; } @@ -181,6 +184,7 @@ public function getOrderId(): ?string public function setOrderId(?string $value = null): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } @@ -198,6 +202,7 @@ public function getCheckoutOptions(): ?CheckoutOptions public function setCheckoutOptions(?CheckoutOptions $value = null): self { $this->checkoutOptions = $value; + $this->_setField('checkoutOptions'); return $this; } @@ -215,6 +220,7 @@ public function getPrePopulatedData(): ?PrePopulatedData public function setPrePopulatedData(?PrePopulatedData $value = null): self { $this->prePopulatedData = $value; + $this->_setField('prePopulatedData'); return $this; } @@ -232,6 +238,7 @@ public function getUrl(): ?string public function setUrl(?string $value = null): self { $this->url = $value; + $this->_setField('url'); return $this; } @@ -249,6 +256,7 @@ public function getLongUrl(): ?string public function setLongUrl(?string $value = null): self { $this->longUrl = $value; + $this->_setField('longUrl'); return $this; } @@ -266,6 +274,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -283,6 +292,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -300,6 +310,7 @@ public function getPaymentNote(): ?string public function setPaymentNote(?string $value = null): self { $this->paymentNote = $value; + $this->_setField('paymentNote'); return $this; } diff --git a/src/Types/PaymentLinkRelatedResources.php b/src/Types/PaymentLinkRelatedResources.php index 1f018420..8f33f7b0 100644 --- a/src/Types/PaymentLinkRelatedResources.php +++ b/src/Types/PaymentLinkRelatedResources.php @@ -47,6 +47,7 @@ public function getOrders(): ?array public function setOrders(?array $value = null): self { $this->orders = $value; + $this->_setField('orders'); return $this; } @@ -64,6 +65,7 @@ public function getSubscriptionPlans(): ?array public function setSubscriptionPlans(?array $value = null): self { $this->subscriptionPlans = $value; + $this->_setField('subscriptionPlans'); return $this; } diff --git a/src/Types/PaymentOptions.php b/src/Types/PaymentOptions.php index d0a70859..76be1fd5 100644 --- a/src/Types/PaymentOptions.php +++ b/src/Types/PaymentOptions.php @@ -103,6 +103,7 @@ public function getAutocomplete(): ?bool public function setAutocomplete(?bool $value = null): self { $this->autocomplete = $value; + $this->_setField('autocomplete'); return $this; } @@ -120,6 +121,7 @@ public function getDelayDuration(): ?string public function setDelayDuration(?string $value = null): self { $this->delayDuration = $value; + $this->_setField('delayDuration'); return $this; } @@ -137,6 +139,7 @@ public function getAcceptPartialAuthorization(): ?bool public function setAcceptPartialAuthorization(?bool $value = null): self { $this->acceptPartialAuthorization = $value; + $this->_setField('acceptPartialAuthorization'); return $this; } @@ -154,6 +157,7 @@ public function getDelayAction(): ?string public function setDelayAction(?string $value = null): self { $this->delayAction = $value; + $this->_setField('delayAction'); return $this; } diff --git a/src/Types/PaymentRefund.php b/src/Types/PaymentRefund.php index 3afa44ad..f4b66342 100644 --- a/src/Types/PaymentRefund.php +++ b/src/Types/PaymentRefund.php @@ -185,6 +185,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -202,6 +203,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -219,6 +221,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -236,6 +239,7 @@ public function getUnlinked(): ?bool public function setUnlinked(?bool $value = null): self { $this->unlinked = $value; + $this->_setField('unlinked'); return $this; } @@ -253,6 +257,7 @@ public function getDestinationType(): ?string public function setDestinationType(?string $value = null): self { $this->destinationType = $value; + $this->_setField('destinationType'); return $this; } @@ -270,6 +275,7 @@ public function getDestinationDetails(): ?DestinationDetails public function setDestinationDetails(?DestinationDetails $value = null): self { $this->destinationDetails = $value; + $this->_setField('destinationDetails'); return $this; } @@ -287,6 +293,7 @@ public function getAmountMoney(): Money public function setAmountMoney(Money $value): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } @@ -304,6 +311,7 @@ public function getAppFeeMoney(): ?Money public function setAppFeeMoney(?Money $value = null): self { $this->appFeeMoney = $value; + $this->_setField('appFeeMoney'); return $this; } @@ -321,6 +329,7 @@ public function getProcessingFee(): ?array public function setProcessingFee(?array $value = null): self { $this->processingFee = $value; + $this->_setField('processingFee'); return $this; } @@ -338,6 +347,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } @@ -355,6 +365,7 @@ public function getOrderId(): ?string public function setOrderId(?string $value = null): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } @@ -372,6 +383,7 @@ public function getReason(): ?string public function setReason(?string $value = null): self { $this->reason = $value; + $this->_setField('reason'); return $this; } @@ -389,6 +401,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -406,6 +419,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -423,6 +437,7 @@ public function getTeamMemberId(): ?string public function setTeamMemberId(?string $value = null): self { $this->teamMemberId = $value; + $this->_setField('teamMemberId'); return $this; } @@ -440,6 +455,7 @@ public function getTerminalRefundId(): ?string public function setTerminalRefundId(?string $value = null): self { $this->terminalRefundId = $value; + $this->_setField('terminalRefundId'); return $this; } diff --git a/src/Types/PaymentUpdatedEvent.php b/src/Types/PaymentUpdatedEvent.php index 6abc3782..03f84301 100644 --- a/src/Types/PaymentUpdatedEvent.php +++ b/src/Types/PaymentUpdatedEvent.php @@ -75,6 +75,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -92,6 +93,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -109,6 +111,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -126,6 +129,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -143,6 +147,7 @@ public function getData(): ?PaymentUpdatedEventData public function setData(?PaymentUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/PaymentUpdatedEventData.php b/src/Types/PaymentUpdatedEventData.php index 96eed867..a7e2e039 100644 --- a/src/Types/PaymentUpdatedEventData.php +++ b/src/Types/PaymentUpdatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?PaymentUpdatedEventObject public function setObject(?PaymentUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/PaymentUpdatedEventObject.php b/src/Types/PaymentUpdatedEventObject.php index 72a23b11..a0d068fe 100644 --- a/src/Types/PaymentUpdatedEventObject.php +++ b/src/Types/PaymentUpdatedEventObject.php @@ -38,6 +38,7 @@ public function getPayment(): ?Payment public function setPayment(?Payment $value = null): self { $this->payment = $value; + $this->_setField('payment'); return $this; } diff --git a/src/Types/Payout.php b/src/Types/Payout.php index c7fa6552..8f55ec33 100644 --- a/src/Types/Payout.php +++ b/src/Types/Payout.php @@ -143,6 +143,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -160,6 +161,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -177,6 +179,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -194,6 +197,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -211,6 +215,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -228,6 +233,7 @@ public function getAmountMoney(): ?Money public function setAmountMoney(?Money $value = null): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } @@ -245,6 +251,7 @@ public function getDestination(): ?Destination public function setDestination(?Destination $value = null): self { $this->destination = $value; + $this->_setField('destination'); return $this; } @@ -262,6 +269,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -279,6 +287,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -296,6 +305,7 @@ public function getPayoutFee(): ?array public function setPayoutFee(?array $value = null): self { $this->payoutFee = $value; + $this->_setField('payoutFee'); return $this; } @@ -313,6 +323,7 @@ public function getArrivalDate(): ?string public function setArrivalDate(?string $value = null): self { $this->arrivalDate = $value; + $this->_setField('arrivalDate'); return $this; } @@ -330,6 +341,7 @@ public function getEndToEndId(): ?string public function setEndToEndId(?string $value = null): self { $this->endToEndId = $value; + $this->_setField('endToEndId'); return $this; } diff --git a/src/Types/PayoutEntry.php b/src/Types/PayoutEntry.php index 63dbd554..2fd3561a 100644 --- a/src/Types/PayoutEntry.php +++ b/src/Types/PayoutEntry.php @@ -293,6 +293,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -310,6 +311,7 @@ public function getPayoutId(): string public function setPayoutId(string $value): self { $this->payoutId = $value; + $this->_setField('payoutId'); return $this; } @@ -327,6 +329,7 @@ public function getEffectiveAt(): ?string public function setEffectiveAt(?string $value = null): self { $this->effectiveAt = $value; + $this->_setField('effectiveAt'); return $this; } @@ -344,6 +347,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -361,6 +365,7 @@ public function getGrossAmountMoney(): ?Money public function setGrossAmountMoney(?Money $value = null): self { $this->grossAmountMoney = $value; + $this->_setField('grossAmountMoney'); return $this; } @@ -378,6 +383,7 @@ public function getFeeAmountMoney(): ?Money public function setFeeAmountMoney(?Money $value = null): self { $this->feeAmountMoney = $value; + $this->_setField('feeAmountMoney'); return $this; } @@ -395,6 +401,7 @@ public function getNetAmountMoney(): ?Money public function setNetAmountMoney(?Money $value = null): self { $this->netAmountMoney = $value; + $this->_setField('netAmountMoney'); return $this; } @@ -412,6 +419,7 @@ public function getTypeAppFeeRevenueDetails(): ?PaymentBalanceActivityAppFeeReve public function setTypeAppFeeRevenueDetails(?PaymentBalanceActivityAppFeeRevenueDetail $value = null): self { $this->typeAppFeeRevenueDetails = $value; + $this->_setField('typeAppFeeRevenueDetails'); return $this; } @@ -429,6 +437,7 @@ public function getTypeAppFeeRefundDetails(): ?PaymentBalanceActivityAppFeeRefun public function setTypeAppFeeRefundDetails(?PaymentBalanceActivityAppFeeRefundDetail $value = null): self { $this->typeAppFeeRefundDetails = $value; + $this->_setField('typeAppFeeRefundDetails'); return $this; } @@ -446,6 +455,7 @@ public function getTypeAutomaticSavingsDetails(): ?PaymentBalanceActivityAutomat public function setTypeAutomaticSavingsDetails(?PaymentBalanceActivityAutomaticSavingsDetail $value = null): self { $this->typeAutomaticSavingsDetails = $value; + $this->_setField('typeAutomaticSavingsDetails'); return $this; } @@ -463,6 +473,7 @@ public function getTypeAutomaticSavingsReversedDetails(): ?PaymentBalanceActivit public function setTypeAutomaticSavingsReversedDetails(?PaymentBalanceActivityAutomaticSavingsReversedDetail $value = null): self { $this->typeAutomaticSavingsReversedDetails = $value; + $this->_setField('typeAutomaticSavingsReversedDetails'); return $this; } @@ -480,6 +491,7 @@ public function getTypeChargeDetails(): ?PaymentBalanceActivityChargeDetail public function setTypeChargeDetails(?PaymentBalanceActivityChargeDetail $value = null): self { $this->typeChargeDetails = $value; + $this->_setField('typeChargeDetails'); return $this; } @@ -497,6 +509,7 @@ public function getTypeDepositFeeDetails(): ?PaymentBalanceActivityDepositFeeDet public function setTypeDepositFeeDetails(?PaymentBalanceActivityDepositFeeDetail $value = null): self { $this->typeDepositFeeDetails = $value; + $this->_setField('typeDepositFeeDetails'); return $this; } @@ -514,6 +527,7 @@ public function getTypeDepositFeeReversedDetails(): ?PaymentBalanceActivityDepos public function setTypeDepositFeeReversedDetails(?PaymentBalanceActivityDepositFeeReversedDetail $value = null): self { $this->typeDepositFeeReversedDetails = $value; + $this->_setField('typeDepositFeeReversedDetails'); return $this; } @@ -531,6 +545,7 @@ public function getTypeDisputeDetails(): ?PaymentBalanceActivityDisputeDetail public function setTypeDisputeDetails(?PaymentBalanceActivityDisputeDetail $value = null): self { $this->typeDisputeDetails = $value; + $this->_setField('typeDisputeDetails'); return $this; } @@ -548,6 +563,7 @@ public function getTypeFeeDetails(): ?PaymentBalanceActivityFeeDetail public function setTypeFeeDetails(?PaymentBalanceActivityFeeDetail $value = null): self { $this->typeFeeDetails = $value; + $this->_setField('typeFeeDetails'); return $this; } @@ -565,6 +581,7 @@ public function getTypeFreeProcessingDetails(): ?PaymentBalanceActivityFreeProce public function setTypeFreeProcessingDetails(?PaymentBalanceActivityFreeProcessingDetail $value = null): self { $this->typeFreeProcessingDetails = $value; + $this->_setField('typeFreeProcessingDetails'); return $this; } @@ -582,6 +599,7 @@ public function getTypeHoldAdjustmentDetails(): ?PaymentBalanceActivityHoldAdjus public function setTypeHoldAdjustmentDetails(?PaymentBalanceActivityHoldAdjustmentDetail $value = null): self { $this->typeHoldAdjustmentDetails = $value; + $this->_setField('typeHoldAdjustmentDetails'); return $this; } @@ -599,6 +617,7 @@ public function getTypeOpenDisputeDetails(): ?PaymentBalanceActivityOpenDisputeD public function setTypeOpenDisputeDetails(?PaymentBalanceActivityOpenDisputeDetail $value = null): self { $this->typeOpenDisputeDetails = $value; + $this->_setField('typeOpenDisputeDetails'); return $this; } @@ -616,6 +635,7 @@ public function getTypeOtherDetails(): ?PaymentBalanceActivityOtherDetail public function setTypeOtherDetails(?PaymentBalanceActivityOtherDetail $value = null): self { $this->typeOtherDetails = $value; + $this->_setField('typeOtherDetails'); return $this; } @@ -633,6 +653,7 @@ public function getTypeOtherAdjustmentDetails(): ?PaymentBalanceActivityOtherAdj public function setTypeOtherAdjustmentDetails(?PaymentBalanceActivityOtherAdjustmentDetail $value = null): self { $this->typeOtherAdjustmentDetails = $value; + $this->_setField('typeOtherAdjustmentDetails'); return $this; } @@ -650,6 +671,7 @@ public function getTypeRefundDetails(): ?PaymentBalanceActivityRefundDetail public function setTypeRefundDetails(?PaymentBalanceActivityRefundDetail $value = null): self { $this->typeRefundDetails = $value; + $this->_setField('typeRefundDetails'); return $this; } @@ -667,6 +689,7 @@ public function getTypeReleaseAdjustmentDetails(): ?PaymentBalanceActivityReleas public function setTypeReleaseAdjustmentDetails(?PaymentBalanceActivityReleaseAdjustmentDetail $value = null): self { $this->typeReleaseAdjustmentDetails = $value; + $this->_setField('typeReleaseAdjustmentDetails'); return $this; } @@ -684,6 +707,7 @@ public function getTypeReserveHoldDetails(): ?PaymentBalanceActivityReserveHoldD public function setTypeReserveHoldDetails(?PaymentBalanceActivityReserveHoldDetail $value = null): self { $this->typeReserveHoldDetails = $value; + $this->_setField('typeReserveHoldDetails'); return $this; } @@ -701,6 +725,7 @@ public function getTypeReserveReleaseDetails(): ?PaymentBalanceActivityReserveRe public function setTypeReserveReleaseDetails(?PaymentBalanceActivityReserveReleaseDetail $value = null): self { $this->typeReserveReleaseDetails = $value; + $this->_setField('typeReserveReleaseDetails'); return $this; } @@ -718,6 +743,7 @@ public function getTypeSquareCapitalPaymentDetails(): ?PaymentBalanceActivitySqu public function setTypeSquareCapitalPaymentDetails(?PaymentBalanceActivitySquareCapitalPaymentDetail $value = null): self { $this->typeSquareCapitalPaymentDetails = $value; + $this->_setField('typeSquareCapitalPaymentDetails'); return $this; } @@ -735,6 +761,7 @@ public function getTypeSquareCapitalReversedPaymentDetails(): ?PaymentBalanceAct public function setTypeSquareCapitalReversedPaymentDetails(?PaymentBalanceActivitySquareCapitalReversedPaymentDetail $value = null): self { $this->typeSquareCapitalReversedPaymentDetails = $value; + $this->_setField('typeSquareCapitalReversedPaymentDetails'); return $this; } @@ -752,6 +779,7 @@ public function getTypeTaxOnFeeDetails(): ?PaymentBalanceActivityTaxOnFeeDetail public function setTypeTaxOnFeeDetails(?PaymentBalanceActivityTaxOnFeeDetail $value = null): self { $this->typeTaxOnFeeDetails = $value; + $this->_setField('typeTaxOnFeeDetails'); return $this; } @@ -769,6 +797,7 @@ public function getTypeThirdPartyFeeDetails(): ?PaymentBalanceActivityThirdParty public function setTypeThirdPartyFeeDetails(?PaymentBalanceActivityThirdPartyFeeDetail $value = null): self { $this->typeThirdPartyFeeDetails = $value; + $this->_setField('typeThirdPartyFeeDetails'); return $this; } @@ -786,6 +815,7 @@ public function getTypeThirdPartyFeeRefundDetails(): ?PaymentBalanceActivityThir public function setTypeThirdPartyFeeRefundDetails(?PaymentBalanceActivityThirdPartyFeeRefundDetail $value = null): self { $this->typeThirdPartyFeeRefundDetails = $value; + $this->_setField('typeThirdPartyFeeRefundDetails'); return $this; } @@ -803,6 +833,7 @@ public function getTypeSquarePayrollTransferDetails(): ?PaymentBalanceActivitySq public function setTypeSquarePayrollTransferDetails(?PaymentBalanceActivitySquarePayrollTransferDetail $value = null): self { $this->typeSquarePayrollTransferDetails = $value; + $this->_setField('typeSquarePayrollTransferDetails'); return $this; } @@ -820,6 +851,7 @@ public function getTypeSquarePayrollTransferReversedDetails(): ?PaymentBalanceAc public function setTypeSquarePayrollTransferReversedDetails(?PaymentBalanceActivitySquarePayrollTransferReversedDetail $value = null): self { $this->typeSquarePayrollTransferReversedDetails = $value; + $this->_setField('typeSquarePayrollTransferReversedDetails'); return $this; } diff --git a/src/Types/PayoutFailedEvent.php b/src/Types/PayoutFailedEvent.php index 796f87d6..279aad81 100644 --- a/src/Types/PayoutFailedEvent.php +++ b/src/Types/PayoutFailedEvent.php @@ -81,6 +81,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -98,6 +99,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -115,6 +117,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -132,6 +135,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -149,6 +153,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -166,6 +171,7 @@ public function getData(): ?PayoutFailedEventData public function setData(?PayoutFailedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/PayoutFailedEventData.php b/src/Types/PayoutFailedEventData.php index 195480bd..35a8da38 100644 --- a/src/Types/PayoutFailedEventData.php +++ b/src/Types/PayoutFailedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?PayoutFailedEventObject public function setObject(?PayoutFailedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/PayoutFailedEventObject.php b/src/Types/PayoutFailedEventObject.php index 0dac3bd4..c89ae457 100644 --- a/src/Types/PayoutFailedEventObject.php +++ b/src/Types/PayoutFailedEventObject.php @@ -38,6 +38,7 @@ public function getPayout(): ?Payout public function setPayout(?Payout $value = null): self { $this->payout = $value; + $this->_setField('payout'); return $this; } diff --git a/src/Types/PayoutFee.php b/src/Types/PayoutFee.php index 3961a4ab..2ff0571f 100644 --- a/src/Types/PayoutFee.php +++ b/src/Types/PayoutFee.php @@ -60,6 +60,7 @@ public function getAmountMoney(): ?Money public function setAmountMoney(?Money $value = null): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } @@ -77,6 +78,7 @@ public function getEffectiveAt(): ?string public function setEffectiveAt(?string $value = null): self { $this->effectiveAt = $value; + $this->_setField('effectiveAt'); return $this; } @@ -94,6 +96,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } diff --git a/src/Types/PayoutPaidEvent.php b/src/Types/PayoutPaidEvent.php index 2c284874..9fda71c6 100644 --- a/src/Types/PayoutPaidEvent.php +++ b/src/Types/PayoutPaidEvent.php @@ -81,6 +81,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -98,6 +99,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -115,6 +117,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -132,6 +135,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -149,6 +153,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -166,6 +171,7 @@ public function getData(): ?PayoutPaidEventData public function setData(?PayoutPaidEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/PayoutPaidEventData.php b/src/Types/PayoutPaidEventData.php index 70502d6f..b4d66ece 100644 --- a/src/Types/PayoutPaidEventData.php +++ b/src/Types/PayoutPaidEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?PayoutPaidEventObject public function setObject(?PayoutPaidEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/PayoutPaidEventObject.php b/src/Types/PayoutPaidEventObject.php index 0b311af0..546ee3f9 100644 --- a/src/Types/PayoutPaidEventObject.php +++ b/src/Types/PayoutPaidEventObject.php @@ -38,6 +38,7 @@ public function getPayout(): ?Payout public function setPayout(?Payout $value = null): self { $this->payout = $value; + $this->_setField('payout'); return $this; } diff --git a/src/Types/PayoutSentEvent.php b/src/Types/PayoutSentEvent.php index 3934b954..80350529 100644 --- a/src/Types/PayoutSentEvent.php +++ b/src/Types/PayoutSentEvent.php @@ -81,6 +81,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -98,6 +99,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -115,6 +117,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -132,6 +135,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -149,6 +153,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -166,6 +171,7 @@ public function getData(): ?PayoutSentEventData public function setData(?PayoutSentEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/PayoutSentEventData.php b/src/Types/PayoutSentEventData.php index fff77168..ff4f3204 100644 --- a/src/Types/PayoutSentEventData.php +++ b/src/Types/PayoutSentEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?PayoutSentEventObject public function setObject(?PayoutSentEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/PayoutSentEventObject.php b/src/Types/PayoutSentEventObject.php index 6c61374a..7bb1b759 100644 --- a/src/Types/PayoutSentEventObject.php +++ b/src/Types/PayoutSentEventObject.php @@ -38,6 +38,7 @@ public function getPayout(): ?Payout public function setPayout(?Payout $value = null): self { $this->payout = $value; + $this->_setField('payout'); return $this; } diff --git a/src/Types/Phase.php b/src/Types/Phase.php index 091a557d..9622c1c4 100644 --- a/src/Types/Phase.php +++ b/src/Types/Phase.php @@ -65,6 +65,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -82,6 +83,7 @@ public function getOrdinal(): ?int public function setOrdinal(?int $value = null): self { $this->ordinal = $value; + $this->_setField('ordinal'); return $this; } @@ -99,6 +101,7 @@ public function getOrderTemplateId(): ?string public function setOrderTemplateId(?string $value = null): self { $this->orderTemplateId = $value; + $this->_setField('orderTemplateId'); return $this; } @@ -116,6 +119,7 @@ public function getPlanPhaseUid(): ?string public function setPlanPhaseUid(?string $value = null): self { $this->planPhaseUid = $value; + $this->_setField('planPhaseUid'); return $this; } diff --git a/src/Types/PhaseInput.php b/src/Types/PhaseInput.php index 0e502851..8ac3ff6b 100644 --- a/src/Types/PhaseInput.php +++ b/src/Types/PhaseInput.php @@ -49,6 +49,7 @@ public function getOrdinal(): int public function setOrdinal(int $value): self { $this->ordinal = $value; + $this->_setField('ordinal'); return $this; } @@ -66,6 +67,7 @@ public function getOrderTemplateId(): ?string public function setOrderTemplateId(?string $value = null): self { $this->orderTemplateId = $value; + $this->_setField('orderTemplateId'); return $this; } diff --git a/src/Types/PrePopulatedData.php b/src/Types/PrePopulatedData.php index 37ab791e..faa89daa 100644 --- a/src/Types/PrePopulatedData.php +++ b/src/Types/PrePopulatedData.php @@ -59,6 +59,7 @@ public function getBuyerEmail(): ?string public function setBuyerEmail(?string $value = null): self { $this->buyerEmail = $value; + $this->_setField('buyerEmail'); return $this; } @@ -76,6 +77,7 @@ public function getBuyerPhoneNumber(): ?string public function setBuyerPhoneNumber(?string $value = null): self { $this->buyerPhoneNumber = $value; + $this->_setField('buyerPhoneNumber'); return $this; } @@ -93,6 +95,7 @@ public function getBuyerAddress(): ?Address public function setBuyerAddress(?Address $value = null): self { $this->buyerAddress = $value; + $this->_setField('buyerAddress'); return $this; } diff --git a/src/Types/ProcessingFee.php b/src/Types/ProcessingFee.php index 260966ab..7aa74f90 100644 --- a/src/Types/ProcessingFee.php +++ b/src/Types/ProcessingFee.php @@ -62,6 +62,7 @@ public function getEffectiveAt(): ?string public function setEffectiveAt(?string $value = null): self { $this->effectiveAt = $value; + $this->_setField('effectiveAt'); return $this; } @@ -79,6 +80,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -96,6 +98,7 @@ public function getAmountMoney(): ?Money public function setAmountMoney(?Money $value = null): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } diff --git a/src/Types/PublishInvoiceResponse.php b/src/Types/PublishInvoiceResponse.php index f09e69de..23a7bfcd 100644 --- a/src/Types/PublishInvoiceResponse.php +++ b/src/Types/PublishInvoiceResponse.php @@ -50,6 +50,7 @@ public function getInvoice(): ?Invoice public function setInvoice(?Invoice $value = null): self { $this->invoice = $value; + $this->_setField('invoice'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/PublishScheduledShiftResponse.php b/src/Types/PublishScheduledShiftResponse.php index 9e5d9b1d..54194813 100644 --- a/src/Types/PublishScheduledShiftResponse.php +++ b/src/Types/PublishScheduledShiftResponse.php @@ -51,6 +51,7 @@ public function getScheduledShift(): ?ScheduledShift public function setScheduledShift(?ScheduledShift $value = null): self { $this->scheduledShift = $value; + $this->_setField('scheduledShift'); return $this; } @@ -68,6 +69,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/QrCodeOptions.php b/src/Types/QrCodeOptions.php index 43300a65..ee5bdde4 100644 --- a/src/Types/QrCodeOptions.php +++ b/src/Types/QrCodeOptions.php @@ -60,6 +60,7 @@ public function getTitle(): string public function setTitle(string $value): self { $this->title = $value; + $this->_setField('title'); return $this; } @@ -77,6 +78,7 @@ public function getBody(): string public function setBody(string $value): self { $this->body = $value; + $this->_setField('body'); return $this; } @@ -94,6 +96,7 @@ public function getBarcodeContents(): string public function setBarcodeContents(string $value): self { $this->barcodeContents = $value; + $this->_setField('barcodeContents'); return $this; } diff --git a/src/Types/QuickPay.php b/src/Types/QuickPay.php index 1c873b23..86752f7f 100644 --- a/src/Types/QuickPay.php +++ b/src/Types/QuickPay.php @@ -59,6 +59,7 @@ public function getName(): string public function setName(string $value): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -76,6 +77,7 @@ public function getPriceMoney(): Money public function setPriceMoney(Money $value): self { $this->priceMoney = $value; + $this->_setField('priceMoney'); return $this; } @@ -93,6 +95,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } diff --git a/src/Types/Range.php b/src/Types/Range.php index 5483de2b..5e281464 100644 --- a/src/Types/Range.php +++ b/src/Types/Range.php @@ -55,6 +55,7 @@ public function getMin(): ?string public function setMin(?string $value = null): self { $this->min = $value; + $this->_setField('min'); return $this; } @@ -72,6 +73,7 @@ public function getMax(): ?string public function setMax(?string $value = null): self { $this->max = $value; + $this->_setField('max'); return $this; } diff --git a/src/Types/ReceiptOptions.php b/src/Types/ReceiptOptions.php index 9e4c80c1..3189c9da 100644 --- a/src/Types/ReceiptOptions.php +++ b/src/Types/ReceiptOptions.php @@ -64,6 +64,7 @@ public function getPaymentId(): string public function setPaymentId(string $value): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } @@ -81,6 +82,7 @@ public function getPrintOnly(): ?bool public function setPrintOnly(?bool $value = null): self { $this->printOnly = $value; + $this->_setField('printOnly'); return $this; } @@ -98,6 +100,7 @@ public function getIsDuplicate(): ?bool public function setIsDuplicate(?bool $value = null): self { $this->isDuplicate = $value; + $this->_setField('isDuplicate'); return $this; } diff --git a/src/Types/ReceiveTransferOrderResponse.php b/src/Types/ReceiveTransferOrderResponse.php index a7c5a674..a2b2cca4 100644 --- a/src/Types/ReceiveTransferOrderResponse.php +++ b/src/Types/ReceiveTransferOrderResponse.php @@ -50,6 +50,7 @@ public function getTransferOrder(): ?TransferOrder public function setTransferOrder(?TransferOrder $value = null): self { $this->transferOrder = $value; + $this->_setField('transferOrder'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/RedeemLoyaltyRewardResponse.php b/src/Types/RedeemLoyaltyRewardResponse.php index 19b63261..7442bfd8 100644 --- a/src/Types/RedeemLoyaltyRewardResponse.php +++ b/src/Types/RedeemLoyaltyRewardResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getEvent(): ?LoyaltyEvent public function setEvent(?LoyaltyEvent $value = null): self { $this->event = $value; + $this->_setField('event'); return $this; } diff --git a/src/Types/Reference.php b/src/Types/Reference.php index fbe70175..cacc7a35 100644 --- a/src/Types/Reference.php +++ b/src/Types/Reference.php @@ -49,6 +49,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -66,6 +67,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } diff --git a/src/Types/Refund.php b/src/Types/Refund.php index 5f505cc9..ecc63df0 100644 --- a/src/Types/Refund.php +++ b/src/Types/Refund.php @@ -121,6 +121,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -138,6 +139,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -155,6 +157,7 @@ public function getTransactionId(): ?string public function setTransactionId(?string $value = null): self { $this->transactionId = $value; + $this->_setField('transactionId'); return $this; } @@ -172,6 +175,7 @@ public function getTenderId(): ?string public function setTenderId(?string $value = null): self { $this->tenderId = $value; + $this->_setField('tenderId'); return $this; } @@ -189,6 +193,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -206,6 +211,7 @@ public function getReason(): string public function setReason(string $value): self { $this->reason = $value; + $this->_setField('reason'); return $this; } @@ -223,6 +229,7 @@ public function getAmountMoney(): Money public function setAmountMoney(Money $value): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } @@ -240,6 +247,7 @@ public function getStatus(): string public function setStatus(string $value): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -257,6 +265,7 @@ public function getProcessingFeeMoney(): ?Money public function setProcessingFeeMoney(?Money $value = null): self { $this->processingFeeMoney = $value; + $this->_setField('processingFeeMoney'); return $this; } @@ -274,6 +283,7 @@ public function getAdditionalRecipients(): ?array public function setAdditionalRecipients(?array $value = null): self { $this->additionalRecipients = $value; + $this->_setField('additionalRecipients'); return $this; } diff --git a/src/Types/RefundCreatedEvent.php b/src/Types/RefundCreatedEvent.php index 0a3ccc29..c5f6fcb3 100644 --- a/src/Types/RefundCreatedEvent.php +++ b/src/Types/RefundCreatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?RefundCreatedEventData public function setData(?RefundCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/RefundCreatedEventData.php b/src/Types/RefundCreatedEventData.php index 32ab6515..3367b974 100644 --- a/src/Types/RefundCreatedEventData.php +++ b/src/Types/RefundCreatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?RefundCreatedEventObject public function setObject(?RefundCreatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/RefundCreatedEventObject.php b/src/Types/RefundCreatedEventObject.php index 296e6c45..b4985bc8 100644 --- a/src/Types/RefundCreatedEventObject.php +++ b/src/Types/RefundCreatedEventObject.php @@ -38,6 +38,7 @@ public function getRefund(): ?PaymentRefund public function setRefund(?PaymentRefund $value = null): self { $this->refund = $value; + $this->_setField('refund'); return $this; } diff --git a/src/Types/RefundPaymentResponse.php b/src/Types/RefundPaymentResponse.php index f4590170..bc6df2f7 100644 --- a/src/Types/RefundPaymentResponse.php +++ b/src/Types/RefundPaymentResponse.php @@ -54,6 +54,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -71,6 +72,7 @@ public function getRefund(): ?PaymentRefund public function setRefund(?PaymentRefund $value = null): self { $this->refund = $value; + $this->_setField('refund'); return $this; } diff --git a/src/Types/RefundUpdatedEvent.php b/src/Types/RefundUpdatedEvent.php index 27284d8c..1c6a5324 100644 --- a/src/Types/RefundUpdatedEvent.php +++ b/src/Types/RefundUpdatedEvent.php @@ -74,6 +74,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -91,6 +92,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -108,6 +110,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -125,6 +128,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -142,6 +146,7 @@ public function getData(): ?RefundUpdatedEventData public function setData(?RefundUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/RefundUpdatedEventData.php b/src/Types/RefundUpdatedEventData.php index bbead354..19e9cd27 100644 --- a/src/Types/RefundUpdatedEventData.php +++ b/src/Types/RefundUpdatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?RefundUpdatedEventObject public function setObject(?RefundUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/RefundUpdatedEventObject.php b/src/Types/RefundUpdatedEventObject.php index 6d47328a..aaf22a3e 100644 --- a/src/Types/RefundUpdatedEventObject.php +++ b/src/Types/RefundUpdatedEventObject.php @@ -38,6 +38,7 @@ public function getRefund(): ?PaymentRefund public function setRefund(?PaymentRefund $value = null): self { $this->refund = $value; + $this->_setField('refund'); return $this; } diff --git a/src/Types/RegisterDomainResponse.php b/src/Types/RegisterDomainResponse.php index 155c2214..8d01c24a 100644 --- a/src/Types/RegisterDomainResponse.php +++ b/src/Types/RegisterDomainResponse.php @@ -58,6 +58,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -75,6 +76,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } diff --git a/src/Types/RemoveGroupFromCustomerResponse.php b/src/Types/RemoveGroupFromCustomerResponse.php index 7fd15743..7d1a7880 100644 --- a/src/Types/RemoveGroupFromCustomerResponse.php +++ b/src/Types/RemoveGroupFromCustomerResponse.php @@ -44,6 +44,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/ResumeSubscriptionResponse.php b/src/Types/ResumeSubscriptionResponse.php index 5789a85b..2948f4ee 100644 --- a/src/Types/ResumeSubscriptionResponse.php +++ b/src/Types/ResumeSubscriptionResponse.php @@ -59,6 +59,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -76,6 +77,7 @@ public function getSubscription(): ?Subscription public function setSubscription(?Subscription $value = null): self { $this->subscription = $value; + $this->_setField('subscription'); return $this; } @@ -93,6 +95,7 @@ public function getActions(): ?array public function setActions(?array $value = null): self { $this->actions = $value; + $this->_setField('actions'); return $this; } diff --git a/src/Types/RetrieveBookingCustomAttributeDefinitionResponse.php b/src/Types/RetrieveBookingCustomAttributeDefinitionResponse.php index 4c416083..55bd9c74 100644 --- a/src/Types/RetrieveBookingCustomAttributeDefinitionResponse.php +++ b/src/Types/RetrieveBookingCustomAttributeDefinitionResponse.php @@ -51,6 +51,7 @@ public function getCustomAttributeDefinition(): ?CustomAttributeDefinition public function setCustomAttributeDefinition(?CustomAttributeDefinition $value = null): self { $this->customAttributeDefinition = $value; + $this->_setField('customAttributeDefinition'); return $this; } @@ -68,6 +69,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/RetrieveBookingCustomAttributeResponse.php b/src/Types/RetrieveBookingCustomAttributeResponse.php index 92430309..ba0b564d 100644 --- a/src/Types/RetrieveBookingCustomAttributeResponse.php +++ b/src/Types/RetrieveBookingCustomAttributeResponse.php @@ -54,6 +54,7 @@ public function getCustomAttribute(): ?CustomAttribute public function setCustomAttribute(?CustomAttribute $value = null): self { $this->customAttribute = $value; + $this->_setField('customAttribute'); return $this; } @@ -71,6 +72,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/RetrieveChannelResponse.php b/src/Types/RetrieveChannelResponse.php index 0e606443..29a46e1c 100644 --- a/src/Types/RetrieveChannelResponse.php +++ b/src/Types/RetrieveChannelResponse.php @@ -47,6 +47,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -64,6 +65,7 @@ public function getChannel(): ?Channel public function setChannel(?Channel $value = null): self { $this->channel = $value; + $this->_setField('channel'); return $this; } diff --git a/src/Types/RetrieveJobResponse.php b/src/Types/RetrieveJobResponse.php index 7d850f87..02e76e12 100644 --- a/src/Types/RetrieveJobResponse.php +++ b/src/Types/RetrieveJobResponse.php @@ -51,6 +51,7 @@ public function getJob(): ?Job public function setJob(?Job $value = null): self { $this->job = $value; + $this->_setField('job'); return $this; } @@ -68,6 +69,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/RetrieveLocationBookingProfileResponse.php b/src/Types/RetrieveLocationBookingProfileResponse.php index 7d9edb06..25688e10 100644 --- a/src/Types/RetrieveLocationBookingProfileResponse.php +++ b/src/Types/RetrieveLocationBookingProfileResponse.php @@ -47,6 +47,7 @@ public function getLocationBookingProfile(): ?LocationBookingProfile public function setLocationBookingProfile(?LocationBookingProfile $value = null): self { $this->locationBookingProfile = $value; + $this->_setField('locationBookingProfile'); return $this; } @@ -64,6 +65,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/RetrieveLocationCustomAttributeDefinitionResponse.php b/src/Types/RetrieveLocationCustomAttributeDefinitionResponse.php index 8e626394..b957fbeb 100644 --- a/src/Types/RetrieveLocationCustomAttributeDefinitionResponse.php +++ b/src/Types/RetrieveLocationCustomAttributeDefinitionResponse.php @@ -51,6 +51,7 @@ public function getCustomAttributeDefinition(): ?CustomAttributeDefinition public function setCustomAttributeDefinition(?CustomAttributeDefinition $value = null): self { $this->customAttributeDefinition = $value; + $this->_setField('customAttributeDefinition'); return $this; } @@ -68,6 +69,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/RetrieveLocationCustomAttributeResponse.php b/src/Types/RetrieveLocationCustomAttributeResponse.php index 1defdbd5..80c53920 100644 --- a/src/Types/RetrieveLocationCustomAttributeResponse.php +++ b/src/Types/RetrieveLocationCustomAttributeResponse.php @@ -54,6 +54,7 @@ public function getCustomAttribute(): ?CustomAttribute public function setCustomAttribute(?CustomAttribute $value = null): self { $this->customAttribute = $value; + $this->_setField('customAttribute'); return $this; } @@ -71,6 +72,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/RetrieveLocationSettingsResponse.php b/src/Types/RetrieveLocationSettingsResponse.php index fe9ec7bd..e3d5a33c 100644 --- a/src/Types/RetrieveLocationSettingsResponse.php +++ b/src/Types/RetrieveLocationSettingsResponse.php @@ -47,6 +47,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -64,6 +65,7 @@ public function getLocationSettings(): ?CheckoutLocationSettings public function setLocationSettings(?CheckoutLocationSettings $value = null): self { $this->locationSettings = $value; + $this->_setField('locationSettings'); return $this; } diff --git a/src/Types/RetrieveMerchantCustomAttributeDefinitionResponse.php b/src/Types/RetrieveMerchantCustomAttributeDefinitionResponse.php index 49049995..05d64c7a 100644 --- a/src/Types/RetrieveMerchantCustomAttributeDefinitionResponse.php +++ b/src/Types/RetrieveMerchantCustomAttributeDefinitionResponse.php @@ -51,6 +51,7 @@ public function getCustomAttributeDefinition(): ?CustomAttributeDefinition public function setCustomAttributeDefinition(?CustomAttributeDefinition $value = null): self { $this->customAttributeDefinition = $value; + $this->_setField('customAttributeDefinition'); return $this; } @@ -68,6 +69,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/RetrieveMerchantCustomAttributeResponse.php b/src/Types/RetrieveMerchantCustomAttributeResponse.php index 347d02f9..c4215069 100644 --- a/src/Types/RetrieveMerchantCustomAttributeResponse.php +++ b/src/Types/RetrieveMerchantCustomAttributeResponse.php @@ -54,6 +54,7 @@ public function getCustomAttribute(): ?CustomAttribute public function setCustomAttribute(?CustomAttribute $value = null): self { $this->customAttribute = $value; + $this->_setField('customAttribute'); return $this; } @@ -71,6 +72,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/RetrieveMerchantSettingsResponse.php b/src/Types/RetrieveMerchantSettingsResponse.php index 1ebb94b8..880c7c0e 100644 --- a/src/Types/RetrieveMerchantSettingsResponse.php +++ b/src/Types/RetrieveMerchantSettingsResponse.php @@ -47,6 +47,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -64,6 +65,7 @@ public function getMerchantSettings(): ?CheckoutMerchantSettings public function setMerchantSettings(?CheckoutMerchantSettings $value = null): self { $this->merchantSettings = $value; + $this->_setField('merchantSettings'); return $this; } diff --git a/src/Types/RetrieveOrderCustomAttributeDefinitionResponse.php b/src/Types/RetrieveOrderCustomAttributeDefinitionResponse.php index 4afea71f..002ca62c 100644 --- a/src/Types/RetrieveOrderCustomAttributeDefinitionResponse.php +++ b/src/Types/RetrieveOrderCustomAttributeDefinitionResponse.php @@ -50,6 +50,7 @@ public function getCustomAttributeDefinition(): ?CustomAttributeDefinition public function setCustomAttributeDefinition(?CustomAttributeDefinition $value = null): self { $this->customAttributeDefinition = $value; + $this->_setField('customAttributeDefinition'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/RetrieveOrderCustomAttributeResponse.php b/src/Types/RetrieveOrderCustomAttributeResponse.php index 1ec5b541..718eef54 100644 --- a/src/Types/RetrieveOrderCustomAttributeResponse.php +++ b/src/Types/RetrieveOrderCustomAttributeResponse.php @@ -50,6 +50,7 @@ public function getCustomAttribute(): ?CustomAttribute public function setCustomAttribute(?CustomAttribute $value = null): self { $this->customAttribute = $value; + $this->_setField('customAttribute'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/RetrieveScheduledShiftResponse.php b/src/Types/RetrieveScheduledShiftResponse.php index b64525b6..41a5b5f3 100644 --- a/src/Types/RetrieveScheduledShiftResponse.php +++ b/src/Types/RetrieveScheduledShiftResponse.php @@ -51,6 +51,7 @@ public function getScheduledShift(): ?ScheduledShift public function setScheduledShift(?ScheduledShift $value = null): self { $this->scheduledShift = $value; + $this->_setField('scheduledShift'); return $this; } @@ -68,6 +69,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/RetrieveTimecardResponse.php b/src/Types/RetrieveTimecardResponse.php index aea2e234..ac4106dd 100644 --- a/src/Types/RetrieveTimecardResponse.php +++ b/src/Types/RetrieveTimecardResponse.php @@ -52,6 +52,7 @@ public function getTimecard(): ?Timecard public function setTimecard(?Timecard $value = null): self { $this->timecard = $value; + $this->_setField('timecard'); return $this; } @@ -69,6 +70,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/RetrieveTokenStatusResponse.php b/src/Types/RetrieveTokenStatusResponse.php index a0007268..0eb7e556 100644 --- a/src/Types/RetrieveTokenStatusResponse.php +++ b/src/Types/RetrieveTokenStatusResponse.php @@ -75,6 +75,7 @@ public function getScopes(): ?array public function setScopes(?array $value = null): self { $this->scopes = $value; + $this->_setField('scopes'); return $this; } @@ -92,6 +93,7 @@ public function getExpiresAt(): ?string public function setExpiresAt(?string $value = null): self { $this->expiresAt = $value; + $this->_setField('expiresAt'); return $this; } @@ -109,6 +111,7 @@ public function getClientId(): ?string public function setClientId(?string $value = null): self { $this->clientId = $value; + $this->_setField('clientId'); return $this; } @@ -126,6 +129,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -143,6 +147,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/RetrieveTransferOrderResponse.php b/src/Types/RetrieveTransferOrderResponse.php index e9b84f11..c7b008c3 100644 --- a/src/Types/RetrieveTransferOrderResponse.php +++ b/src/Types/RetrieveTransferOrderResponse.php @@ -50,6 +50,7 @@ public function getTransferOrder(): ?TransferOrder public function setTransferOrder(?TransferOrder $value = null): self { $this->transferOrder = $value; + $this->_setField('transferOrder'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/RevokeTokenResponse.php b/src/Types/RevokeTokenResponse.php index 5801b3c7..5c60dab9 100644 --- a/src/Types/RevokeTokenResponse.php +++ b/src/Types/RevokeTokenResponse.php @@ -47,6 +47,7 @@ public function getSuccess(): ?bool public function setSuccess(?bool $value = null): self { $this->success = $value; + $this->_setField('success'); return $this; } @@ -64,6 +65,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/RiskEvaluation.php b/src/Types/RiskEvaluation.php index 0850c7db..1d655d54 100644 --- a/src/Types/RiskEvaluation.php +++ b/src/Types/RiskEvaluation.php @@ -57,6 +57,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -74,6 +75,7 @@ public function getRiskLevel(): ?string public function setRiskLevel(?string $value = null): self { $this->riskLevel = $value; + $this->_setField('riskLevel'); return $this; } diff --git a/src/Types/SaveCardOptions.php b/src/Types/SaveCardOptions.php index c5c7491e..18ec2d3d 100644 --- a/src/Types/SaveCardOptions.php +++ b/src/Types/SaveCardOptions.php @@ -61,6 +61,7 @@ public function getCustomerId(): string public function setCustomerId(string $value): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -78,6 +79,7 @@ public function getCardId(): ?string public function setCardId(?string $value = null): self { $this->cardId = $value; + $this->_setField('cardId'); return $this; } @@ -95,6 +97,7 @@ public function getReferenceId(): ?string public function setReferenceId(?string $value = null): self { $this->referenceId = $value; + $this->_setField('referenceId'); return $this; } diff --git a/src/Types/ScheduledShift.php b/src/Types/ScheduledShift.php index 05570d1a..43ed2b89 100644 --- a/src/Types/ScheduledShift.php +++ b/src/Types/ScheduledShift.php @@ -93,6 +93,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -110,6 +111,7 @@ public function getDraftShiftDetails(): ?ScheduledShiftDetails public function setDraftShiftDetails(?ScheduledShiftDetails $value = null): self { $this->draftShiftDetails = $value; + $this->_setField('draftShiftDetails'); return $this; } @@ -127,6 +129,7 @@ public function getPublishedShiftDetails(): ?ScheduledShiftDetails public function setPublishedShiftDetails(?ScheduledShiftDetails $value = null): self { $this->publishedShiftDetails = $value; + $this->_setField('publishedShiftDetails'); return $this; } @@ -144,6 +147,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -161,6 +165,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -178,6 +183,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } diff --git a/src/Types/ScheduledShiftDetails.php b/src/Types/ScheduledShiftDetails.php index dda2955d..414a6092 100644 --- a/src/Types/ScheduledShiftDetails.php +++ b/src/Types/ScheduledShiftDetails.php @@ -113,6 +113,7 @@ public function getTeamMemberId(): ?string public function setTeamMemberId(?string $value = null): self { $this->teamMemberId = $value; + $this->_setField('teamMemberId'); return $this; } @@ -130,6 +131,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -147,6 +149,7 @@ public function getJobId(): ?string public function setJobId(?string $value = null): self { $this->jobId = $value; + $this->_setField('jobId'); return $this; } @@ -164,6 +167,7 @@ public function getStartAt(): ?string public function setStartAt(?string $value = null): self { $this->startAt = $value; + $this->_setField('startAt'); return $this; } @@ -181,6 +185,7 @@ public function getEndAt(): ?string public function setEndAt(?string $value = null): self { $this->endAt = $value; + $this->_setField('endAt'); return $this; } @@ -198,6 +203,7 @@ public function getNotes(): ?string public function setNotes(?string $value = null): self { $this->notes = $value; + $this->_setField('notes'); return $this; } @@ -215,6 +221,7 @@ public function getIsDeleted(): ?bool public function setIsDeleted(?bool $value = null): self { $this->isDeleted = $value; + $this->_setField('isDeleted'); return $this; } @@ -232,6 +239,7 @@ public function getTimezone(): ?string public function setTimezone(?string $value = null): self { $this->timezone = $value; + $this->_setField('timezone'); return $this; } diff --git a/src/Types/ScheduledShiftFilter.php b/src/Types/ScheduledShiftFilter.php index c8a64fa4..66a017a0 100644 --- a/src/Types/ScheduledShiftFilter.php +++ b/src/Types/ScheduledShiftFilter.php @@ -123,6 +123,7 @@ public function getLocationIds(): ?array public function setLocationIds(?array $value = null): self { $this->locationIds = $value; + $this->_setField('locationIds'); return $this; } @@ -140,6 +141,7 @@ public function getStart(): ?TimeRange public function setStart(?TimeRange $value = null): self { $this->start = $value; + $this->_setField('start'); return $this; } @@ -157,6 +159,7 @@ public function getEnd(): ?TimeRange public function setEnd(?TimeRange $value = null): self { $this->end = $value; + $this->_setField('end'); return $this; } @@ -174,6 +177,7 @@ public function getWorkday(): ?ScheduledShiftWorkday public function setWorkday(?ScheduledShiftWorkday $value = null): self { $this->workday = $value; + $this->_setField('workday'); return $this; } @@ -191,6 +195,7 @@ public function getTeamMemberIds(): ?array public function setTeamMemberIds(?array $value = null): self { $this->teamMemberIds = $value; + $this->_setField('teamMemberIds'); return $this; } @@ -208,6 +213,7 @@ public function getAssignmentStatus(): ?string public function setAssignmentStatus(?string $value = null): self { $this->assignmentStatus = $value; + $this->_setField('assignmentStatus'); return $this; } @@ -225,6 +231,7 @@ public function getScheduledShiftStatuses(): ?array public function setScheduledShiftStatuses(?array $value = null): self { $this->scheduledShiftStatuses = $value; + $this->_setField('scheduledShiftStatuses'); return $this; } diff --git a/src/Types/ScheduledShiftQuery.php b/src/Types/ScheduledShiftQuery.php index 335ffdf1..99ee981c 100644 --- a/src/Types/ScheduledShiftQuery.php +++ b/src/Types/ScheduledShiftQuery.php @@ -50,6 +50,7 @@ public function getFilter(): ?ScheduledShiftFilter public function setFilter(?ScheduledShiftFilter $value = null): self { $this->filter = $value; + $this->_setField('filter'); return $this; } @@ -67,6 +68,7 @@ public function getSort(): ?ScheduledShiftSort public function setSort(?ScheduledShiftSort $value = null): self { $this->sort = $value; + $this->_setField('sort'); return $this; } diff --git a/src/Types/ScheduledShiftSort.php b/src/Types/ScheduledShiftSort.php index 6210002f..d4ddbdea 100644 --- a/src/Types/ScheduledShiftSort.php +++ b/src/Types/ScheduledShiftSort.php @@ -56,6 +56,7 @@ public function getField(): ?string public function setField(?string $value = null): self { $this->field = $value; + $this->_setField('field'); return $this; } @@ -73,6 +74,7 @@ public function getOrder(): ?string public function setOrder(?string $value = null): self { $this->order = $value; + $this->_setField('order'); return $this; } diff --git a/src/Types/ScheduledShiftWorkday.php b/src/Types/ScheduledShiftWorkday.php index f89980aa..bd7cfdd6 100644 --- a/src/Types/ScheduledShiftWorkday.php +++ b/src/Types/ScheduledShiftWorkday.php @@ -66,6 +66,7 @@ public function getDateRange(): ?DateRange public function setDateRange(?DateRange $value = null): self { $this->dateRange = $value; + $this->_setField('dateRange'); return $this; } @@ -83,6 +84,7 @@ public function getMatchScheduledShiftsBy(): ?string public function setMatchScheduledShiftsBy(?string $value = null): self { $this->matchScheduledShiftsBy = $value; + $this->_setField('matchScheduledShiftsBy'); return $this; } @@ -100,6 +102,7 @@ public function getDefaultTimezone(): ?string public function setDefaultTimezone(?string $value = null): self { $this->defaultTimezone = $value; + $this->_setField('defaultTimezone'); return $this; } diff --git a/src/Types/SearchAvailabilityFilter.php b/src/Types/SearchAvailabilityFilter.php index 1531f735..c481ff18 100644 --- a/src/Types/SearchAvailabilityFilter.php +++ b/src/Types/SearchAvailabilityFilter.php @@ -82,6 +82,7 @@ public function getStartAtRange(): TimeRange public function setStartAtRange(TimeRange $value): self { $this->startAtRange = $value; + $this->_setField('startAtRange'); return $this; } @@ -99,6 +100,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -116,6 +118,7 @@ public function getSegmentFilters(): ?array public function setSegmentFilters(?array $value = null): self { $this->segmentFilters = $value; + $this->_setField('segmentFilters'); return $this; } @@ -133,6 +136,7 @@ public function getBookingId(): ?string public function setBookingId(?string $value = null): self { $this->bookingId = $value; + $this->_setField('bookingId'); return $this; } diff --git a/src/Types/SearchAvailabilityQuery.php b/src/Types/SearchAvailabilityQuery.php index 1e016aaf..d99a206c 100644 --- a/src/Types/SearchAvailabilityQuery.php +++ b/src/Types/SearchAvailabilityQuery.php @@ -41,6 +41,7 @@ public function getFilter(): SearchAvailabilityFilter public function setFilter(SearchAvailabilityFilter $value): self { $this->filter = $value; + $this->_setField('filter'); return $this; } diff --git a/src/Types/SearchAvailabilityResponse.php b/src/Types/SearchAvailabilityResponse.php index 4b12109a..c7a51eca 100644 --- a/src/Types/SearchAvailabilityResponse.php +++ b/src/Types/SearchAvailabilityResponse.php @@ -47,6 +47,7 @@ public function getAvailabilities(): ?array public function setAvailabilities(?array $value = null): self { $this->availabilities = $value; + $this->_setField('availabilities'); return $this; } @@ -64,6 +65,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/SearchCatalogItemsResponse.php b/src/Types/SearchCatalogItemsResponse.php index 27ef491a..4ab2a7b0 100644 --- a/src/Types/SearchCatalogItemsResponse.php +++ b/src/Types/SearchCatalogItemsResponse.php @@ -66,6 +66,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -83,6 +84,7 @@ public function getItems(): ?array public function setItems(?array $value = null): self { $this->items = $value; + $this->_setField('items'); return $this; } @@ -100,6 +102,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -117,6 +120,7 @@ public function getMatchedVariationIds(): ?array public function setMatchedVariationIds(?array $value = null): self { $this->matchedVariationIds = $value; + $this->_setField('matchedVariationIds'); return $this; } diff --git a/src/Types/SearchCatalogObjectsResponse.php b/src/Types/SearchCatalogObjectsResponse.php index 637e3235..bc308de9 100644 --- a/src/Types/SearchCatalogObjectsResponse.php +++ b/src/Types/SearchCatalogObjectsResponse.php @@ -77,6 +77,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -94,6 +95,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -111,6 +113,7 @@ public function getObjects(): ?array public function setObjects(?array $value = null): self { $this->objects = $value; + $this->_setField('objects'); return $this; } @@ -128,6 +131,7 @@ public function getRelatedObjects(): ?array public function setRelatedObjects(?array $value = null): self { $this->relatedObjects = $value; + $this->_setField('relatedObjects'); return $this; } @@ -145,6 +149,7 @@ public function getLatestTime(): ?string public function setLatestTime(?string $value = null): self { $this->latestTime = $value; + $this->_setField('latestTime'); return $this; } diff --git a/src/Types/SearchCustomersResponse.php b/src/Types/SearchCustomersResponse.php index 919fb845..58e7719c 100644 --- a/src/Types/SearchCustomersResponse.php +++ b/src/Types/SearchCustomersResponse.php @@ -84,6 +84,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -101,6 +102,7 @@ public function getCustomers(): ?array public function setCustomers(?array $value = null): self { $this->customers = $value; + $this->_setField('customers'); return $this; } @@ -118,6 +120,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -135,6 +138,7 @@ public function getCount(): ?int public function setCount(?int $value = null): self { $this->count = $value; + $this->_setField('count'); return $this; } diff --git a/src/Types/SearchEventsFilter.php b/src/Types/SearchEventsFilter.php index 8379ded9..4a0f668b 100644 --- a/src/Types/SearchEventsFilter.php +++ b/src/Types/SearchEventsFilter.php @@ -66,6 +66,7 @@ public function getEventTypes(): ?array public function setEventTypes(?array $value = null): self { $this->eventTypes = $value; + $this->_setField('eventTypes'); return $this; } @@ -83,6 +84,7 @@ public function getMerchantIds(): ?array public function setMerchantIds(?array $value = null): self { $this->merchantIds = $value; + $this->_setField('merchantIds'); return $this; } @@ -100,6 +102,7 @@ public function getLocationIds(): ?array public function setLocationIds(?array $value = null): self { $this->locationIds = $value; + $this->_setField('locationIds'); return $this; } @@ -117,6 +120,7 @@ public function getCreatedAt(): ?TimeRange public function setCreatedAt(?TimeRange $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } diff --git a/src/Types/SearchEventsQuery.php b/src/Types/SearchEventsQuery.php index 043840be..0afbf6ea 100644 --- a/src/Types/SearchEventsQuery.php +++ b/src/Types/SearchEventsQuery.php @@ -49,6 +49,7 @@ public function getFilter(): ?SearchEventsFilter public function setFilter(?SearchEventsFilter $value = null): self { $this->filter = $value; + $this->_setField('filter'); return $this; } @@ -66,6 +67,7 @@ public function getSort(): ?SearchEventsSort public function setSort(?SearchEventsSort $value = null): self { $this->sort = $value; + $this->_setField('sort'); return $this; } diff --git a/src/Types/SearchEventsResponse.php b/src/Types/SearchEventsResponse.php index fb11bd51..633d722b 100644 --- a/src/Types/SearchEventsResponse.php +++ b/src/Types/SearchEventsResponse.php @@ -74,6 +74,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -91,6 +92,7 @@ public function getEvents(): ?array public function setEvents(?array $value = null): self { $this->events = $value; + $this->_setField('events'); return $this; } @@ -108,6 +110,7 @@ public function getMetadata(): ?array public function setMetadata(?array $value = null): self { $this->metadata = $value; + $this->_setField('metadata'); return $this; } @@ -125,6 +128,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/SearchEventsSort.php b/src/Types/SearchEventsSort.php index 14e130be..69c24f13 100644 --- a/src/Types/SearchEventsSort.php +++ b/src/Types/SearchEventsSort.php @@ -55,6 +55,7 @@ public function getField(): ?string public function setField(?string $value = null): self { $this->field = $value; + $this->_setField('field'); return $this; } @@ -72,6 +73,7 @@ public function getOrder(): ?string public function setOrder(?string $value = null): self { $this->order = $value; + $this->_setField('order'); return $this; } diff --git a/src/Types/SearchInvoicesResponse.php b/src/Types/SearchInvoicesResponse.php index d32ad57c..414a9105 100644 --- a/src/Types/SearchInvoicesResponse.php +++ b/src/Types/SearchInvoicesResponse.php @@ -63,6 +63,7 @@ public function getInvoices(): ?array public function setInvoices(?array $value = null): self { $this->invoices = $value; + $this->_setField('invoices'); return $this; } @@ -80,6 +81,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -97,6 +99,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/SearchLoyaltyAccountsRequestLoyaltyAccountQuery.php b/src/Types/SearchLoyaltyAccountsRequestLoyaltyAccountQuery.php index 0d8e6f60..d85d95a1 100644 --- a/src/Types/SearchLoyaltyAccountsRequestLoyaltyAccountQuery.php +++ b/src/Types/SearchLoyaltyAccountsRequestLoyaltyAccountQuery.php @@ -62,6 +62,7 @@ public function getMappings(): ?array public function setMappings(?array $value = null): self { $this->mappings = $value; + $this->_setField('mappings'); return $this; } @@ -79,6 +80,7 @@ public function getCustomerIds(): ?array public function setCustomerIds(?array $value = null): self { $this->customerIds = $value; + $this->_setField('customerIds'); return $this; } diff --git a/src/Types/SearchLoyaltyAccountsResponse.php b/src/Types/SearchLoyaltyAccountsResponse.php index 4d1bf471..a993f636 100644 --- a/src/Types/SearchLoyaltyAccountsResponse.php +++ b/src/Types/SearchLoyaltyAccountsResponse.php @@ -66,6 +66,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -83,6 +84,7 @@ public function getLoyaltyAccounts(): ?array public function setLoyaltyAccounts(?array $value = null): self { $this->loyaltyAccounts = $value; + $this->_setField('loyaltyAccounts'); return $this; } @@ -100,6 +102,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/SearchLoyaltyEventsResponse.php b/src/Types/SearchLoyaltyEventsResponse.php index dac8b25b..d82e2e0b 100644 --- a/src/Types/SearchLoyaltyEventsResponse.php +++ b/src/Types/SearchLoyaltyEventsResponse.php @@ -64,6 +64,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -81,6 +82,7 @@ public function getEvents(): ?array public function setEvents(?array $value = null): self { $this->events = $value; + $this->_setField('events'); return $this; } @@ -98,6 +100,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/SearchLoyaltyRewardsRequestLoyaltyRewardQuery.php b/src/Types/SearchLoyaltyRewardsRequestLoyaltyRewardQuery.php index 3b3836cb..c00fbb8d 100644 --- a/src/Types/SearchLoyaltyRewardsRequestLoyaltyRewardQuery.php +++ b/src/Types/SearchLoyaltyRewardsRequestLoyaltyRewardQuery.php @@ -52,6 +52,7 @@ public function getLoyaltyAccountId(): string public function setLoyaltyAccountId(string $value): self { $this->loyaltyAccountId = $value; + $this->_setField('loyaltyAccountId'); return $this; } @@ -69,6 +70,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } diff --git a/src/Types/SearchLoyaltyRewardsResponse.php b/src/Types/SearchLoyaltyRewardsResponse.php index f5ca645b..a3288db8 100644 --- a/src/Types/SearchLoyaltyRewardsResponse.php +++ b/src/Types/SearchLoyaltyRewardsResponse.php @@ -64,6 +64,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -81,6 +82,7 @@ public function getRewards(): ?array public function setRewards(?array $value = null): self { $this->rewards = $value; + $this->_setField('rewards'); return $this; } @@ -98,6 +100,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/SearchOrdersCustomerFilter.php b/src/Types/SearchOrdersCustomerFilter.php index 20d423c0..cfa9b0d4 100644 --- a/src/Types/SearchOrdersCustomerFilter.php +++ b/src/Types/SearchOrdersCustomerFilter.php @@ -48,6 +48,7 @@ public function getCustomerIds(): ?array public function setCustomerIds(?array $value = null): self { $this->customerIds = $value; + $this->_setField('customerIds'); return $this; } diff --git a/src/Types/SearchOrdersDateTimeFilter.php b/src/Types/SearchOrdersDateTimeFilter.php index 22758f7b..729d512e 100644 --- a/src/Types/SearchOrdersDateTimeFilter.php +++ b/src/Types/SearchOrdersDateTimeFilter.php @@ -82,6 +82,7 @@ public function getCreatedAt(): ?TimeRange public function setCreatedAt(?TimeRange $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -99,6 +100,7 @@ public function getUpdatedAt(): ?TimeRange public function setUpdatedAt(?TimeRange $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -116,6 +118,7 @@ public function getClosedAt(): ?TimeRange public function setClosedAt(?TimeRange $value = null): self { $this->closedAt = $value; + $this->_setField('closedAt'); return $this; } diff --git a/src/Types/SearchOrdersFilter.php b/src/Types/SearchOrdersFilter.php index 8a1f2e0d..8b9e6dad 100644 --- a/src/Types/SearchOrdersFilter.php +++ b/src/Types/SearchOrdersFilter.php @@ -80,6 +80,7 @@ public function getStateFilter(): ?SearchOrdersStateFilter public function setStateFilter(?SearchOrdersStateFilter $value = null): self { $this->stateFilter = $value; + $this->_setField('stateFilter'); return $this; } @@ -97,6 +98,7 @@ public function getDateTimeFilter(): ?SearchOrdersDateTimeFilter public function setDateTimeFilter(?SearchOrdersDateTimeFilter $value = null): self { $this->dateTimeFilter = $value; + $this->_setField('dateTimeFilter'); return $this; } @@ -114,6 +116,7 @@ public function getFulfillmentFilter(): ?SearchOrdersFulfillmentFilter public function setFulfillmentFilter(?SearchOrdersFulfillmentFilter $value = null): self { $this->fulfillmentFilter = $value; + $this->_setField('fulfillmentFilter'); return $this; } @@ -131,6 +134,7 @@ public function getSourceFilter(): ?SearchOrdersSourceFilter public function setSourceFilter(?SearchOrdersSourceFilter $value = null): self { $this->sourceFilter = $value; + $this->_setField('sourceFilter'); return $this; } @@ -148,6 +152,7 @@ public function getCustomerFilter(): ?SearchOrdersCustomerFilter public function setCustomerFilter(?SearchOrdersCustomerFilter $value = null): self { $this->customerFilter = $value; + $this->_setField('customerFilter'); return $this; } diff --git a/src/Types/SearchOrdersFulfillmentFilter.php b/src/Types/SearchOrdersFulfillmentFilter.php index 1540f910..aa2829e1 100644 --- a/src/Types/SearchOrdersFulfillmentFilter.php +++ b/src/Types/SearchOrdersFulfillmentFilter.php @@ -60,6 +60,7 @@ public function getFulfillmentTypes(): ?array public function setFulfillmentTypes(?array $value = null): self { $this->fulfillmentTypes = $value; + $this->_setField('fulfillmentTypes'); return $this; } @@ -77,6 +78,7 @@ public function getFulfillmentStates(): ?array public function setFulfillmentStates(?array $value = null): self { $this->fulfillmentStates = $value; + $this->_setField('fulfillmentStates'); return $this; } diff --git a/src/Types/SearchOrdersQuery.php b/src/Types/SearchOrdersQuery.php index 23c30d7d..533a2da5 100644 --- a/src/Types/SearchOrdersQuery.php +++ b/src/Types/SearchOrdersQuery.php @@ -49,6 +49,7 @@ public function getFilter(): ?SearchOrdersFilter public function setFilter(?SearchOrdersFilter $value = null): self { $this->filter = $value; + $this->_setField('filter'); return $this; } @@ -66,6 +67,7 @@ public function getSort(): ?SearchOrdersSort public function setSort(?SearchOrdersSort $value = null): self { $this->sort = $value; + $this->_setField('sort'); return $this; } diff --git a/src/Types/SearchOrdersResponse.php b/src/Types/SearchOrdersResponse.php index d8aa856a..c38dcb7f 100644 --- a/src/Types/SearchOrdersResponse.php +++ b/src/Types/SearchOrdersResponse.php @@ -78,6 +78,7 @@ public function getOrderEntries(): ?array public function setOrderEntries(?array $value = null): self { $this->orderEntries = $value; + $this->_setField('orderEntries'); return $this; } @@ -95,6 +96,7 @@ public function getOrders(): ?array public function setOrders(?array $value = null): self { $this->orders = $value; + $this->_setField('orders'); return $this; } @@ -112,6 +114,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -129,6 +132,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/SearchOrdersSort.php b/src/Types/SearchOrdersSort.php index fd622e8f..dfdee476 100644 --- a/src/Types/SearchOrdersSort.php +++ b/src/Types/SearchOrdersSort.php @@ -65,6 +65,7 @@ public function getSortField(): string public function setSortField(string $value): self { $this->sortField = $value; + $this->_setField('sortField'); return $this; } @@ -82,6 +83,7 @@ public function getSortOrder(): ?string public function setSortOrder(?string $value = null): self { $this->sortOrder = $value; + $this->_setField('sortOrder'); return $this; } diff --git a/src/Types/SearchOrdersSourceFilter.php b/src/Types/SearchOrdersSourceFilter.php index ca60d326..2f991fe1 100644 --- a/src/Types/SearchOrdersSourceFilter.php +++ b/src/Types/SearchOrdersSourceFilter.php @@ -73,6 +73,7 @@ public function getSourceNames(): ?array public function setSourceNames(?array $value = null): self { $this->sourceNames = $value; + $this->_setField('sourceNames'); return $this; } @@ -90,6 +91,7 @@ public function getSourceApplicationIds(): ?array public function setSourceApplicationIds(?array $value = null): self { $this->sourceApplicationIds = $value; + $this->_setField('sourceApplicationIds'); return $this; } @@ -107,6 +109,7 @@ public function getSourceClientOus(): ?array public function setSourceClientOus(?array $value = null): self { $this->sourceClientOus = $value; + $this->_setField('sourceClientOus'); return $this; } diff --git a/src/Types/SearchOrdersStateFilter.php b/src/Types/SearchOrdersStateFilter.php index 6d33a63f..5fb2e68e 100644 --- a/src/Types/SearchOrdersStateFilter.php +++ b/src/Types/SearchOrdersStateFilter.php @@ -45,6 +45,7 @@ public function getStates(): array public function setStates(array $value): self { $this->states = $value; + $this->_setField('states'); return $this; } diff --git a/src/Types/SearchScheduledShiftsResponse.php b/src/Types/SearchScheduledShiftsResponse.php index f5962252..a0b15c65 100644 --- a/src/Types/SearchScheduledShiftsResponse.php +++ b/src/Types/SearchScheduledShiftsResponse.php @@ -62,6 +62,7 @@ public function getScheduledShifts(): ?array public function setScheduledShifts(?array $value = null): self { $this->scheduledShifts = $value; + $this->_setField('scheduledShifts'); return $this; } @@ -79,6 +80,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -96,6 +98,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/SearchShiftsResponse.php b/src/Types/SearchShiftsResponse.php index 4ba5d1a1..12b4426a 100644 --- a/src/Types/SearchShiftsResponse.php +++ b/src/Types/SearchShiftsResponse.php @@ -60,6 +60,7 @@ public function getShifts(): ?array public function setShifts(?array $value = null): self { $this->shifts = $value; + $this->_setField('shifts'); return $this; } @@ -77,6 +78,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -94,6 +96,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/SearchSubscriptionsFilter.php b/src/Types/SearchSubscriptionsFilter.php index de0478e8..f75a584e 100644 --- a/src/Types/SearchSubscriptionsFilter.php +++ b/src/Types/SearchSubscriptionsFilter.php @@ -59,6 +59,7 @@ public function getCustomerIds(): ?array public function setCustomerIds(?array $value = null): self { $this->customerIds = $value; + $this->_setField('customerIds'); return $this; } @@ -76,6 +77,7 @@ public function getLocationIds(): ?array public function setLocationIds(?array $value = null): self { $this->locationIds = $value; + $this->_setField('locationIds'); return $this; } @@ -93,6 +95,7 @@ public function getSourceNames(): ?array public function setSourceNames(?array $value = null): self { $this->sourceNames = $value; + $this->_setField('sourceNames'); return $this; } diff --git a/src/Types/SearchSubscriptionsQuery.php b/src/Types/SearchSubscriptionsQuery.php index c25d87a7..7219ad8a 100644 --- a/src/Types/SearchSubscriptionsQuery.php +++ b/src/Types/SearchSubscriptionsQuery.php @@ -41,6 +41,7 @@ public function getFilter(): ?SearchSubscriptionsFilter public function setFilter(?SearchSubscriptionsFilter $value = null): self { $this->filter = $value; + $this->_setField('filter'); return $this; } diff --git a/src/Types/SearchSubscriptionsResponse.php b/src/Types/SearchSubscriptionsResponse.php index 7b3224c8..e374fb06 100644 --- a/src/Types/SearchSubscriptionsResponse.php +++ b/src/Types/SearchSubscriptionsResponse.php @@ -65,6 +65,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -82,6 +83,7 @@ public function getSubscriptions(): ?array public function setSubscriptions(?array $value = null): self { $this->subscriptions = $value; + $this->_setField('subscriptions'); return $this; } @@ -99,6 +101,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/SearchTeamMembersFilter.php b/src/Types/SearchTeamMembersFilter.php index af4c9751..a892ff2c 100644 --- a/src/Types/SearchTeamMembersFilter.php +++ b/src/Types/SearchTeamMembersFilter.php @@ -71,6 +71,7 @@ public function getLocationIds(): ?array public function setLocationIds(?array $value = null): self { $this->locationIds = $value; + $this->_setField('locationIds'); return $this; } @@ -88,6 +89,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -105,6 +107,7 @@ public function getIsOwner(): ?bool public function setIsOwner(?bool $value = null): self { $this->isOwner = $value; + $this->_setField('isOwner'); return $this; } diff --git a/src/Types/SearchTeamMembersQuery.php b/src/Types/SearchTeamMembersQuery.php index 7896edd2..95f5cb6a 100644 --- a/src/Types/SearchTeamMembersQuery.php +++ b/src/Types/SearchTeamMembersQuery.php @@ -41,6 +41,7 @@ public function getFilter(): ?SearchTeamMembersFilter public function setFilter(?SearchTeamMembersFilter $value = null): self { $this->filter = $value; + $this->_setField('filter'); return $this; } diff --git a/src/Types/SearchTeamMembersResponse.php b/src/Types/SearchTeamMembersResponse.php index d3fd9c88..9d68c263 100644 --- a/src/Types/SearchTeamMembersResponse.php +++ b/src/Types/SearchTeamMembersResponse.php @@ -61,6 +61,7 @@ public function getTeamMembers(): ?array public function setTeamMembers(?array $value = null): self { $this->teamMembers = $value; + $this->_setField('teamMembers'); return $this; } @@ -78,6 +79,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -95,6 +97,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/SearchTerminalActionsResponse.php b/src/Types/SearchTerminalActionsResponse.php index 38eb3733..3d478b38 100644 --- a/src/Types/SearchTerminalActionsResponse.php +++ b/src/Types/SearchTerminalActionsResponse.php @@ -61,6 +61,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -78,6 +79,7 @@ public function getAction(): ?array public function setAction(?array $value = null): self { $this->action = $value; + $this->_setField('action'); return $this; } @@ -95,6 +97,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/SearchTerminalCheckoutsResponse.php b/src/Types/SearchTerminalCheckoutsResponse.php index b560f7ee..36cf9c2a 100644 --- a/src/Types/SearchTerminalCheckoutsResponse.php +++ b/src/Types/SearchTerminalCheckoutsResponse.php @@ -60,6 +60,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -77,6 +78,7 @@ public function getCheckouts(): ?array public function setCheckouts(?array $value = null): self { $this->checkouts = $value; + $this->_setField('checkouts'); return $this; } @@ -94,6 +96,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/SearchTerminalRefundsResponse.php b/src/Types/SearchTerminalRefundsResponse.php index e99600c5..8b5cb9d2 100644 --- a/src/Types/SearchTerminalRefundsResponse.php +++ b/src/Types/SearchTerminalRefundsResponse.php @@ -60,6 +60,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -77,6 +78,7 @@ public function getRefunds(): ?array public function setRefunds(?array $value = null): self { $this->refunds = $value; + $this->_setField('refunds'); return $this; } @@ -94,6 +96,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/SearchTimecardsResponse.php b/src/Types/SearchTimecardsResponse.php index 031106ca..8b0fe4d4 100644 --- a/src/Types/SearchTimecardsResponse.php +++ b/src/Types/SearchTimecardsResponse.php @@ -60,6 +60,7 @@ public function getTimecards(): ?array public function setTimecards(?array $value = null): self { $this->timecards = $value; + $this->_setField('timecards'); return $this; } @@ -77,6 +78,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -94,6 +96,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/SearchTransferOrdersResponse.php b/src/Types/SearchTransferOrdersResponse.php index b9e0006e..8c48350f 100644 --- a/src/Types/SearchTransferOrdersResponse.php +++ b/src/Types/SearchTransferOrdersResponse.php @@ -58,6 +58,7 @@ public function getTransferOrders(): ?array public function setTransferOrders(?array $value = null): self { $this->transferOrders = $value; + $this->_setField('transferOrders'); return $this; } @@ -75,6 +76,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -92,6 +94,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/SearchVendorsRequestFilter.php b/src/Types/SearchVendorsRequestFilter.php index 9022b391..a3a5893c 100644 --- a/src/Types/SearchVendorsRequestFilter.php +++ b/src/Types/SearchVendorsRequestFilter.php @@ -53,6 +53,7 @@ public function getName(): ?array public function setName(?array $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -70,6 +71,7 @@ public function getStatus(): ?array public function setStatus(?array $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } diff --git a/src/Types/SearchVendorsRequestSort.php b/src/Types/SearchVendorsRequestSort.php index 0095422c..185430dd 100644 --- a/src/Types/SearchVendorsRequestSort.php +++ b/src/Types/SearchVendorsRequestSort.php @@ -55,6 +55,7 @@ public function getField(): ?string public function setField(?string $value = null): self { $this->field = $value; + $this->_setField('field'); return $this; } @@ -72,6 +73,7 @@ public function getOrder(): ?string public function setOrder(?string $value = null): self { $this->order = $value; + $this->_setField('order'); return $this; } diff --git a/src/Types/SearchVendorsResponse.php b/src/Types/SearchVendorsResponse.php index 057f43f5..7313326c 100644 --- a/src/Types/SearchVendorsResponse.php +++ b/src/Types/SearchVendorsResponse.php @@ -63,6 +63,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -80,6 +81,7 @@ public function getVendors(): ?array public function setVendors(?array $value = null): self { $this->vendors = $value; + $this->_setField('vendors'); return $this; } @@ -97,6 +99,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } diff --git a/src/Types/SegmentFilter.php b/src/Types/SegmentFilter.php index 2304c604..bd3102c2 100644 --- a/src/Types/SegmentFilter.php +++ b/src/Types/SegmentFilter.php @@ -56,6 +56,7 @@ public function getServiceVariationId(): string public function setServiceVariationId(string $value): self { $this->serviceVariationId = $value; + $this->_setField('serviceVariationId'); return $this; } @@ -73,6 +74,7 @@ public function getTeamMemberIdFilter(): ?FilterValue public function setTeamMemberIdFilter(?FilterValue $value = null): self { $this->teamMemberIdFilter = $value; + $this->_setField('teamMemberIdFilter'); return $this; } diff --git a/src/Types/SelectOption.php b/src/Types/SelectOption.php index 4b6bd2f5..b4d3f587 100644 --- a/src/Types/SelectOption.php +++ b/src/Types/SelectOption.php @@ -46,6 +46,7 @@ public function getReferenceId(): string public function setReferenceId(string $value): self { $this->referenceId = $value; + $this->_setField('referenceId'); return $this; } @@ -63,6 +64,7 @@ public function getTitle(): string public function setTitle(string $value): self { $this->title = $value; + $this->_setField('title'); return $this; } diff --git a/src/Types/SelectOptions.php b/src/Types/SelectOptions.php index a08ab61a..97f05a59 100644 --- a/src/Types/SelectOptions.php +++ b/src/Types/SelectOptions.php @@ -63,6 +63,7 @@ public function getTitle(): string public function setTitle(string $value): self { $this->title = $value; + $this->_setField('title'); return $this; } @@ -80,6 +81,7 @@ public function getBody(): string public function setBody(string $value): self { $this->body = $value; + $this->_setField('body'); return $this; } @@ -97,6 +99,7 @@ public function getOptions(): array public function setOptions(array $value): self { $this->options = $value; + $this->_setField('options'); return $this; } @@ -114,6 +117,7 @@ public function getSelectedOption(): ?SelectOption public function setSelectedOption(?SelectOption $value = null): self { $this->selectedOption = $value; + $this->_setField('selectedOption'); return $this; } diff --git a/src/Types/Shift.php b/src/Types/Shift.php index 2a86f1b6..9e79d152 100644 --- a/src/Types/Shift.php +++ b/src/Types/Shift.php @@ -176,6 +176,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -193,6 +194,7 @@ public function getEmployeeId(): ?string public function setEmployeeId(?string $value = null): self { $this->employeeId = $value; + $this->_setField('employeeId'); return $this; } @@ -210,6 +212,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -227,6 +230,7 @@ public function getTimezone(): ?string public function setTimezone(?string $value = null): self { $this->timezone = $value; + $this->_setField('timezone'); return $this; } @@ -244,6 +248,7 @@ public function getStartAt(): string public function setStartAt(string $value): self { $this->startAt = $value; + $this->_setField('startAt'); return $this; } @@ -261,6 +266,7 @@ public function getEndAt(): ?string public function setEndAt(?string $value = null): self { $this->endAt = $value; + $this->_setField('endAt'); return $this; } @@ -278,6 +284,7 @@ public function getWage(): ?ShiftWage public function setWage(?ShiftWage $value = null): self { $this->wage = $value; + $this->_setField('wage'); return $this; } @@ -295,6 +302,7 @@ public function getBreaks(): ?array public function setBreaks(?array $value = null): self { $this->breaks = $value; + $this->_setField('breaks'); return $this; } @@ -312,6 +320,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -329,6 +338,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -346,6 +356,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -363,6 +374,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -380,6 +392,7 @@ public function getTeamMemberId(): ?string public function setTeamMemberId(?string $value = null): self { $this->teamMemberId = $value; + $this->_setField('teamMemberId'); return $this; } @@ -397,6 +410,7 @@ public function getDeclaredCashTipMoney(): ?Money public function setDeclaredCashTipMoney(?Money $value = null): self { $this->declaredCashTipMoney = $value; + $this->_setField('declaredCashTipMoney'); return $this; } diff --git a/src/Types/ShiftFilter.php b/src/Types/ShiftFilter.php index 7dd6f20b..f62f8dd8 100644 --- a/src/Types/ShiftFilter.php +++ b/src/Types/ShiftFilter.php @@ -96,6 +96,7 @@ public function getLocationIds(): ?array public function setLocationIds(?array $value = null): self { $this->locationIds = $value; + $this->_setField('locationIds'); return $this; } @@ -113,6 +114,7 @@ public function getEmployeeIds(): ?array public function setEmployeeIds(?array $value = null): self { $this->employeeIds = $value; + $this->_setField('employeeIds'); return $this; } @@ -130,6 +132,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -147,6 +150,7 @@ public function getStart(): ?TimeRange public function setStart(?TimeRange $value = null): self { $this->start = $value; + $this->_setField('start'); return $this; } @@ -164,6 +168,7 @@ public function getEnd(): ?TimeRange public function setEnd(?TimeRange $value = null): self { $this->end = $value; + $this->_setField('end'); return $this; } @@ -181,6 +186,7 @@ public function getWorkday(): ?ShiftWorkday public function setWorkday(?ShiftWorkday $value = null): self { $this->workday = $value; + $this->_setField('workday'); return $this; } @@ -198,6 +204,7 @@ public function getTeamMemberIds(): ?array public function setTeamMemberIds(?array $value = null): self { $this->teamMemberIds = $value; + $this->_setField('teamMemberIds'); return $this; } diff --git a/src/Types/ShiftQuery.php b/src/Types/ShiftQuery.php index ac352072..f189bf10 100644 --- a/src/Types/ShiftQuery.php +++ b/src/Types/ShiftQuery.php @@ -51,6 +51,7 @@ public function getFilter(): ?ShiftFilter public function setFilter(?ShiftFilter $value = null): self { $this->filter = $value; + $this->_setField('filter'); return $this; } @@ -68,6 +69,7 @@ public function getSort(): ?ShiftSort public function setSort(?ShiftSort $value = null): self { $this->sort = $value; + $this->_setField('sort'); return $this; } diff --git a/src/Types/ShiftSort.php b/src/Types/ShiftSort.php index 7cda7907..09bed1a3 100644 --- a/src/Types/ShiftSort.php +++ b/src/Types/ShiftSort.php @@ -57,6 +57,7 @@ public function getField(): ?string public function setField(?string $value = null): self { $this->field = $value; + $this->_setField('field'); return $this; } @@ -74,6 +75,7 @@ public function getOrder(): ?string public function setOrder(?string $value = null): self { $this->order = $value; + $this->_setField('order'); return $this; } diff --git a/src/Types/ShiftWage.php b/src/Types/ShiftWage.php index 3f44bfd0..820132c5 100644 --- a/src/Types/ShiftWage.php +++ b/src/Types/ShiftWage.php @@ -73,6 +73,7 @@ public function getTitle(): ?string public function setTitle(?string $value = null): self { $this->title = $value; + $this->_setField('title'); return $this; } @@ -90,6 +91,7 @@ public function getHourlyRate(): ?Money public function setHourlyRate(?Money $value = null): self { $this->hourlyRate = $value; + $this->_setField('hourlyRate'); return $this; } @@ -107,6 +109,7 @@ public function getJobId(): ?string public function setJobId(?string $value = null): self { $this->jobId = $value; + $this->_setField('jobId'); return $this; } @@ -124,6 +127,7 @@ public function getTipEligible(): ?bool public function setTipEligible(?bool $value = null): self { $this->tipEligible = $value; + $this->_setField('tipEligible'); return $this; } diff --git a/src/Types/ShiftWorkday.php b/src/Types/ShiftWorkday.php index 3a3eae17..333e2b29 100644 --- a/src/Types/ShiftWorkday.php +++ b/src/Types/ShiftWorkday.php @@ -68,6 +68,7 @@ public function getDateRange(): ?DateRange public function setDateRange(?DateRange $value = null): self { $this->dateRange = $value; + $this->_setField('dateRange'); return $this; } @@ -85,6 +86,7 @@ public function getMatchShiftsBy(): ?string public function setMatchShiftsBy(?string $value = null): self { $this->matchShiftsBy = $value; + $this->_setField('matchShiftsBy'); return $this; } @@ -102,6 +104,7 @@ public function getDefaultTimezone(): ?string public function setDefaultTimezone(?string $value = null): self { $this->defaultTimezone = $value; + $this->_setField('defaultTimezone'); return $this; } diff --git a/src/Types/ShippingFee.php b/src/Types/ShippingFee.php index db7531b7..18319ad4 100644 --- a/src/Types/ShippingFee.php +++ b/src/Types/ShippingFee.php @@ -46,6 +46,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -63,6 +64,7 @@ public function getCharge(): Money public function setCharge(Money $value): self { $this->charge = $value; + $this->_setField('charge'); return $this; } diff --git a/src/Types/SignatureImage.php b/src/Types/SignatureImage.php index 1fa7d026..a8640f2c 100644 --- a/src/Types/SignatureImage.php +++ b/src/Types/SignatureImage.php @@ -49,6 +49,7 @@ public function getImageType(): ?string public function setImageType(?string $value = null): self { $this->imageType = $value; + $this->_setField('imageType'); return $this; } @@ -66,6 +67,7 @@ public function getData(): ?string public function setData(?string $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/SignatureOptions.php b/src/Types/SignatureOptions.php index 26e6fcbd..89e9df1b 100644 --- a/src/Types/SignatureOptions.php +++ b/src/Types/SignatureOptions.php @@ -55,6 +55,7 @@ public function getTitle(): string public function setTitle(string $value): self { $this->title = $value; + $this->_setField('title'); return $this; } @@ -72,6 +73,7 @@ public function getBody(): string public function setBody(string $value): self { $this->body = $value; + $this->_setField('body'); return $this; } @@ -89,6 +91,7 @@ public function getSignature(): ?array public function setSignature(?array $value = null): self { $this->signature = $value; + $this->_setField('signature'); return $this; } diff --git a/src/Types/Site.php b/src/Types/Site.php index 73b624f3..0899c0bc 100644 --- a/src/Types/Site.php +++ b/src/Types/Site.php @@ -81,6 +81,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -98,6 +99,7 @@ public function getSiteTitle(): ?string public function setSiteTitle(?string $value = null): self { $this->siteTitle = $value; + $this->_setField('siteTitle'); return $this; } @@ -115,6 +117,7 @@ public function getDomain(): ?string public function setDomain(?string $value = null): self { $this->domain = $value; + $this->_setField('domain'); return $this; } @@ -132,6 +135,7 @@ public function getIsPublished(): ?bool public function setIsPublished(?bool $value = null): self { $this->isPublished = $value; + $this->_setField('isPublished'); return $this; } @@ -149,6 +153,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -166,6 +171,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } diff --git a/src/Types/Snippet.php b/src/Types/Snippet.php index ae1be42d..d2fddb0d 100644 --- a/src/Types/Snippet.php +++ b/src/Types/Snippet.php @@ -73,6 +73,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -90,6 +91,7 @@ public function getSiteId(): ?string public function setSiteId(?string $value = null): self { $this->siteId = $value; + $this->_setField('siteId'); return $this; } @@ -107,6 +109,7 @@ public function getContent(): string public function setContent(string $value): self { $this->content = $value; + $this->_setField('content'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } diff --git a/src/Types/SourceApplication.php b/src/Types/SourceApplication.php index 194a9596..46649d5e 100644 --- a/src/Types/SourceApplication.php +++ b/src/Types/SourceApplication.php @@ -66,6 +66,7 @@ public function getProduct(): ?string public function setProduct(?string $value = null): self { $this->product = $value; + $this->_setField('product'); return $this; } @@ -83,6 +84,7 @@ public function getApplicationId(): ?string public function setApplicationId(?string $value = null): self { $this->applicationId = $value; + $this->_setField('applicationId'); return $this; } @@ -100,6 +102,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } diff --git a/src/Types/SquareAccountDetails.php b/src/Types/SquareAccountDetails.php index e32e7bab..fe779e82 100644 --- a/src/Types/SquareAccountDetails.php +++ b/src/Types/SquareAccountDetails.php @@ -50,6 +50,7 @@ public function getPaymentSourceToken(): ?string public function setPaymentSourceToken(?string $value = null): self { $this->paymentSourceToken = $value; + $this->_setField('paymentSourceToken'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/StandardUnitDescription.php b/src/Types/StandardUnitDescription.php index 434ada78..e8b87ced 100644 --- a/src/Types/StandardUnitDescription.php +++ b/src/Types/StandardUnitDescription.php @@ -57,6 +57,7 @@ public function getUnit(): ?MeasurementUnit public function setUnit(?MeasurementUnit $value = null): self { $this->unit = $value; + $this->_setField('unit'); return $this; } @@ -74,6 +75,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -91,6 +93,7 @@ public function getAbbreviation(): ?string public function setAbbreviation(?string $value = null): self { $this->abbreviation = $value; + $this->_setField('abbreviation'); return $this; } diff --git a/src/Types/StandardUnitDescriptionGroup.php b/src/Types/StandardUnitDescriptionGroup.php index 40c91234..c6ebeed7 100644 --- a/src/Types/StandardUnitDescriptionGroup.php +++ b/src/Types/StandardUnitDescriptionGroup.php @@ -50,6 +50,7 @@ public function getStandardUnitDescriptions(): ?array public function setStandardUnitDescriptions(?array $value = null): self { $this->standardUnitDescriptions = $value; + $this->_setField('standardUnitDescriptions'); return $this; } @@ -67,6 +68,7 @@ public function getLanguageCode(): ?string public function setLanguageCode(?string $value = null): self { $this->languageCode = $value; + $this->_setField('languageCode'); return $this; } diff --git a/src/Types/StartTransferOrderResponse.php b/src/Types/StartTransferOrderResponse.php index cc80c053..60f3d257 100644 --- a/src/Types/StartTransferOrderResponse.php +++ b/src/Types/StartTransferOrderResponse.php @@ -50,6 +50,7 @@ public function getTransferOrder(): ?TransferOrder public function setTransferOrder(?TransferOrder $value = null): self { $this->transferOrder = $value; + $this->_setField('transferOrder'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/SubmitEvidenceResponse.php b/src/Types/SubmitEvidenceResponse.php index 146011ea..90c60647 100644 --- a/src/Types/SubmitEvidenceResponse.php +++ b/src/Types/SubmitEvidenceResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getDispute(): ?Dispute public function setDispute(?Dispute $value = null): self { $this->dispute = $value; + $this->_setField('dispute'); return $this; } diff --git a/src/Types/Subscription.php b/src/Types/Subscription.php index 2f1531ba..e7296352 100644 --- a/src/Types/Subscription.php +++ b/src/Types/Subscription.php @@ -247,6 +247,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -264,6 +265,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -281,6 +283,7 @@ public function getPlanVariationId(): ?string public function setPlanVariationId(?string $value = null): self { $this->planVariationId = $value; + $this->_setField('planVariationId'); return $this; } @@ -298,6 +301,7 @@ public function getCustomerId(): ?string public function setCustomerId(?string $value = null): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -315,6 +319,7 @@ public function getStartDate(): ?string public function setStartDate(?string $value = null): self { $this->startDate = $value; + $this->_setField('startDate'); return $this; } @@ -332,6 +337,7 @@ public function getCanceledDate(): ?string public function setCanceledDate(?string $value = null): self { $this->canceledDate = $value; + $this->_setField('canceledDate'); return $this; } @@ -349,6 +355,7 @@ public function getChargedThroughDate(): ?string public function setChargedThroughDate(?string $value = null): self { $this->chargedThroughDate = $value; + $this->_setField('chargedThroughDate'); return $this; } @@ -366,6 +373,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -383,6 +391,7 @@ public function getTaxPercentage(): ?string public function setTaxPercentage(?string $value = null): self { $this->taxPercentage = $value; + $this->_setField('taxPercentage'); return $this; } @@ -400,6 +409,7 @@ public function getInvoiceIds(): ?array public function setInvoiceIds(?array $value = null): self { $this->invoiceIds = $value; + $this->_setField('invoiceIds'); return $this; } @@ -417,6 +427,7 @@ public function getPriceOverrideMoney(): ?Money public function setPriceOverrideMoney(?Money $value = null): self { $this->priceOverrideMoney = $value; + $this->_setField('priceOverrideMoney'); return $this; } @@ -434,6 +445,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -451,6 +463,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -468,6 +481,7 @@ public function getCardId(): ?string public function setCardId(?string $value = null): self { $this->cardId = $value; + $this->_setField('cardId'); return $this; } @@ -485,6 +499,7 @@ public function getTimezone(): ?string public function setTimezone(?string $value = null): self { $this->timezone = $value; + $this->_setField('timezone'); return $this; } @@ -502,6 +517,7 @@ public function getSource(): ?SubscriptionSource public function setSource(?SubscriptionSource $value = null): self { $this->source = $value; + $this->_setField('source'); return $this; } @@ -519,6 +535,7 @@ public function getActions(): ?array public function setActions(?array $value = null): self { $this->actions = $value; + $this->_setField('actions'); return $this; } @@ -536,6 +553,7 @@ public function getMonthlyBillingAnchorDate(): ?int public function setMonthlyBillingAnchorDate(?int $value = null): self { $this->monthlyBillingAnchorDate = $value; + $this->_setField('monthlyBillingAnchorDate'); return $this; } @@ -553,6 +571,7 @@ public function getPhases(): ?array public function setPhases(?array $value = null): self { $this->phases = $value; + $this->_setField('phases'); return $this; } @@ -570,6 +589,7 @@ public function getCompletedDate(): ?string public function setCompletedDate(?string $value = null): self { $this->completedDate = $value; + $this->_setField('completedDate'); return $this; } diff --git a/src/Types/SubscriptionAction.php b/src/Types/SubscriptionAction.php index 3f4ba83e..6d0ed6a8 100644 --- a/src/Types/SubscriptionAction.php +++ b/src/Types/SubscriptionAction.php @@ -85,6 +85,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -102,6 +103,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -119,6 +121,7 @@ public function getEffectiveDate(): ?string public function setEffectiveDate(?string $value = null): self { $this->effectiveDate = $value; + $this->_setField('effectiveDate'); return $this; } @@ -136,6 +139,7 @@ public function getMonthlyBillingAnchorDate(): ?int public function setMonthlyBillingAnchorDate(?int $value = null): self { $this->monthlyBillingAnchorDate = $value; + $this->_setField('monthlyBillingAnchorDate'); return $this; } @@ -153,6 +157,7 @@ public function getPhases(): ?array public function setPhases(?array $value = null): self { $this->phases = $value; + $this->_setField('phases'); return $this; } @@ -170,6 +175,7 @@ public function getNewPlanVariationId(): ?string public function setNewPlanVariationId(?string $value = null): self { $this->newPlanVariationId = $value; + $this->_setField('newPlanVariationId'); return $this; } diff --git a/src/Types/SubscriptionCreatedEvent.php b/src/Types/SubscriptionCreatedEvent.php index 6e586695..403b4802 100644 --- a/src/Types/SubscriptionCreatedEvent.php +++ b/src/Types/SubscriptionCreatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?SubscriptionCreatedEventData public function setData(?SubscriptionCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/SubscriptionCreatedEventData.php b/src/Types/SubscriptionCreatedEventData.php index 0f1a4dee..3a2e3e40 100644 --- a/src/Types/SubscriptionCreatedEventData.php +++ b/src/Types/SubscriptionCreatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?SubscriptionCreatedEventObject public function setObject(?SubscriptionCreatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/SubscriptionCreatedEventObject.php b/src/Types/SubscriptionCreatedEventObject.php index 08a421d2..7f894d33 100644 --- a/src/Types/SubscriptionCreatedEventObject.php +++ b/src/Types/SubscriptionCreatedEventObject.php @@ -38,6 +38,7 @@ public function getSubscription(): ?Subscription public function setSubscription(?Subscription $value = null): self { $this->subscription = $value; + $this->_setField('subscription'); return $this; } diff --git a/src/Types/SubscriptionEvent.php b/src/Types/SubscriptionEvent.php index 60babd72..e097026a 100644 --- a/src/Types/SubscriptionEvent.php +++ b/src/Types/SubscriptionEvent.php @@ -93,6 +93,7 @@ public function getId(): string public function setId(string $value): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -110,6 +111,7 @@ public function getSubscriptionEventType(): string public function setSubscriptionEventType(string $value): self { $this->subscriptionEventType = $value; + $this->_setField('subscriptionEventType'); return $this; } @@ -127,6 +129,7 @@ public function getEffectiveDate(): string public function setEffectiveDate(string $value): self { $this->effectiveDate = $value; + $this->_setField('effectiveDate'); return $this; } @@ -144,6 +147,7 @@ public function getMonthlyBillingAnchorDate(): ?int public function setMonthlyBillingAnchorDate(?int $value = null): self { $this->monthlyBillingAnchorDate = $value; + $this->_setField('monthlyBillingAnchorDate'); return $this; } @@ -161,6 +165,7 @@ public function getInfo(): ?SubscriptionEventInfo public function setInfo(?SubscriptionEventInfo $value = null): self { $this->info = $value; + $this->_setField('info'); return $this; } @@ -178,6 +183,7 @@ public function getPhases(): ?array public function setPhases(?array $value = null): self { $this->phases = $value; + $this->_setField('phases'); return $this; } @@ -195,6 +201,7 @@ public function getPlanVariationId(): string public function setPlanVariationId(string $value): self { $this->planVariationId = $value; + $this->_setField('planVariationId'); return $this; } diff --git a/src/Types/SubscriptionEventInfo.php b/src/Types/SubscriptionEventInfo.php index 7f2c7776..d36ba671 100644 --- a/src/Types/SubscriptionEventInfo.php +++ b/src/Types/SubscriptionEventInfo.php @@ -52,6 +52,7 @@ public function getDetail(): ?string public function setDetail(?string $value = null): self { $this->detail = $value; + $this->_setField('detail'); return $this; } @@ -69,6 +70,7 @@ public function getCode(): ?string public function setCode(?string $value = null): self { $this->code = $value; + $this->_setField('code'); return $this; } diff --git a/src/Types/SubscriptionPhase.php b/src/Types/SubscriptionPhase.php index 4b8eac7d..383f7f24 100644 --- a/src/Types/SubscriptionPhase.php +++ b/src/Types/SubscriptionPhase.php @@ -84,6 +84,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -101,6 +102,7 @@ public function getCadence(): string public function setCadence(string $value): self { $this->cadence = $value; + $this->_setField('cadence'); return $this; } @@ -118,6 +120,7 @@ public function getPeriods(): ?int public function setPeriods(?int $value = null): self { $this->periods = $value; + $this->_setField('periods'); return $this; } @@ -135,6 +138,7 @@ public function getRecurringPriceMoney(): ?Money public function setRecurringPriceMoney(?Money $value = null): self { $this->recurringPriceMoney = $value; + $this->_setField('recurringPriceMoney'); return $this; } @@ -152,6 +156,7 @@ public function getOrdinal(): ?int public function setOrdinal(?int $value = null): self { $this->ordinal = $value; + $this->_setField('ordinal'); return $this; } @@ -169,6 +174,7 @@ public function getPricing(): ?SubscriptionPricing public function setPricing(?SubscriptionPricing $value = null): self { $this->pricing = $value; + $this->_setField('pricing'); return $this; } diff --git a/src/Types/SubscriptionPricing.php b/src/Types/SubscriptionPricing.php index 948868a0..5aa3f4cc 100644 --- a/src/Types/SubscriptionPricing.php +++ b/src/Types/SubscriptionPricing.php @@ -61,6 +61,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -78,6 +79,7 @@ public function getDiscountIds(): ?array public function setDiscountIds(?array $value = null): self { $this->discountIds = $value; + $this->_setField('discountIds'); return $this; } @@ -95,6 +97,7 @@ public function getPriceMoney(): ?Money public function setPriceMoney(?Money $value = null): self { $this->priceMoney = $value; + $this->_setField('priceMoney'); return $this; } diff --git a/src/Types/SubscriptionSource.php b/src/Types/SubscriptionSource.php index 79c23f4b..1cf0caa4 100644 --- a/src/Types/SubscriptionSource.php +++ b/src/Types/SubscriptionSource.php @@ -45,6 +45,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } diff --git a/src/Types/SubscriptionTestResult.php b/src/Types/SubscriptionTestResult.php index c359e02a..c6b4c08b 100644 --- a/src/Types/SubscriptionTestResult.php +++ b/src/Types/SubscriptionTestResult.php @@ -96,6 +96,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -113,6 +114,7 @@ public function getStatusCode(): ?int public function setStatusCode(?int $value = null): self { $this->statusCode = $value; + $this->_setField('statusCode'); return $this; } @@ -130,6 +132,7 @@ public function getPayload(): ?array public function setPayload(?array $value = null): self { $this->payload = $value; + $this->_setField('payload'); return $this; } @@ -147,6 +150,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -164,6 +168,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -181,6 +186,7 @@ public function getNotificationUrl(): ?string public function setNotificationUrl(?string $value = null): self { $this->notificationUrl = $value; + $this->_setField('notificationUrl'); return $this; } @@ -198,6 +204,7 @@ public function getPassesFilter(): ?bool public function setPassesFilter(?bool $value = null): self { $this->passesFilter = $value; + $this->_setField('passesFilter'); return $this; } diff --git a/src/Types/SubscriptionUpdatedEvent.php b/src/Types/SubscriptionUpdatedEvent.php index 0b48cd96..0a66d15b 100644 --- a/src/Types/SubscriptionUpdatedEvent.php +++ b/src/Types/SubscriptionUpdatedEvent.php @@ -75,6 +75,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -92,6 +93,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -109,6 +111,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -126,6 +129,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -143,6 +147,7 @@ public function getData(): ?SubscriptionUpdatedEventData public function setData(?SubscriptionUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/SubscriptionUpdatedEventData.php b/src/Types/SubscriptionUpdatedEventData.php index f3987ee9..6a272eb7 100644 --- a/src/Types/SubscriptionUpdatedEventData.php +++ b/src/Types/SubscriptionUpdatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?SubscriptionUpdatedEventObject public function setObject(?SubscriptionUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/SubscriptionUpdatedEventObject.php b/src/Types/SubscriptionUpdatedEventObject.php index ddee0f1a..034f3f5a 100644 --- a/src/Types/SubscriptionUpdatedEventObject.php +++ b/src/Types/SubscriptionUpdatedEventObject.php @@ -38,6 +38,7 @@ public function getSubscription(): ?Subscription public function setSubscription(?Subscription $value = null): self { $this->subscription = $value; + $this->_setField('subscription'); return $this; } diff --git a/src/Types/SwapPlanResponse.php b/src/Types/SwapPlanResponse.php index 483c5d0b..eee71f34 100644 --- a/src/Types/SwapPlanResponse.php +++ b/src/Types/SwapPlanResponse.php @@ -59,6 +59,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -76,6 +77,7 @@ public function getSubscription(): ?Subscription public function setSubscription(?Subscription $value = null): self { $this->subscription = $value; + $this->_setField('subscription'); return $this; } @@ -93,6 +95,7 @@ public function getActions(): ?array public function setActions(?array $value = null): self { $this->actions = $value; + $this->_setField('actions'); return $this; } diff --git a/src/Types/TaxIds.php b/src/Types/TaxIds.php index 6d9eac51..e1bfab9c 100644 --- a/src/Types/TaxIds.php +++ b/src/Types/TaxIds.php @@ -90,6 +90,7 @@ public function getEuVat(): ?string public function setEuVat(?string $value = null): self { $this->euVat = $value; + $this->_setField('euVat'); return $this; } @@ -107,6 +108,7 @@ public function getFrSiret(): ?string public function setFrSiret(?string $value = null): self { $this->frSiret = $value; + $this->_setField('frSiret'); return $this; } @@ -124,6 +126,7 @@ public function getFrNaf(): ?string public function setFrNaf(?string $value = null): self { $this->frNaf = $value; + $this->_setField('frNaf'); return $this; } @@ -141,6 +144,7 @@ public function getEsNif(): ?string public function setEsNif(?string $value = null): self { $this->esNif = $value; + $this->_setField('esNif'); return $this; } @@ -158,6 +162,7 @@ public function getJpQii(): ?string public function setJpQii(?string $value = null): self { $this->jpQii = $value; + $this->_setField('jpQii'); return $this; } diff --git a/src/Types/TeamMember.php b/src/Types/TeamMember.php index 9e369669..35df54f1 100644 --- a/src/Types/TeamMember.php +++ b/src/Types/TeamMember.php @@ -139,6 +139,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -156,6 +157,7 @@ public function getReferenceId(): ?string public function setReferenceId(?string $value = null): self { $this->referenceId = $value; + $this->_setField('referenceId'); return $this; } @@ -173,6 +175,7 @@ public function getIsOwner(): ?bool public function setIsOwner(?bool $value = null): self { $this->isOwner = $value; + $this->_setField('isOwner'); return $this; } @@ -190,6 +193,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -207,6 +211,7 @@ public function getGivenName(): ?string public function setGivenName(?string $value = null): self { $this->givenName = $value; + $this->_setField('givenName'); return $this; } @@ -224,6 +229,7 @@ public function getFamilyName(): ?string public function setFamilyName(?string $value = null): self { $this->familyName = $value; + $this->_setField('familyName'); return $this; } @@ -241,6 +247,7 @@ public function getEmailAddress(): ?string public function setEmailAddress(?string $value = null): self { $this->emailAddress = $value; + $this->_setField('emailAddress'); return $this; } @@ -258,6 +265,7 @@ public function getPhoneNumber(): ?string public function setPhoneNumber(?string $value = null): self { $this->phoneNumber = $value; + $this->_setField('phoneNumber'); return $this; } @@ -275,6 +283,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -292,6 +301,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -309,6 +319,7 @@ public function getAssignedLocations(): ?TeamMemberAssignedLocations public function setAssignedLocations(?TeamMemberAssignedLocations $value = null): self { $this->assignedLocations = $value; + $this->_setField('assignedLocations'); return $this; } @@ -326,6 +337,7 @@ public function getWageSetting(): ?WageSetting public function setWageSetting(?WageSetting $value = null): self { $this->wageSetting = $value; + $this->_setField('wageSetting'); return $this; } diff --git a/src/Types/TeamMemberAssignedLocations.php b/src/Types/TeamMemberAssignedLocations.php index 67813b8c..79eda5ec 100644 --- a/src/Types/TeamMemberAssignedLocations.php +++ b/src/Types/TeamMemberAssignedLocations.php @@ -53,6 +53,7 @@ public function getAssignmentType(): ?string public function setAssignmentType(?string $value = null): self { $this->assignmentType = $value; + $this->_setField('assignmentType'); return $this; } @@ -70,6 +71,7 @@ public function getLocationIds(): ?array public function setLocationIds(?array $value = null): self { $this->locationIds = $value; + $this->_setField('locationIds'); return $this; } diff --git a/src/Types/TeamMemberBookingProfile.php b/src/Types/TeamMemberBookingProfile.php index 3a286a66..7b3618cc 100644 --- a/src/Types/TeamMemberBookingProfile.php +++ b/src/Types/TeamMemberBookingProfile.php @@ -73,6 +73,7 @@ public function getTeamMemberId(): ?string public function setTeamMemberId(?string $value = null): self { $this->teamMemberId = $value; + $this->_setField('teamMemberId'); return $this; } @@ -90,6 +91,7 @@ public function getDescription(): ?string public function setDescription(?string $value = null): self { $this->description = $value; + $this->_setField('description'); return $this; } @@ -107,6 +109,7 @@ public function getDisplayName(): ?string public function setDisplayName(?string $value = null): self { $this->displayName = $value; + $this->_setField('displayName'); return $this; } @@ -124,6 +127,7 @@ public function getIsBookable(): ?bool public function setIsBookable(?bool $value = null): self { $this->isBookable = $value; + $this->_setField('isBookable'); return $this; } @@ -141,6 +145,7 @@ public function getProfileImageUrl(): ?string public function setProfileImageUrl(?string $value = null): self { $this->profileImageUrl = $value; + $this->_setField('profileImageUrl'); return $this; } diff --git a/src/Types/TeamMemberCreatedEvent.php b/src/Types/TeamMemberCreatedEvent.php index 847edb12..dd0a4cad 100644 --- a/src/Types/TeamMemberCreatedEvent.php +++ b/src/Types/TeamMemberCreatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?TeamMemberCreatedEventData public function setData(?TeamMemberCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/TeamMemberCreatedEventData.php b/src/Types/TeamMemberCreatedEventData.php index 5cb12571..d7b420da 100644 --- a/src/Types/TeamMemberCreatedEventData.php +++ b/src/Types/TeamMemberCreatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?TeamMemberCreatedEventObject public function setObject(?TeamMemberCreatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/TeamMemberCreatedEventObject.php b/src/Types/TeamMemberCreatedEventObject.php index cbb827af..011acb3f 100644 --- a/src/Types/TeamMemberCreatedEventObject.php +++ b/src/Types/TeamMemberCreatedEventObject.php @@ -38,6 +38,7 @@ public function getTeamMember(): ?TeamMember public function setTeamMember(?TeamMember $value = null): self { $this->teamMember = $value; + $this->_setField('teamMember'); return $this; } diff --git a/src/Types/TeamMemberUpdatedEvent.php b/src/Types/TeamMemberUpdatedEvent.php index 43937024..6bf07e8a 100644 --- a/src/Types/TeamMemberUpdatedEvent.php +++ b/src/Types/TeamMemberUpdatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?TeamMemberUpdatedEventData public function setData(?TeamMemberUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/TeamMemberUpdatedEventData.php b/src/Types/TeamMemberUpdatedEventData.php index 20b9925b..a1e2d2e9 100644 --- a/src/Types/TeamMemberUpdatedEventData.php +++ b/src/Types/TeamMemberUpdatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?TeamMemberUpdatedEventObject public function setObject(?TeamMemberUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/TeamMemberUpdatedEventObject.php b/src/Types/TeamMemberUpdatedEventObject.php index 664eb8b9..6898eb28 100644 --- a/src/Types/TeamMemberUpdatedEventObject.php +++ b/src/Types/TeamMemberUpdatedEventObject.php @@ -38,6 +38,7 @@ public function getTeamMember(): ?TeamMember public function setTeamMember(?TeamMember $value = null): self { $this->teamMember = $value; + $this->_setField('teamMember'); return $this; } diff --git a/src/Types/TeamMemberWage.php b/src/Types/TeamMemberWage.php index 7a7ed0c8..fe9230f3 100644 --- a/src/Types/TeamMemberWage.php +++ b/src/Types/TeamMemberWage.php @@ -86,6 +86,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -103,6 +104,7 @@ public function getTeamMemberId(): ?string public function setTeamMemberId(?string $value = null): self { $this->teamMemberId = $value; + $this->_setField('teamMemberId'); return $this; } @@ -120,6 +122,7 @@ public function getTitle(): ?string public function setTitle(?string $value = null): self { $this->title = $value; + $this->_setField('title'); return $this; } @@ -137,6 +140,7 @@ public function getHourlyRate(): ?Money public function setHourlyRate(?Money $value = null): self { $this->hourlyRate = $value; + $this->_setField('hourlyRate'); return $this; } @@ -154,6 +158,7 @@ public function getJobId(): ?string public function setJobId(?string $value = null): self { $this->jobId = $value; + $this->_setField('jobId'); return $this; } @@ -171,6 +176,7 @@ public function getTipEligible(): ?bool public function setTipEligible(?bool $value = null): self { $this->tipEligible = $value; + $this->_setField('tipEligible'); return $this; } diff --git a/src/Types/TeamMemberWageSettingUpdatedEvent.php b/src/Types/TeamMemberWageSettingUpdatedEvent.php index cf5575b0..9bba6bd2 100644 --- a/src/Types/TeamMemberWageSettingUpdatedEvent.php +++ b/src/Types/TeamMemberWageSettingUpdatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?TeamMemberWageSettingUpdatedEventData public function setData(?TeamMemberWageSettingUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/TeamMemberWageSettingUpdatedEventData.php b/src/Types/TeamMemberWageSettingUpdatedEventData.php index c25ac19a..efd398ee 100644 --- a/src/Types/TeamMemberWageSettingUpdatedEventData.php +++ b/src/Types/TeamMemberWageSettingUpdatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?TeamMemberWageSettingUpdatedEventObject public function setObject(?TeamMemberWageSettingUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/TeamMemberWageSettingUpdatedEventObject.php b/src/Types/TeamMemberWageSettingUpdatedEventObject.php index c91bf963..305909ae 100644 --- a/src/Types/TeamMemberWageSettingUpdatedEventObject.php +++ b/src/Types/TeamMemberWageSettingUpdatedEventObject.php @@ -38,6 +38,7 @@ public function getWageSetting(): ?WageSetting public function setWageSetting(?WageSetting $value = null): self { $this->wageSetting = $value; + $this->_setField('wageSetting'); return $this; } diff --git a/src/Types/Tender.php b/src/Types/Tender.php index aff23f72..f4e02bb2 100644 --- a/src/Types/Tender.php +++ b/src/Types/Tender.php @@ -211,6 +211,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -228,6 +229,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -245,6 +247,7 @@ public function getTransactionId(): ?string public function setTransactionId(?string $value = null): self { $this->transactionId = $value; + $this->_setField('transactionId'); return $this; } @@ -262,6 +265,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -279,6 +283,7 @@ public function getNote(): ?string public function setNote(?string $value = null): self { $this->note = $value; + $this->_setField('note'); return $this; } @@ -296,6 +301,7 @@ public function getAmountMoney(): ?Money public function setAmountMoney(?Money $value = null): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } @@ -313,6 +319,7 @@ public function getTipMoney(): ?Money public function setTipMoney(?Money $value = null): self { $this->tipMoney = $value; + $this->_setField('tipMoney'); return $this; } @@ -330,6 +337,7 @@ public function getProcessingFeeMoney(): ?Money public function setProcessingFeeMoney(?Money $value = null): self { $this->processingFeeMoney = $value; + $this->_setField('processingFeeMoney'); return $this; } @@ -347,6 +355,7 @@ public function getCustomerId(): ?string public function setCustomerId(?string $value = null): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -364,6 +373,7 @@ public function getType(): string public function setType(string $value): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -381,6 +391,7 @@ public function getCardDetails(): ?TenderCardDetails public function setCardDetails(?TenderCardDetails $value = null): self { $this->cardDetails = $value; + $this->_setField('cardDetails'); return $this; } @@ -398,6 +409,7 @@ public function getCashDetails(): ?TenderCashDetails public function setCashDetails(?TenderCashDetails $value = null): self { $this->cashDetails = $value; + $this->_setField('cashDetails'); return $this; } @@ -415,6 +427,7 @@ public function getBankAccountDetails(): ?TenderBankAccountDetails public function setBankAccountDetails(?TenderBankAccountDetails $value = null): self { $this->bankAccountDetails = $value; + $this->_setField('bankAccountDetails'); return $this; } @@ -432,6 +445,7 @@ public function getBuyNowPayLaterDetails(): ?TenderBuyNowPayLaterDetails public function setBuyNowPayLaterDetails(?TenderBuyNowPayLaterDetails $value = null): self { $this->buyNowPayLaterDetails = $value; + $this->_setField('buyNowPayLaterDetails'); return $this; } @@ -449,6 +463,7 @@ public function getSquareAccountDetails(): ?TenderSquareAccountDetails public function setSquareAccountDetails(?TenderSquareAccountDetails $value = null): self { $this->squareAccountDetails = $value; + $this->_setField('squareAccountDetails'); return $this; } @@ -466,6 +481,7 @@ public function getAdditionalRecipients(): ?array public function setAdditionalRecipients(?array $value = null): self { $this->additionalRecipients = $value; + $this->_setField('additionalRecipients'); return $this; } @@ -483,6 +499,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } diff --git a/src/Types/TenderBankAccountDetails.php b/src/Types/TenderBankAccountDetails.php index addd0def..b246b215 100644 --- a/src/Types/TenderBankAccountDetails.php +++ b/src/Types/TenderBankAccountDetails.php @@ -49,6 +49,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } diff --git a/src/Types/TenderBuyNowPayLaterDetails.php b/src/Types/TenderBuyNowPayLaterDetails.php index 93a769a3..5e3cbd54 100644 --- a/src/Types/TenderBuyNowPayLaterDetails.php +++ b/src/Types/TenderBuyNowPayLaterDetails.php @@ -57,6 +57,7 @@ public function getBuyNowPayLaterBrand(): ?string public function setBuyNowPayLaterBrand(?string $value = null): self { $this->buyNowPayLaterBrand = $value; + $this->_setField('buyNowPayLaterBrand'); return $this; } @@ -74,6 +75,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } diff --git a/src/Types/TenderCardDetails.php b/src/Types/TenderCardDetails.php index 3b89f530..00af6fee 100644 --- a/src/Types/TenderCardDetails.php +++ b/src/Types/TenderCardDetails.php @@ -65,6 +65,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -82,6 +83,7 @@ public function getCard(): ?Card public function setCard(?Card $value = null): self { $this->card = $value; + $this->_setField('card'); return $this; } @@ -99,6 +101,7 @@ public function getEntryMethod(): ?string public function setEntryMethod(?string $value = null): self { $this->entryMethod = $value; + $this->_setField('entryMethod'); return $this; } diff --git a/src/Types/TenderCashDetails.php b/src/Types/TenderCashDetails.php index e3193090..fea49ff5 100644 --- a/src/Types/TenderCashDetails.php +++ b/src/Types/TenderCashDetails.php @@ -49,6 +49,7 @@ public function getBuyerTenderedMoney(): ?Money public function setBuyerTenderedMoney(?Money $value = null): self { $this->buyerTenderedMoney = $value; + $this->_setField('buyerTenderedMoney'); return $this; } @@ -66,6 +67,7 @@ public function getChangeBackMoney(): ?Money public function setChangeBackMoney(?Money $value = null): self { $this->changeBackMoney = $value; + $this->_setField('changeBackMoney'); return $this; } diff --git a/src/Types/TenderSquareAccountDetails.php b/src/Types/TenderSquareAccountDetails.php index aecd67c6..e96a65f6 100644 --- a/src/Types/TenderSquareAccountDetails.php +++ b/src/Types/TenderSquareAccountDetails.php @@ -46,6 +46,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } diff --git a/src/Types/TerminalAction.php b/src/Types/TerminalAction.php index 3788d008..52349e4a 100644 --- a/src/Types/TerminalAction.php +++ b/src/Types/TerminalAction.php @@ -230,6 +230,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -247,6 +248,7 @@ public function getDeviceId(): ?string public function setDeviceId(?string $value = null): self { $this->deviceId = $value; + $this->_setField('deviceId'); return $this; } @@ -264,6 +266,7 @@ public function getDeadlineDuration(): ?string public function setDeadlineDuration(?string $value = null): self { $this->deadlineDuration = $value; + $this->_setField('deadlineDuration'); return $this; } @@ -281,6 +284,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -298,6 +302,7 @@ public function getCancelReason(): ?string public function setCancelReason(?string $value = null): self { $this->cancelReason = $value; + $this->_setField('cancelReason'); return $this; } @@ -315,6 +320,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -332,6 +338,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -349,6 +356,7 @@ public function getAppId(): ?string public function setAppId(?string $value = null): self { $this->appId = $value; + $this->_setField('appId'); return $this; } @@ -366,6 +374,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -383,6 +392,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -400,6 +410,7 @@ public function getQrCodeOptions(): ?QrCodeOptions public function setQrCodeOptions(?QrCodeOptions $value = null): self { $this->qrCodeOptions = $value; + $this->_setField('qrCodeOptions'); return $this; } @@ -417,6 +428,7 @@ public function getSaveCardOptions(): ?SaveCardOptions public function setSaveCardOptions(?SaveCardOptions $value = null): self { $this->saveCardOptions = $value; + $this->_setField('saveCardOptions'); return $this; } @@ -434,6 +446,7 @@ public function getSignatureOptions(): ?SignatureOptions public function setSignatureOptions(?SignatureOptions $value = null): self { $this->signatureOptions = $value; + $this->_setField('signatureOptions'); return $this; } @@ -451,6 +464,7 @@ public function getConfirmationOptions(): ?ConfirmationOptions public function setConfirmationOptions(?ConfirmationOptions $value = null): self { $this->confirmationOptions = $value; + $this->_setField('confirmationOptions'); return $this; } @@ -468,6 +482,7 @@ public function getReceiptOptions(): ?ReceiptOptions public function setReceiptOptions(?ReceiptOptions $value = null): self { $this->receiptOptions = $value; + $this->_setField('receiptOptions'); return $this; } @@ -485,6 +500,7 @@ public function getDataCollectionOptions(): ?DataCollectionOptions public function setDataCollectionOptions(?DataCollectionOptions $value = null): self { $this->dataCollectionOptions = $value; + $this->_setField('dataCollectionOptions'); return $this; } @@ -502,6 +518,7 @@ public function getSelectOptions(): ?SelectOptions public function setSelectOptions(?SelectOptions $value = null): self { $this->selectOptions = $value; + $this->_setField('selectOptions'); return $this; } @@ -519,6 +536,7 @@ public function getDeviceMetadata(): ?DeviceMetadata public function setDeviceMetadata(?DeviceMetadata $value = null): self { $this->deviceMetadata = $value; + $this->_setField('deviceMetadata'); return $this; } @@ -536,6 +554,7 @@ public function getAwaitNextAction(): ?bool public function setAwaitNextAction(?bool $value = null): self { $this->awaitNextAction = $value; + $this->_setField('awaitNextAction'); return $this; } @@ -553,6 +572,7 @@ public function getAwaitNextActionDuration(): ?string public function setAwaitNextActionDuration(?string $value = null): self { $this->awaitNextActionDuration = $value; + $this->_setField('awaitNextActionDuration'); return $this; } diff --git a/src/Types/TerminalActionCreatedEvent.php b/src/Types/TerminalActionCreatedEvent.php index 386bb053..3cdd74bc 100644 --- a/src/Types/TerminalActionCreatedEvent.php +++ b/src/Types/TerminalActionCreatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?TerminalActionCreatedEventData public function setData(?TerminalActionCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/TerminalActionCreatedEventData.php b/src/Types/TerminalActionCreatedEventData.php index 8a4113f3..b0a1e51b 100644 --- a/src/Types/TerminalActionCreatedEventData.php +++ b/src/Types/TerminalActionCreatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?TerminalActionCreatedEventObject public function setObject(?TerminalActionCreatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/TerminalActionCreatedEventObject.php b/src/Types/TerminalActionCreatedEventObject.php index 1cbd75f1..e58fa060 100644 --- a/src/Types/TerminalActionCreatedEventObject.php +++ b/src/Types/TerminalActionCreatedEventObject.php @@ -38,6 +38,7 @@ public function getAction(): ?TerminalAction public function setAction(?TerminalAction $value = null): self { $this->action = $value; + $this->_setField('action'); return $this; } diff --git a/src/Types/TerminalActionQuery.php b/src/Types/TerminalActionQuery.php index ec616c85..789cc5ce 100644 --- a/src/Types/TerminalActionQuery.php +++ b/src/Types/TerminalActionQuery.php @@ -46,6 +46,7 @@ public function getFilter(): ?TerminalActionQueryFilter public function setFilter(?TerminalActionQueryFilter $value = null): self { $this->filter = $value; + $this->_setField('filter'); return $this; } @@ -63,6 +64,7 @@ public function getSort(): ?TerminalActionQuerySort public function setSort(?TerminalActionQuerySort $value = null): self { $this->sort = $value; + $this->_setField('sort'); return $this; } diff --git a/src/Types/TerminalActionQueryFilter.php b/src/Types/TerminalActionQueryFilter.php index 4e52348e..bd3ffbc4 100644 --- a/src/Types/TerminalActionQueryFilter.php +++ b/src/Types/TerminalActionQueryFilter.php @@ -75,6 +75,7 @@ public function getDeviceId(): ?string public function setDeviceId(?string $value = null): self { $this->deviceId = $value; + $this->_setField('deviceId'); return $this; } @@ -92,6 +93,7 @@ public function getCreatedAt(): ?TimeRange public function setCreatedAt(?TimeRange $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -109,6 +111,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -126,6 +129,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } diff --git a/src/Types/TerminalActionQuerySort.php b/src/Types/TerminalActionQuerySort.php index 347f36ed..48ecce51 100644 --- a/src/Types/TerminalActionQuerySort.php +++ b/src/Types/TerminalActionQuerySort.php @@ -43,6 +43,7 @@ public function getSortOrder(): ?string public function setSortOrder(?string $value = null): self { $this->sortOrder = $value; + $this->_setField('sortOrder'); return $this; } diff --git a/src/Types/TerminalActionUpdatedEvent.php b/src/Types/TerminalActionUpdatedEvent.php index 3442dc8b..f5c76ace 100644 --- a/src/Types/TerminalActionUpdatedEvent.php +++ b/src/Types/TerminalActionUpdatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?TerminalActionUpdatedEventData public function setData(?TerminalActionUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/TerminalActionUpdatedEventData.php b/src/Types/TerminalActionUpdatedEventData.php index 90921131..d08fbf46 100644 --- a/src/Types/TerminalActionUpdatedEventData.php +++ b/src/Types/TerminalActionUpdatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?TerminalActionUpdatedEventObject public function setObject(?TerminalActionUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/TerminalActionUpdatedEventObject.php b/src/Types/TerminalActionUpdatedEventObject.php index 4002ccec..f31c8a4a 100644 --- a/src/Types/TerminalActionUpdatedEventObject.php +++ b/src/Types/TerminalActionUpdatedEventObject.php @@ -38,6 +38,7 @@ public function getAction(): ?TerminalAction public function setAction(?TerminalAction $value = null): self { $this->action = $value; + $this->_setField('action'); return $this; } diff --git a/src/Types/TerminalCheckout.php b/src/Types/TerminalCheckout.php index 0258f6c7..e9d65799 100644 --- a/src/Types/TerminalCheckout.php +++ b/src/Types/TerminalCheckout.php @@ -247,6 +247,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -264,6 +265,7 @@ public function getAmountMoney(): Money public function setAmountMoney(Money $value): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } @@ -281,6 +283,7 @@ public function getReferenceId(): ?string public function setReferenceId(?string $value = null): self { $this->referenceId = $value; + $this->_setField('referenceId'); return $this; } @@ -298,6 +301,7 @@ public function getNote(): ?string public function setNote(?string $value = null): self { $this->note = $value; + $this->_setField('note'); return $this; } @@ -315,6 +319,7 @@ public function getOrderId(): ?string public function setOrderId(?string $value = null): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } @@ -332,6 +337,7 @@ public function getPaymentOptions(): ?PaymentOptions public function setPaymentOptions(?PaymentOptions $value = null): self { $this->paymentOptions = $value; + $this->_setField('paymentOptions'); return $this; } @@ -349,6 +355,7 @@ public function getDeviceOptions(): DeviceCheckoutOptions public function setDeviceOptions(DeviceCheckoutOptions $value): self { $this->deviceOptions = $value; + $this->_setField('deviceOptions'); return $this; } @@ -366,6 +373,7 @@ public function getDeadlineDuration(): ?string public function setDeadlineDuration(?string $value = null): self { $this->deadlineDuration = $value; + $this->_setField('deadlineDuration'); return $this; } @@ -383,6 +391,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -400,6 +409,7 @@ public function getCancelReason(): ?string public function setCancelReason(?string $value = null): self { $this->cancelReason = $value; + $this->_setField('cancelReason'); return $this; } @@ -417,6 +427,7 @@ public function getPaymentIds(): ?array public function setPaymentIds(?array $value = null): self { $this->paymentIds = $value; + $this->_setField('paymentIds'); return $this; } @@ -434,6 +445,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -451,6 +463,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -468,6 +481,7 @@ public function getAppId(): ?string public function setAppId(?string $value = null): self { $this->appId = $value; + $this->_setField('appId'); return $this; } @@ -485,6 +499,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -502,6 +517,7 @@ public function getPaymentType(): ?string public function setPaymentType(?string $value = null): self { $this->paymentType = $value; + $this->_setField('paymentType'); return $this; } @@ -519,6 +535,7 @@ public function getTeamMemberId(): ?string public function setTeamMemberId(?string $value = null): self { $this->teamMemberId = $value; + $this->_setField('teamMemberId'); return $this; } @@ -536,6 +553,7 @@ public function getCustomerId(): ?string public function setCustomerId(?string $value = null): self { $this->customerId = $value; + $this->_setField('customerId'); return $this; } @@ -553,6 +571,7 @@ public function getAppFeeMoney(): ?Money public function setAppFeeMoney(?Money $value = null): self { $this->appFeeMoney = $value; + $this->_setField('appFeeMoney'); return $this; } @@ -570,6 +589,7 @@ public function getStatementDescriptionIdentifier(): ?string public function setStatementDescriptionIdentifier(?string $value = null): self { $this->statementDescriptionIdentifier = $value; + $this->_setField('statementDescriptionIdentifier'); return $this; } @@ -587,6 +607,7 @@ public function getTipMoney(): ?Money public function setTipMoney(?Money $value = null): self { $this->tipMoney = $value; + $this->_setField('tipMoney'); return $this; } diff --git a/src/Types/TerminalCheckoutCreatedEvent.php b/src/Types/TerminalCheckoutCreatedEvent.php index 7a782733..40366504 100644 --- a/src/Types/TerminalCheckoutCreatedEvent.php +++ b/src/Types/TerminalCheckoutCreatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?TerminalCheckoutCreatedEventData public function setData(?TerminalCheckoutCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/TerminalCheckoutCreatedEventData.php b/src/Types/TerminalCheckoutCreatedEventData.php index c867b71b..6a6d1669 100644 --- a/src/Types/TerminalCheckoutCreatedEventData.php +++ b/src/Types/TerminalCheckoutCreatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?TerminalCheckoutCreatedEventObject public function setObject(?TerminalCheckoutCreatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/TerminalCheckoutCreatedEventObject.php b/src/Types/TerminalCheckoutCreatedEventObject.php index e77f0d70..68777982 100644 --- a/src/Types/TerminalCheckoutCreatedEventObject.php +++ b/src/Types/TerminalCheckoutCreatedEventObject.php @@ -38,6 +38,7 @@ public function getCheckout(): ?TerminalCheckout public function setCheckout(?TerminalCheckout $value = null): self { $this->checkout = $value; + $this->_setField('checkout'); return $this; } diff --git a/src/Types/TerminalCheckoutQuery.php b/src/Types/TerminalCheckoutQuery.php index bdd2d49d..33599450 100644 --- a/src/Types/TerminalCheckoutQuery.php +++ b/src/Types/TerminalCheckoutQuery.php @@ -46,6 +46,7 @@ public function getFilter(): ?TerminalCheckoutQueryFilter public function setFilter(?TerminalCheckoutQueryFilter $value = null): self { $this->filter = $value; + $this->_setField('filter'); return $this; } @@ -63,6 +64,7 @@ public function getSort(): ?TerminalCheckoutQuerySort public function setSort(?TerminalCheckoutQuerySort $value = null): self { $this->sort = $value; + $this->_setField('sort'); return $this; } diff --git a/src/Types/TerminalCheckoutQueryFilter.php b/src/Types/TerminalCheckoutQueryFilter.php index b44e7fb5..baa8708a 100644 --- a/src/Types/TerminalCheckoutQueryFilter.php +++ b/src/Types/TerminalCheckoutQueryFilter.php @@ -64,6 +64,7 @@ public function getDeviceId(): ?string public function setDeviceId(?string $value = null): self { $this->deviceId = $value; + $this->_setField('deviceId'); return $this; } @@ -81,6 +82,7 @@ public function getCreatedAt(): ?TimeRange public function setCreatedAt(?TimeRange $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -98,6 +100,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } diff --git a/src/Types/TerminalCheckoutQuerySort.php b/src/Types/TerminalCheckoutQuerySort.php index 6463845c..554da3f8 100644 --- a/src/Types/TerminalCheckoutQuerySort.php +++ b/src/Types/TerminalCheckoutQuerySort.php @@ -42,6 +42,7 @@ public function getSortOrder(): ?string public function setSortOrder(?string $value = null): self { $this->sortOrder = $value; + $this->_setField('sortOrder'); return $this; } diff --git a/src/Types/TerminalCheckoutUpdatedEvent.php b/src/Types/TerminalCheckoutUpdatedEvent.php index d37104fc..0ec0ad2f 100644 --- a/src/Types/TerminalCheckoutUpdatedEvent.php +++ b/src/Types/TerminalCheckoutUpdatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?TerminalCheckoutUpdatedEventData public function setData(?TerminalCheckoutUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/TerminalCheckoutUpdatedEventData.php b/src/Types/TerminalCheckoutUpdatedEventData.php index 4617f6cf..f1845bdf 100644 --- a/src/Types/TerminalCheckoutUpdatedEventData.php +++ b/src/Types/TerminalCheckoutUpdatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?TerminalCheckoutUpdatedEventObject public function setObject(?TerminalCheckoutUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/TerminalCheckoutUpdatedEventObject.php b/src/Types/TerminalCheckoutUpdatedEventObject.php index d60d1de8..4685daa2 100644 --- a/src/Types/TerminalCheckoutUpdatedEventObject.php +++ b/src/Types/TerminalCheckoutUpdatedEventObject.php @@ -38,6 +38,7 @@ public function getCheckout(): ?TerminalCheckout public function setCheckout(?TerminalCheckout $value = null): self { $this->checkout = $value; + $this->_setField('checkout'); return $this; } diff --git a/src/Types/TerminalRefund.php b/src/Types/TerminalRefund.php index affa532f..74d26a50 100644 --- a/src/Types/TerminalRefund.php +++ b/src/Types/TerminalRefund.php @@ -166,6 +166,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -183,6 +184,7 @@ public function getRefundId(): ?string public function setRefundId(?string $value = null): self { $this->refundId = $value; + $this->_setField('refundId'); return $this; } @@ -200,6 +202,7 @@ public function getPaymentId(): string public function setPaymentId(string $value): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } @@ -217,6 +220,7 @@ public function getOrderId(): ?string public function setOrderId(?string $value = null): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } @@ -234,6 +238,7 @@ public function getAmountMoney(): Money public function setAmountMoney(Money $value): self { $this->amountMoney = $value; + $this->_setField('amountMoney'); return $this; } @@ -251,6 +256,7 @@ public function getReason(): string public function setReason(string $value): self { $this->reason = $value; + $this->_setField('reason'); return $this; } @@ -268,6 +274,7 @@ public function getDeviceId(): string public function setDeviceId(string $value): self { $this->deviceId = $value; + $this->_setField('deviceId'); return $this; } @@ -285,6 +292,7 @@ public function getDeadlineDuration(): ?string public function setDeadlineDuration(?string $value = null): self { $this->deadlineDuration = $value; + $this->_setField('deadlineDuration'); return $this; } @@ -302,6 +310,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -319,6 +328,7 @@ public function getCancelReason(): ?string public function setCancelReason(?string $value = null): self { $this->cancelReason = $value; + $this->_setField('cancelReason'); return $this; } @@ -336,6 +346,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -353,6 +364,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -370,6 +382,7 @@ public function getAppId(): ?string public function setAppId(?string $value = null): self { $this->appId = $value; + $this->_setField('appId'); return $this; } @@ -387,6 +400,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } diff --git a/src/Types/TerminalRefundCreatedEvent.php b/src/Types/TerminalRefundCreatedEvent.php index 57b068cd..77fa838d 100644 --- a/src/Types/TerminalRefundCreatedEvent.php +++ b/src/Types/TerminalRefundCreatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?TerminalRefundCreatedEventData public function setData(?TerminalRefundCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/TerminalRefundCreatedEventData.php b/src/Types/TerminalRefundCreatedEventData.php index 54b00d89..93c2b5ec 100644 --- a/src/Types/TerminalRefundCreatedEventData.php +++ b/src/Types/TerminalRefundCreatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?TerminalRefundCreatedEventObject public function setObject(?TerminalRefundCreatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/TerminalRefundCreatedEventObject.php b/src/Types/TerminalRefundCreatedEventObject.php index 5f796bcd..483fdefb 100644 --- a/src/Types/TerminalRefundCreatedEventObject.php +++ b/src/Types/TerminalRefundCreatedEventObject.php @@ -38,6 +38,7 @@ public function getRefund(): ?TerminalRefund public function setRefund(?TerminalRefund $value = null): self { $this->refund = $value; + $this->_setField('refund'); return $this; } diff --git a/src/Types/TerminalRefundQuery.php b/src/Types/TerminalRefundQuery.php index be71991f..d2a2736d 100644 --- a/src/Types/TerminalRefundQuery.php +++ b/src/Types/TerminalRefundQuery.php @@ -46,6 +46,7 @@ public function getFilter(): ?TerminalRefundQueryFilter public function setFilter(?TerminalRefundQueryFilter $value = null): self { $this->filter = $value; + $this->_setField('filter'); return $this; } @@ -63,6 +64,7 @@ public function getSort(): ?TerminalRefundQuerySort public function setSort(?TerminalRefundQuerySort $value = null): self { $this->sort = $value; + $this->_setField('sort'); return $this; } diff --git a/src/Types/TerminalRefundQueryFilter.php b/src/Types/TerminalRefundQueryFilter.php index 3409ae4b..7eaf9481 100644 --- a/src/Types/TerminalRefundQueryFilter.php +++ b/src/Types/TerminalRefundQueryFilter.php @@ -64,6 +64,7 @@ public function getDeviceId(): ?string public function setDeviceId(?string $value = null): self { $this->deviceId = $value; + $this->_setField('deviceId'); return $this; } @@ -81,6 +82,7 @@ public function getCreatedAt(): ?TimeRange public function setCreatedAt(?TimeRange $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -98,6 +100,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } diff --git a/src/Types/TerminalRefundQuerySort.php b/src/Types/TerminalRefundQuerySort.php index be2c68b9..97e3f756 100644 --- a/src/Types/TerminalRefundQuerySort.php +++ b/src/Types/TerminalRefundQuerySort.php @@ -42,6 +42,7 @@ public function getSortOrder(): ?string public function setSortOrder(?string $value = null): self { $this->sortOrder = $value; + $this->_setField('sortOrder'); return $this; } diff --git a/src/Types/TerminalRefundUpdatedEvent.php b/src/Types/TerminalRefundUpdatedEvent.php index c2a25516..22ea2605 100644 --- a/src/Types/TerminalRefundUpdatedEvent.php +++ b/src/Types/TerminalRefundUpdatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?TerminalRefundUpdatedEventData public function setData(?TerminalRefundUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/TerminalRefundUpdatedEventData.php b/src/Types/TerminalRefundUpdatedEventData.php index beedbb27..ec29f26b 100644 --- a/src/Types/TerminalRefundUpdatedEventData.php +++ b/src/Types/TerminalRefundUpdatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?TerminalRefundUpdatedEventObject public function setObject(?TerminalRefundUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/TerminalRefundUpdatedEventObject.php b/src/Types/TerminalRefundUpdatedEventObject.php index 8a3c0bc1..d399642b 100644 --- a/src/Types/TerminalRefundUpdatedEventObject.php +++ b/src/Types/TerminalRefundUpdatedEventObject.php @@ -38,6 +38,7 @@ public function getRefund(): ?TerminalRefund public function setRefund(?TerminalRefund $value = null): self { $this->refund = $value; + $this->_setField('refund'); return $this; } diff --git a/src/Types/TestWebhookSubscriptionResponse.php b/src/Types/TestWebhookSubscriptionResponse.php index 84190d45..998a74e5 100644 --- a/src/Types/TestWebhookSubscriptionResponse.php +++ b/src/Types/TestWebhookSubscriptionResponse.php @@ -82,6 +82,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -99,6 +100,7 @@ public function getSubscriptionTestResult(): ?SubscriptionTestResult public function setSubscriptionTestResult(?SubscriptionTestResult $value = null): self { $this->subscriptionTestResult = $value; + $this->_setField('subscriptionTestResult'); return $this; } @@ -116,6 +118,7 @@ public function getNotificationUrl(): ?string public function setNotificationUrl(?string $value = null): self { $this->notificationUrl = $value; + $this->_setField('notificationUrl'); return $this; } @@ -133,6 +136,7 @@ public function getStatusCode(): ?int public function setStatusCode(?int $value = null): self { $this->statusCode = $value; + $this->_setField('statusCode'); return $this; } @@ -150,6 +154,7 @@ public function getPassesFilter(): ?bool public function setPassesFilter(?bool $value = null): self { $this->passesFilter = $value; + $this->_setField('passesFilter'); return $this; } @@ -167,6 +172,7 @@ public function getPayload(): ?array public function setPayload(?array $value = null): self { $this->payload = $value; + $this->_setField('payload'); return $this; } diff --git a/src/Types/TimeRange.php b/src/Types/TimeRange.php index c01c8b31..81463bd5 100644 --- a/src/Types/TimeRange.php +++ b/src/Types/TimeRange.php @@ -59,6 +59,7 @@ public function getStartAt(): ?string public function setStartAt(?string $value = null): self { $this->startAt = $value; + $this->_setField('startAt'); return $this; } @@ -76,6 +77,7 @@ public function getEndAt(): ?string public function setEndAt(?string $value = null): self { $this->endAt = $value; + $this->_setField('endAt'); return $this; } diff --git a/src/Types/Timecard.php b/src/Types/Timecard.php index ac44e4e6..8d9ea5a4 100644 --- a/src/Types/Timecard.php +++ b/src/Types/Timecard.php @@ -164,6 +164,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -181,6 +182,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -198,6 +200,7 @@ public function getTimezone(): ?string public function setTimezone(?string $value = null): self { $this->timezone = $value; + $this->_setField('timezone'); return $this; } @@ -215,6 +218,7 @@ public function getStartAt(): string public function setStartAt(string $value): self { $this->startAt = $value; + $this->_setField('startAt'); return $this; } @@ -232,6 +236,7 @@ public function getEndAt(): ?string public function setEndAt(?string $value = null): self { $this->endAt = $value; + $this->_setField('endAt'); return $this; } @@ -249,6 +254,7 @@ public function getWage(): ?TimecardWage public function setWage(?TimecardWage $value = null): self { $this->wage = $value; + $this->_setField('wage'); return $this; } @@ -266,6 +272,7 @@ public function getBreaks(): ?array public function setBreaks(?array $value = null): self { $this->breaks = $value; + $this->_setField('breaks'); return $this; } @@ -283,6 +290,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -300,6 +308,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -317,6 +326,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -334,6 +344,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -351,6 +362,7 @@ public function getTeamMemberId(): string public function setTeamMemberId(string $value): self { $this->teamMemberId = $value; + $this->_setField('teamMemberId'); return $this; } @@ -368,6 +380,7 @@ public function getDeclaredCashTipMoney(): ?Money public function setDeclaredCashTipMoney(?Money $value = null): self { $this->declaredCashTipMoney = $value; + $this->_setField('declaredCashTipMoney'); return $this; } diff --git a/src/Types/TimecardFilter.php b/src/Types/TimecardFilter.php index 35ffa76a..a1d2458d 100644 --- a/src/Types/TimecardFilter.php +++ b/src/Types/TimecardFilter.php @@ -86,6 +86,7 @@ public function getLocationIds(): ?array public function setLocationIds(?array $value = null): self { $this->locationIds = $value; + $this->_setField('locationIds'); return $this; } @@ -103,6 +104,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -120,6 +122,7 @@ public function getStart(): ?TimeRange public function setStart(?TimeRange $value = null): self { $this->start = $value; + $this->_setField('start'); return $this; } @@ -137,6 +140,7 @@ public function getEnd(): ?TimeRange public function setEnd(?TimeRange $value = null): self { $this->end = $value; + $this->_setField('end'); return $this; } @@ -154,6 +158,7 @@ public function getWorkday(): ?TimecardWorkday public function setWorkday(?TimecardWorkday $value = null): self { $this->workday = $value; + $this->_setField('workday'); return $this; } @@ -171,6 +176,7 @@ public function getTeamMemberIds(): ?array public function setTeamMemberIds(?array $value = null): self { $this->teamMemberIds = $value; + $this->_setField('teamMemberIds'); return $this; } diff --git a/src/Types/TimecardQuery.php b/src/Types/TimecardQuery.php index c2f54209..e1e92d6e 100644 --- a/src/Types/TimecardQuery.php +++ b/src/Types/TimecardQuery.php @@ -49,6 +49,7 @@ public function getFilter(): ?TimecardFilter public function setFilter(?TimecardFilter $value = null): self { $this->filter = $value; + $this->_setField('filter'); return $this; } @@ -66,6 +67,7 @@ public function getSort(): ?TimecardSort public function setSort(?TimecardSort $value = null): self { $this->sort = $value; + $this->_setField('sort'); return $this; } diff --git a/src/Types/TimecardSort.php b/src/Types/TimecardSort.php index 06c4771f..b045e871 100644 --- a/src/Types/TimecardSort.php +++ b/src/Types/TimecardSort.php @@ -55,6 +55,7 @@ public function getField(): ?string public function setField(?string $value = null): self { $this->field = $value; + $this->_setField('field'); return $this; } @@ -72,6 +73,7 @@ public function getOrder(): ?string public function setOrder(?string $value = null): self { $this->order = $value; + $this->_setField('order'); return $this; } diff --git a/src/Types/TimecardWage.php b/src/Types/TimecardWage.php index 402f461b..ac8c2d16 100644 --- a/src/Types/TimecardWage.php +++ b/src/Types/TimecardWage.php @@ -71,6 +71,7 @@ public function getTitle(): ?string public function setTitle(?string $value = null): self { $this->title = $value; + $this->_setField('title'); return $this; } @@ -88,6 +89,7 @@ public function getHourlyRate(): ?Money public function setHourlyRate(?Money $value = null): self { $this->hourlyRate = $value; + $this->_setField('hourlyRate'); return $this; } @@ -105,6 +107,7 @@ public function getJobId(): ?string public function setJobId(?string $value = null): self { $this->jobId = $value; + $this->_setField('jobId'); return $this; } @@ -122,6 +125,7 @@ public function getTipEligible(): ?bool public function setTipEligible(?bool $value = null): self { $this->tipEligible = $value; + $this->_setField('tipEligible'); return $this; } diff --git a/src/Types/TimecardWorkday.php b/src/Types/TimecardWorkday.php index 924bb8c3..0ab38b93 100644 --- a/src/Types/TimecardWorkday.php +++ b/src/Types/TimecardWorkday.php @@ -66,6 +66,7 @@ public function getDateRange(): ?DateRange public function setDateRange(?DateRange $value = null): self { $this->dateRange = $value; + $this->_setField('dateRange'); return $this; } @@ -83,6 +84,7 @@ public function getMatchTimecardsBy(): ?string public function setMatchTimecardsBy(?string $value = null): self { $this->matchTimecardsBy = $value; + $this->_setField('matchTimecardsBy'); return $this; } @@ -100,6 +102,7 @@ public function getDefaultTimezone(): ?string public function setDefaultTimezone(?string $value = null): self { $this->defaultTimezone = $value; + $this->_setField('defaultTimezone'); return $this; } diff --git a/src/Types/TipSettings.php b/src/Types/TipSettings.php index 2d3ec983..dcb015cf 100644 --- a/src/Types/TipSettings.php +++ b/src/Types/TipSettings.php @@ -89,6 +89,7 @@ public function getAllowTipping(): ?bool public function setAllowTipping(?bool $value = null): self { $this->allowTipping = $value; + $this->_setField('allowTipping'); return $this; } @@ -106,6 +107,7 @@ public function getSeparateTipScreen(): ?bool public function setSeparateTipScreen(?bool $value = null): self { $this->separateTipScreen = $value; + $this->_setField('separateTipScreen'); return $this; } @@ -123,6 +125,7 @@ public function getCustomTipField(): ?bool public function setCustomTipField(?bool $value = null): self { $this->customTipField = $value; + $this->_setField('customTipField'); return $this; } @@ -140,6 +143,7 @@ public function getTipPercentages(): ?array public function setTipPercentages(?array $value = null): self { $this->tipPercentages = $value; + $this->_setField('tipPercentages'); return $this; } @@ -157,6 +161,7 @@ public function getSmartTipping(): ?bool public function setSmartTipping(?bool $value = null): self { $this->smartTipping = $value; + $this->_setField('smartTipping'); return $this; } diff --git a/src/Types/Transaction.php b/src/Types/Transaction.php index 65a6c12d..c075b257 100644 --- a/src/Types/Transaction.php +++ b/src/Types/Transaction.php @@ -136,6 +136,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -153,6 +154,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -170,6 +172,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -187,6 +190,7 @@ public function getTenders(): ?array public function setTenders(?array $value = null): self { $this->tenders = $value; + $this->_setField('tenders'); return $this; } @@ -204,6 +208,7 @@ public function getRefunds(): ?array public function setRefunds(?array $value = null): self { $this->refunds = $value; + $this->_setField('refunds'); return $this; } @@ -221,6 +226,7 @@ public function getReferenceId(): ?string public function setReferenceId(?string $value = null): self { $this->referenceId = $value; + $this->_setField('referenceId'); return $this; } @@ -238,6 +244,7 @@ public function getProduct(): ?string public function setProduct(?string $value = null): self { $this->product = $value; + $this->_setField('product'); return $this; } @@ -255,6 +262,7 @@ public function getClientId(): ?string public function setClientId(?string $value = null): self { $this->clientId = $value; + $this->_setField('clientId'); return $this; } @@ -272,6 +280,7 @@ public function getShippingAddress(): ?Address public function setShippingAddress(?Address $value = null): self { $this->shippingAddress = $value; + $this->_setField('shippingAddress'); return $this; } @@ -289,6 +298,7 @@ public function getOrderId(): ?string public function setOrderId(?string $value = null): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } diff --git a/src/Types/TransferOrder.php b/src/Types/TransferOrder.php index f0e29747..cbdfbd32 100644 --- a/src/Types/TransferOrder.php +++ b/src/Types/TransferOrder.php @@ -207,6 +207,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -224,6 +225,7 @@ public function getSourceLocationId(): ?string public function setSourceLocationId(?string $value = null): self { $this->sourceLocationId = $value; + $this->_setField('sourceLocationId'); return $this; } @@ -241,6 +243,7 @@ public function getDestinationLocationId(): ?string public function setDestinationLocationId(?string $value = null): self { $this->destinationLocationId = $value; + $this->_setField('destinationLocationId'); return $this; } @@ -258,6 +261,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } @@ -275,6 +279,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -292,6 +297,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -309,6 +315,7 @@ public function getExpectedAt(): ?string public function setExpectedAt(?string $value = null): self { $this->expectedAt = $value; + $this->_setField('expectedAt'); return $this; } @@ -326,6 +333,7 @@ public function getCompletedAt(): ?string public function setCompletedAt(?string $value = null): self { $this->completedAt = $value; + $this->_setField('completedAt'); return $this; } @@ -343,6 +351,7 @@ public function getNotes(): ?string public function setNotes(?string $value = null): self { $this->notes = $value; + $this->_setField('notes'); return $this; } @@ -360,6 +369,7 @@ public function getTrackingNumber(): ?string public function setTrackingNumber(?string $value = null): self { $this->trackingNumber = $value; + $this->_setField('trackingNumber'); return $this; } @@ -377,6 +387,7 @@ public function getCreatedByTeamMemberId(): ?string public function setCreatedByTeamMemberId(?string $value = null): self { $this->createdByTeamMemberId = $value; + $this->_setField('createdByTeamMemberId'); return $this; } @@ -394,6 +405,7 @@ public function getLineItems(): ?array public function setLineItems(?array $value = null): self { $this->lineItems = $value; + $this->_setField('lineItems'); return $this; } @@ -411,6 +423,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } diff --git a/src/Types/TransferOrderCreatedEvent.php b/src/Types/TransferOrderCreatedEvent.php index 984c1124..cf4337f5 100644 --- a/src/Types/TransferOrderCreatedEvent.php +++ b/src/Types/TransferOrderCreatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?TransferOrderCreatedEventData public function setData(?TransferOrderCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/TransferOrderCreatedEventData.php b/src/Types/TransferOrderCreatedEventData.php index 32bcf304..b44ace76 100644 --- a/src/Types/TransferOrderCreatedEventData.php +++ b/src/Types/TransferOrderCreatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?TransferOrderCreatedEventObject public function setObject(?TransferOrderCreatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/TransferOrderCreatedEventObject.php b/src/Types/TransferOrderCreatedEventObject.php index 57505ad5..1ad776e1 100644 --- a/src/Types/TransferOrderCreatedEventObject.php +++ b/src/Types/TransferOrderCreatedEventObject.php @@ -38,6 +38,7 @@ public function getTransferOrder(): ?TransferOrder public function setTransferOrder(?TransferOrder $value = null): self { $this->transferOrder = $value; + $this->_setField('transferOrder'); return $this; } diff --git a/src/Types/TransferOrderDeletedEvent.php b/src/Types/TransferOrderDeletedEvent.php index d3b212d6..d97b10ca 100644 --- a/src/Types/TransferOrderDeletedEvent.php +++ b/src/Types/TransferOrderDeletedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?TransferOrderDeletedEventData public function setData(?TransferOrderDeletedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/TransferOrderDeletedEventData.php b/src/Types/TransferOrderDeletedEventData.php index df7a7fcd..236efb13 100644 --- a/src/Types/TransferOrderDeletedEventData.php +++ b/src/Types/TransferOrderDeletedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getDeleted(): ?bool public function setDeleted(?bool $value = null): self { $this->deleted = $value; + $this->_setField('deleted'); return $this; } diff --git a/src/Types/TransferOrderFilter.php b/src/Types/TransferOrderFilter.php index 1758504e..7529cf76 100644 --- a/src/Types/TransferOrderFilter.php +++ b/src/Types/TransferOrderFilter.php @@ -61,6 +61,7 @@ public function getSourceLocationIds(): ?array public function setSourceLocationIds(?array $value = null): self { $this->sourceLocationIds = $value; + $this->_setField('sourceLocationIds'); return $this; } @@ -78,6 +79,7 @@ public function getDestinationLocationIds(): ?array public function setDestinationLocationIds(?array $value = null): self { $this->destinationLocationIds = $value; + $this->_setField('destinationLocationIds'); return $this; } @@ -95,6 +97,7 @@ public function getStatuses(): ?array public function setStatuses(?array $value = null): self { $this->statuses = $value; + $this->_setField('statuses'); return $this; } diff --git a/src/Types/TransferOrderGoodsReceipt.php b/src/Types/TransferOrderGoodsReceipt.php index cbcefaff..ba4c4350 100644 --- a/src/Types/TransferOrderGoodsReceipt.php +++ b/src/Types/TransferOrderGoodsReceipt.php @@ -71,6 +71,7 @@ public function getLineItems(): ?array public function setLineItems(?array $value = null): self { $this->lineItems = $value; + $this->_setField('lineItems'); return $this; } diff --git a/src/Types/TransferOrderGoodsReceiptLineItem.php b/src/Types/TransferOrderGoodsReceiptLineItem.php index cf30b79e..08b5edd3 100644 --- a/src/Types/TransferOrderGoodsReceiptLineItem.php +++ b/src/Types/TransferOrderGoodsReceiptLineItem.php @@ -71,6 +71,7 @@ public function getTransferOrderLineUid(): string public function setTransferOrderLineUid(string $value): self { $this->transferOrderLineUid = $value; + $this->_setField('transferOrderLineUid'); return $this; } @@ -88,6 +89,7 @@ public function getQuantityReceived(): ?string public function setQuantityReceived(?string $value = null): self { $this->quantityReceived = $value; + $this->_setField('quantityReceived'); return $this; } @@ -105,6 +107,7 @@ public function getQuantityDamaged(): ?string public function setQuantityDamaged(?string $value = null): self { $this->quantityDamaged = $value; + $this->_setField('quantityDamaged'); return $this; } @@ -122,6 +125,7 @@ public function getQuantityCanceled(): ?string public function setQuantityCanceled(?string $value = null): self { $this->quantityCanceled = $value; + $this->_setField('quantityCanceled'); return $this; } diff --git a/src/Types/TransferOrderLine.php b/src/Types/TransferOrderLine.php index f43b6883..b2242df2 100644 --- a/src/Types/TransferOrderLine.php +++ b/src/Types/TransferOrderLine.php @@ -112,6 +112,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -129,6 +130,7 @@ public function getItemVariationId(): string public function setItemVariationId(string $value): self { $this->itemVariationId = $value; + $this->_setField('itemVariationId'); return $this; } @@ -146,6 +148,7 @@ public function getQuantityOrdered(): string public function setQuantityOrdered(string $value): self { $this->quantityOrdered = $value; + $this->_setField('quantityOrdered'); return $this; } @@ -163,6 +166,7 @@ public function getQuantityPending(): ?string public function setQuantityPending(?string $value = null): self { $this->quantityPending = $value; + $this->_setField('quantityPending'); return $this; } @@ -180,6 +184,7 @@ public function getQuantityReceived(): ?string public function setQuantityReceived(?string $value = null): self { $this->quantityReceived = $value; + $this->_setField('quantityReceived'); return $this; } @@ -197,6 +202,7 @@ public function getQuantityDamaged(): ?string public function setQuantityDamaged(?string $value = null): self { $this->quantityDamaged = $value; + $this->_setField('quantityDamaged'); return $this; } @@ -214,6 +220,7 @@ public function getQuantityCanceled(): ?string public function setQuantityCanceled(?string $value = null): self { $this->quantityCanceled = $value; + $this->_setField('quantityCanceled'); return $this; } diff --git a/src/Types/TransferOrderQuery.php b/src/Types/TransferOrderQuery.php index 6423fe38..e1a95863 100644 --- a/src/Types/TransferOrderQuery.php +++ b/src/Types/TransferOrderQuery.php @@ -49,6 +49,7 @@ public function getFilter(): ?TransferOrderFilter public function setFilter(?TransferOrderFilter $value = null): self { $this->filter = $value; + $this->_setField('filter'); return $this; } @@ -66,6 +67,7 @@ public function getSort(): ?TransferOrderSort public function setSort(?TransferOrderSort $value = null): self { $this->sort = $value; + $this->_setField('sort'); return $this; } diff --git a/src/Types/TransferOrderSort.php b/src/Types/TransferOrderSort.php index a37fa4f9..244a037b 100644 --- a/src/Types/TransferOrderSort.php +++ b/src/Types/TransferOrderSort.php @@ -55,6 +55,7 @@ public function getField(): ?string public function setField(?string $value = null): self { $this->field = $value; + $this->_setField('field'); return $this; } @@ -72,6 +73,7 @@ public function getOrder(): ?string public function setOrder(?string $value = null): self { $this->order = $value; + $this->_setField('order'); return $this; } diff --git a/src/Types/TransferOrderUpdatedEvent.php b/src/Types/TransferOrderUpdatedEvent.php index b5451ec2..f62e5b46 100644 --- a/src/Types/TransferOrderUpdatedEvent.php +++ b/src/Types/TransferOrderUpdatedEvent.php @@ -73,6 +73,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -90,6 +91,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -107,6 +109,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -124,6 +127,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -141,6 +145,7 @@ public function getData(): ?TransferOrderUpdatedEventData public function setData(?TransferOrderUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/TransferOrderUpdatedEventData.php b/src/Types/TransferOrderUpdatedEventData.php index 8399f005..1f73a886 100644 --- a/src/Types/TransferOrderUpdatedEventData.php +++ b/src/Types/TransferOrderUpdatedEventData.php @@ -54,6 +54,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -71,6 +72,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -88,6 +90,7 @@ public function getObject(): ?TransferOrderUpdatedEventObject public function setObject(?TransferOrderUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/TransferOrderUpdatedEventObject.php b/src/Types/TransferOrderUpdatedEventObject.php index 07131441..cb966e37 100644 --- a/src/Types/TransferOrderUpdatedEventObject.php +++ b/src/Types/TransferOrderUpdatedEventObject.php @@ -38,6 +38,7 @@ public function getTransferOrder(): ?TransferOrder public function setTransferOrder(?TransferOrder $value = null): self { $this->transferOrder = $value; + $this->_setField('transferOrder'); return $this; } diff --git a/src/Types/UnlinkCustomerFromGiftCardResponse.php b/src/Types/UnlinkCustomerFromGiftCardResponse.php index 8c7b35e3..39cf52fe 100644 --- a/src/Types/UnlinkCustomerFromGiftCardResponse.php +++ b/src/Types/UnlinkCustomerFromGiftCardResponse.php @@ -54,6 +54,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -71,6 +72,7 @@ public function getGiftCard(): ?GiftCard public function setGiftCard(?GiftCard $value = null): self { $this->giftCard = $value; + $this->_setField('giftCard'); return $this; } diff --git a/src/Types/UpdateBookingCustomAttributeDefinitionResponse.php b/src/Types/UpdateBookingCustomAttributeDefinitionResponse.php index 36afc3aa..2420b2c1 100644 --- a/src/Types/UpdateBookingCustomAttributeDefinitionResponse.php +++ b/src/Types/UpdateBookingCustomAttributeDefinitionResponse.php @@ -51,6 +51,7 @@ public function getCustomAttributeDefinition(): ?CustomAttributeDefinition public function setCustomAttributeDefinition(?CustomAttributeDefinition $value = null): self { $this->customAttributeDefinition = $value; + $this->_setField('customAttributeDefinition'); return $this; } @@ -68,6 +69,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/UpdateBookingResponse.php b/src/Types/UpdateBookingResponse.php index 474bca6d..56d3108a 100644 --- a/src/Types/UpdateBookingResponse.php +++ b/src/Types/UpdateBookingResponse.php @@ -47,6 +47,7 @@ public function getBooking(): ?Booking public function setBooking(?Booking $value = null): self { $this->booking = $value; + $this->_setField('booking'); return $this; } @@ -64,6 +65,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/UpdateBreakTypeResponse.php b/src/Types/UpdateBreakTypeResponse.php index bfc38e79..8ac31d27 100644 --- a/src/Types/UpdateBreakTypeResponse.php +++ b/src/Types/UpdateBreakTypeResponse.php @@ -52,6 +52,7 @@ public function getBreakType(): ?BreakType public function setBreakType(?BreakType $value = null): self { $this->breakType = $value; + $this->_setField('breakType'); return $this; } @@ -69,6 +70,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/UpdateCatalogImageRequest.php b/src/Types/UpdateCatalogImageRequest.php index 5793a687..34268112 100644 --- a/src/Types/UpdateCatalogImageRequest.php +++ b/src/Types/UpdateCatalogImageRequest.php @@ -43,6 +43,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } diff --git a/src/Types/UpdateCatalogImageResponse.php b/src/Types/UpdateCatalogImageResponse.php index 32008f38..4179f502 100644 --- a/src/Types/UpdateCatalogImageResponse.php +++ b/src/Types/UpdateCatalogImageResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getImage(): ?CatalogObject public function setImage(?CatalogObject $value = null): self { $this->image = $value; + $this->_setField('image'); return $this; } diff --git a/src/Types/UpdateCustomerCustomAttributeDefinitionResponse.php b/src/Types/UpdateCustomerCustomAttributeDefinitionResponse.php index f601c3ab..caade0b4 100644 --- a/src/Types/UpdateCustomerCustomAttributeDefinitionResponse.php +++ b/src/Types/UpdateCustomerCustomAttributeDefinitionResponse.php @@ -51,6 +51,7 @@ public function getCustomAttributeDefinition(): ?CustomAttributeDefinition public function setCustomAttributeDefinition(?CustomAttributeDefinition $value = null): self { $this->customAttributeDefinition = $value; + $this->_setField('customAttributeDefinition'); return $this; } @@ -68,6 +69,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/UpdateCustomerGroupResponse.php b/src/Types/UpdateCustomerGroupResponse.php index eb19758b..80d510ca 100644 --- a/src/Types/UpdateCustomerGroupResponse.php +++ b/src/Types/UpdateCustomerGroupResponse.php @@ -53,6 +53,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -70,6 +71,7 @@ public function getGroup(): ?CustomerGroup public function setGroup(?CustomerGroup $value = null): self { $this->group = $value; + $this->_setField('group'); return $this; } diff --git a/src/Types/UpdateCustomerResponse.php b/src/Types/UpdateCustomerResponse.php index af344213..c1df3c55 100644 --- a/src/Types/UpdateCustomerResponse.php +++ b/src/Types/UpdateCustomerResponse.php @@ -54,6 +54,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -71,6 +72,7 @@ public function getCustomer(): ?Customer public function setCustomer(?Customer $value = null): self { $this->customer = $value; + $this->_setField('customer'); return $this; } diff --git a/src/Types/UpdateInvoiceResponse.php b/src/Types/UpdateInvoiceResponse.php index 98cd7578..dba90700 100644 --- a/src/Types/UpdateInvoiceResponse.php +++ b/src/Types/UpdateInvoiceResponse.php @@ -50,6 +50,7 @@ public function getInvoice(): ?Invoice public function setInvoice(?Invoice $value = null): self { $this->invoice = $value; + $this->_setField('invoice'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/UpdateItemModifierListsResponse.php b/src/Types/UpdateItemModifierListsResponse.php index 5f87b666..5190c641 100644 --- a/src/Types/UpdateItemModifierListsResponse.php +++ b/src/Types/UpdateItemModifierListsResponse.php @@ -47,6 +47,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -64,6 +65,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } diff --git a/src/Types/UpdateItemTaxesResponse.php b/src/Types/UpdateItemTaxesResponse.php index c63f2f8b..35897a7c 100644 --- a/src/Types/UpdateItemTaxesResponse.php +++ b/src/Types/UpdateItemTaxesResponse.php @@ -47,6 +47,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -64,6 +65,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } diff --git a/src/Types/UpdateJobResponse.php b/src/Types/UpdateJobResponse.php index 8fce2546..5ad5a587 100644 --- a/src/Types/UpdateJobResponse.php +++ b/src/Types/UpdateJobResponse.php @@ -51,6 +51,7 @@ public function getJob(): ?Job public function setJob(?Job $value = null): self { $this->job = $value; + $this->_setField('job'); return $this; } @@ -68,6 +69,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/UpdateLocationCustomAttributeDefinitionResponse.php b/src/Types/UpdateLocationCustomAttributeDefinitionResponse.php index 0e2710c8..5204cb9b 100644 --- a/src/Types/UpdateLocationCustomAttributeDefinitionResponse.php +++ b/src/Types/UpdateLocationCustomAttributeDefinitionResponse.php @@ -51,6 +51,7 @@ public function getCustomAttributeDefinition(): ?CustomAttributeDefinition public function setCustomAttributeDefinition(?CustomAttributeDefinition $value = null): self { $this->customAttributeDefinition = $value; + $this->_setField('customAttributeDefinition'); return $this; } @@ -68,6 +69,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/UpdateLocationResponse.php b/src/Types/UpdateLocationResponse.php index 149e976c..5d980416 100644 --- a/src/Types/UpdateLocationResponse.php +++ b/src/Types/UpdateLocationResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getLocation(): ?Location public function setLocation(?Location $value = null): self { $this->location = $value; + $this->_setField('location'); return $this; } diff --git a/src/Types/UpdateLocationSettingsResponse.php b/src/Types/UpdateLocationSettingsResponse.php index 7e3a8d04..2343daf6 100644 --- a/src/Types/UpdateLocationSettingsResponse.php +++ b/src/Types/UpdateLocationSettingsResponse.php @@ -47,6 +47,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -64,6 +65,7 @@ public function getLocationSettings(): ?CheckoutLocationSettings public function setLocationSettings(?CheckoutLocationSettings $value = null): self { $this->locationSettings = $value; + $this->_setField('locationSettings'); return $this; } diff --git a/src/Types/UpdateMerchantCustomAttributeDefinitionResponse.php b/src/Types/UpdateMerchantCustomAttributeDefinitionResponse.php index 8eb9588f..19f471c0 100644 --- a/src/Types/UpdateMerchantCustomAttributeDefinitionResponse.php +++ b/src/Types/UpdateMerchantCustomAttributeDefinitionResponse.php @@ -51,6 +51,7 @@ public function getCustomAttributeDefinition(): ?CustomAttributeDefinition public function setCustomAttributeDefinition(?CustomAttributeDefinition $value = null): self { $this->customAttributeDefinition = $value; + $this->_setField('customAttributeDefinition'); return $this; } @@ -68,6 +69,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/UpdateMerchantSettingsResponse.php b/src/Types/UpdateMerchantSettingsResponse.php index c2f6a45a..9f90044b 100644 --- a/src/Types/UpdateMerchantSettingsResponse.php +++ b/src/Types/UpdateMerchantSettingsResponse.php @@ -47,6 +47,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -64,6 +65,7 @@ public function getMerchantSettings(): ?CheckoutMerchantSettings public function setMerchantSettings(?CheckoutMerchantSettings $value = null): self { $this->merchantSettings = $value; + $this->_setField('merchantSettings'); return $this; } diff --git a/src/Types/UpdateOrderCustomAttributeDefinitionResponse.php b/src/Types/UpdateOrderCustomAttributeDefinitionResponse.php index c87be21f..877cec2a 100644 --- a/src/Types/UpdateOrderCustomAttributeDefinitionResponse.php +++ b/src/Types/UpdateOrderCustomAttributeDefinitionResponse.php @@ -50,6 +50,7 @@ public function getCustomAttributeDefinition(): ?CustomAttributeDefinition public function setCustomAttributeDefinition(?CustomAttributeDefinition $value = null): self { $this->customAttributeDefinition = $value; + $this->_setField('customAttributeDefinition'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/UpdateOrderResponse.php b/src/Types/UpdateOrderResponse.php index 937660af..84979cd3 100644 --- a/src/Types/UpdateOrderResponse.php +++ b/src/Types/UpdateOrderResponse.php @@ -51,6 +51,7 @@ public function getOrder(): ?Order public function setOrder(?Order $value = null): self { $this->order = $value; + $this->_setField('order'); return $this; } @@ -68,6 +69,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/UpdatePaymentLinkResponse.php b/src/Types/UpdatePaymentLinkResponse.php index 79f52bcc..317de9a6 100644 --- a/src/Types/UpdatePaymentLinkResponse.php +++ b/src/Types/UpdatePaymentLinkResponse.php @@ -47,6 +47,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -64,6 +65,7 @@ public function getPaymentLink(): ?PaymentLink public function setPaymentLink(?PaymentLink $value = null): self { $this->paymentLink = $value; + $this->_setField('paymentLink'); return $this; } diff --git a/src/Types/UpdatePaymentResponse.php b/src/Types/UpdatePaymentResponse.php index 15fc9718..5bf13855 100644 --- a/src/Types/UpdatePaymentResponse.php +++ b/src/Types/UpdatePaymentResponse.php @@ -51,6 +51,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -68,6 +69,7 @@ public function getPayment(): ?Payment public function setPayment(?Payment $value = null): self { $this->payment = $value; + $this->_setField('payment'); return $this; } diff --git a/src/Types/UpdateScheduledShiftResponse.php b/src/Types/UpdateScheduledShiftResponse.php index 4b515c73..96974ffb 100644 --- a/src/Types/UpdateScheduledShiftResponse.php +++ b/src/Types/UpdateScheduledShiftResponse.php @@ -55,6 +55,7 @@ public function getScheduledShift(): ?ScheduledShift public function setScheduledShift(?ScheduledShift $value = null): self { $this->scheduledShift = $value; + $this->_setField('scheduledShift'); return $this; } @@ -72,6 +73,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/UpdateShiftResponse.php b/src/Types/UpdateShiftResponse.php index 3091ed7c..64cc2778 100644 --- a/src/Types/UpdateShiftResponse.php +++ b/src/Types/UpdateShiftResponse.php @@ -52,6 +52,7 @@ public function getShift(): ?Shift public function setShift(?Shift $value = null): self { $this->shift = $value; + $this->_setField('shift'); return $this; } @@ -69,6 +70,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/UpdateSubscriptionResponse.php b/src/Types/UpdateSubscriptionResponse.php index 190c4214..78667919 100644 --- a/src/Types/UpdateSubscriptionResponse.php +++ b/src/Types/UpdateSubscriptionResponse.php @@ -51,6 +51,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -68,6 +69,7 @@ public function getSubscription(): ?Subscription public function setSubscription(?Subscription $value = null): self { $this->subscription = $value; + $this->_setField('subscription'); return $this; } diff --git a/src/Types/UpdateTeamMemberRequest.php b/src/Types/UpdateTeamMemberRequest.php index 7a65daa2..8c4466b0 100644 --- a/src/Types/UpdateTeamMemberRequest.php +++ b/src/Types/UpdateTeamMemberRequest.php @@ -45,6 +45,7 @@ public function getTeamMember(): ?TeamMember public function setTeamMember(?TeamMember $value = null): self { $this->teamMember = $value; + $this->_setField('teamMember'); return $this; } diff --git a/src/Types/UpdateTeamMemberResponse.php b/src/Types/UpdateTeamMemberResponse.php index 4b49978b..4d5dc6ea 100644 --- a/src/Types/UpdateTeamMemberResponse.php +++ b/src/Types/UpdateTeamMemberResponse.php @@ -50,6 +50,7 @@ public function getTeamMember(): ?TeamMember public function setTeamMember(?TeamMember $value = null): self { $this->teamMember = $value; + $this->_setField('teamMember'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/UpdateTimecardResponse.php b/src/Types/UpdateTimecardResponse.php index 0d755ff8..f2d92bea 100644 --- a/src/Types/UpdateTimecardResponse.php +++ b/src/Types/UpdateTimecardResponse.php @@ -52,6 +52,7 @@ public function getTimecard(): ?Timecard public function setTimecard(?Timecard $value = null): self { $this->timecard = $value; + $this->_setField('timecard'); return $this; } @@ -69,6 +70,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/UpdateTransferOrderData.php b/src/Types/UpdateTransferOrderData.php index 8b10f862..0e4d71e1 100644 --- a/src/Types/UpdateTransferOrderData.php +++ b/src/Types/UpdateTransferOrderData.php @@ -88,6 +88,7 @@ public function getSourceLocationId(): ?string public function setSourceLocationId(?string $value = null): self { $this->sourceLocationId = $value; + $this->_setField('sourceLocationId'); return $this; } @@ -105,6 +106,7 @@ public function getDestinationLocationId(): ?string public function setDestinationLocationId(?string $value = null): self { $this->destinationLocationId = $value; + $this->_setField('destinationLocationId'); return $this; } @@ -122,6 +124,7 @@ public function getExpectedAt(): ?string public function setExpectedAt(?string $value = null): self { $this->expectedAt = $value; + $this->_setField('expectedAt'); return $this; } @@ -139,6 +142,7 @@ public function getNotes(): ?string public function setNotes(?string $value = null): self { $this->notes = $value; + $this->_setField('notes'); return $this; } @@ -156,6 +160,7 @@ public function getTrackingNumber(): ?string public function setTrackingNumber(?string $value = null): self { $this->trackingNumber = $value; + $this->_setField('trackingNumber'); return $this; } @@ -173,6 +178,7 @@ public function getLineItems(): ?array public function setLineItems(?array $value = null): self { $this->lineItems = $value; + $this->_setField('lineItems'); return $this; } diff --git a/src/Types/UpdateTransferOrderLineData.php b/src/Types/UpdateTransferOrderLineData.php index ab592606..ef72f894 100644 --- a/src/Types/UpdateTransferOrderLineData.php +++ b/src/Types/UpdateTransferOrderLineData.php @@ -69,6 +69,7 @@ public function getUid(): ?string public function setUid(?string $value = null): self { $this->uid = $value; + $this->_setField('uid'); return $this; } @@ -86,6 +87,7 @@ public function getItemVariationId(): ?string public function setItemVariationId(?string $value = null): self { $this->itemVariationId = $value; + $this->_setField('itemVariationId'); return $this; } @@ -103,6 +105,7 @@ public function getQuantityOrdered(): ?string public function setQuantityOrdered(?string $value = null): self { $this->quantityOrdered = $value; + $this->_setField('quantityOrdered'); return $this; } @@ -120,6 +123,7 @@ public function getRemove(): ?bool public function setRemove(?bool $value = null): self { $this->remove = $value; + $this->_setField('remove'); return $this; } diff --git a/src/Types/UpdateTransferOrderResponse.php b/src/Types/UpdateTransferOrderResponse.php index b11541d5..95d2ce2c 100644 --- a/src/Types/UpdateTransferOrderResponse.php +++ b/src/Types/UpdateTransferOrderResponse.php @@ -50,6 +50,7 @@ public function getTransferOrder(): ?TransferOrder public function setTransferOrder(?TransferOrder $value = null): self { $this->transferOrder = $value; + $this->_setField('transferOrder'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/UpdateVendorRequest.php b/src/Types/UpdateVendorRequest.php index c9bcc7c2..5e54f080 100644 --- a/src/Types/UpdateVendorRequest.php +++ b/src/Types/UpdateVendorRequest.php @@ -56,6 +56,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -73,6 +74,7 @@ public function getVendor(): Vendor public function setVendor(Vendor $value): self { $this->vendor = $value; + $this->_setField('vendor'); return $this; } diff --git a/src/Types/UpdateVendorResponse.php b/src/Types/UpdateVendorResponse.php index c9b2a860..7d59708a 100644 --- a/src/Types/UpdateVendorResponse.php +++ b/src/Types/UpdateVendorResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getVendor(): ?Vendor public function setVendor(?Vendor $value = null): self { $this->vendor = $value; + $this->_setField('vendor'); return $this; } diff --git a/src/Types/UpdateWageSettingResponse.php b/src/Types/UpdateWageSettingResponse.php index e8a3582b..9f1a9d87 100644 --- a/src/Types/UpdateWageSettingResponse.php +++ b/src/Types/UpdateWageSettingResponse.php @@ -51,6 +51,7 @@ public function getWageSetting(): ?WageSetting public function setWageSetting(?WageSetting $value = null): self { $this->wageSetting = $value; + $this->_setField('wageSetting'); return $this; } @@ -68,6 +69,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/UpdateWebhookSubscriptionResponse.php b/src/Types/UpdateWebhookSubscriptionResponse.php index a2b3ce08..241b4dd7 100644 --- a/src/Types/UpdateWebhookSubscriptionResponse.php +++ b/src/Types/UpdateWebhookSubscriptionResponse.php @@ -54,6 +54,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -71,6 +72,7 @@ public function getSubscription(): ?WebhookSubscription public function setSubscription(?WebhookSubscription $value = null): self { $this->subscription = $value; + $this->_setField('subscription'); return $this; } diff --git a/src/Types/UpdateWebhookSubscriptionSignatureKeyResponse.php b/src/Types/UpdateWebhookSubscriptionSignatureKeyResponse.php index dc14ac8f..9bda9739 100644 --- a/src/Types/UpdateWebhookSubscriptionSignatureKeyResponse.php +++ b/src/Types/UpdateWebhookSubscriptionSignatureKeyResponse.php @@ -54,6 +54,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -71,6 +72,7 @@ public function getSignatureKey(): ?string public function setSignatureKey(?string $value = null): self { $this->signatureKey = $value; + $this->_setField('signatureKey'); return $this; } diff --git a/src/Types/UpdateWorkweekConfigResponse.php b/src/Types/UpdateWorkweekConfigResponse.php index 7de52897..a649f0df 100644 --- a/src/Types/UpdateWorkweekConfigResponse.php +++ b/src/Types/UpdateWorkweekConfigResponse.php @@ -52,6 +52,7 @@ public function getWorkweekConfig(): ?WorkweekConfig public function setWorkweekConfig(?WorkweekConfig $value = null): self { $this->workweekConfig = $value; + $this->_setField('workweekConfig'); return $this; } @@ -69,6 +70,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/UpsertBookingCustomAttributeResponse.php b/src/Types/UpsertBookingCustomAttributeResponse.php index 9282514a..6c429db9 100644 --- a/src/Types/UpsertBookingCustomAttributeResponse.php +++ b/src/Types/UpsertBookingCustomAttributeResponse.php @@ -51,6 +51,7 @@ public function getCustomAttribute(): ?CustomAttribute public function setCustomAttribute(?CustomAttribute $value = null): self { $this->customAttribute = $value; + $this->_setField('customAttribute'); return $this; } @@ -68,6 +69,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/UpsertCatalogObjectResponse.php b/src/Types/UpsertCatalogObjectResponse.php index 0ca272e9..1b329856 100644 --- a/src/Types/UpsertCatalogObjectResponse.php +++ b/src/Types/UpsertCatalogObjectResponse.php @@ -55,6 +55,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -72,6 +73,7 @@ public function getCatalogObject(): ?CatalogObject public function setCatalogObject(?CatalogObject $value = null): self { $this->catalogObject = $value; + $this->_setField('catalogObject'); return $this; } @@ -89,6 +91,7 @@ public function getIdMappings(): ?array public function setIdMappings(?array $value = null): self { $this->idMappings = $value; + $this->_setField('idMappings'); return $this; } diff --git a/src/Types/UpsertCustomerCustomAttributeResponse.php b/src/Types/UpsertCustomerCustomAttributeResponse.php index 0ec9a1af..b7e63c83 100644 --- a/src/Types/UpsertCustomerCustomAttributeResponse.php +++ b/src/Types/UpsertCustomerCustomAttributeResponse.php @@ -51,6 +51,7 @@ public function getCustomAttribute(): ?CustomAttribute public function setCustomAttribute(?CustomAttribute $value = null): self { $this->customAttribute = $value; + $this->_setField('customAttribute'); return $this; } @@ -68,6 +69,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/UpsertLocationCustomAttributeResponse.php b/src/Types/UpsertLocationCustomAttributeResponse.php index c17374b6..7e812dae 100644 --- a/src/Types/UpsertLocationCustomAttributeResponse.php +++ b/src/Types/UpsertLocationCustomAttributeResponse.php @@ -51,6 +51,7 @@ public function getCustomAttribute(): ?CustomAttribute public function setCustomAttribute(?CustomAttribute $value = null): self { $this->customAttribute = $value; + $this->_setField('customAttribute'); return $this; } @@ -68,6 +69,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/UpsertMerchantCustomAttributeResponse.php b/src/Types/UpsertMerchantCustomAttributeResponse.php index a4e44509..65ddcb3c 100644 --- a/src/Types/UpsertMerchantCustomAttributeResponse.php +++ b/src/Types/UpsertMerchantCustomAttributeResponse.php @@ -51,6 +51,7 @@ public function getCustomAttribute(): ?CustomAttribute public function setCustomAttribute(?CustomAttribute $value = null): self { $this->customAttribute = $value; + $this->_setField('customAttribute'); return $this; } @@ -68,6 +69,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/UpsertOrderCustomAttributeResponse.php b/src/Types/UpsertOrderCustomAttributeResponse.php index a2f3c080..983a6b40 100644 --- a/src/Types/UpsertOrderCustomAttributeResponse.php +++ b/src/Types/UpsertOrderCustomAttributeResponse.php @@ -50,6 +50,7 @@ public function getCustomAttribute(): ?CustomAttribute public function setCustomAttribute(?CustomAttribute $value = null): self { $this->customAttribute = $value; + $this->_setField('customAttribute'); return $this; } @@ -67,6 +68,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/UpsertSnippetResponse.php b/src/Types/UpsertSnippetResponse.php index 271220cf..49fb084a 100644 --- a/src/Types/UpsertSnippetResponse.php +++ b/src/Types/UpsertSnippetResponse.php @@ -50,6 +50,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -67,6 +68,7 @@ public function getSnippet(): ?Snippet public function setSnippet(?Snippet $value = null): self { $this->snippet = $value; + $this->_setField('snippet'); return $this; } diff --git a/src/Types/V1Money.php b/src/Types/V1Money.php index 048a2254..8e34ae78 100644 --- a/src/Types/V1Money.php +++ b/src/Types/V1Money.php @@ -52,6 +52,7 @@ public function getAmount(): ?int public function setAmount(?int $value = null): self { $this->amount = $value; + $this->_setField('amount'); return $this; } @@ -69,6 +70,7 @@ public function getCurrencyCode(): ?string public function setCurrencyCode(?string $value = null): self { $this->currencyCode = $value; + $this->_setField('currencyCode'); return $this; } diff --git a/src/Types/V1Order.php b/src/Types/V1Order.php index b8c36dec..d562a35f 100644 --- a/src/Types/V1Order.php +++ b/src/Types/V1Order.php @@ -237,6 +237,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } @@ -254,6 +255,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -271,6 +273,7 @@ public function getBuyerEmail(): ?string public function setBuyerEmail(?string $value = null): self { $this->buyerEmail = $value; + $this->_setField('buyerEmail'); return $this; } @@ -288,6 +291,7 @@ public function getRecipientName(): ?string public function setRecipientName(?string $value = null): self { $this->recipientName = $value; + $this->_setField('recipientName'); return $this; } @@ -305,6 +309,7 @@ public function getRecipientPhoneNumber(): ?string public function setRecipientPhoneNumber(?string $value = null): self { $this->recipientPhoneNumber = $value; + $this->_setField('recipientPhoneNumber'); return $this; } @@ -322,6 +327,7 @@ public function getState(): ?string public function setState(?string $value = null): self { $this->state = $value; + $this->_setField('state'); return $this; } @@ -339,6 +345,7 @@ public function getShippingAddress(): ?Address public function setShippingAddress(?Address $value = null): self { $this->shippingAddress = $value; + $this->_setField('shippingAddress'); return $this; } @@ -356,6 +363,7 @@ public function getSubtotalMoney(): ?V1Money public function setSubtotalMoney(?V1Money $value = null): self { $this->subtotalMoney = $value; + $this->_setField('subtotalMoney'); return $this; } @@ -373,6 +381,7 @@ public function getTotalShippingMoney(): ?V1Money public function setTotalShippingMoney(?V1Money $value = null): self { $this->totalShippingMoney = $value; + $this->_setField('totalShippingMoney'); return $this; } @@ -390,6 +399,7 @@ public function getTotalTaxMoney(): ?V1Money public function setTotalTaxMoney(?V1Money $value = null): self { $this->totalTaxMoney = $value; + $this->_setField('totalTaxMoney'); return $this; } @@ -407,6 +417,7 @@ public function getTotalPriceMoney(): ?V1Money public function setTotalPriceMoney(?V1Money $value = null): self { $this->totalPriceMoney = $value; + $this->_setField('totalPriceMoney'); return $this; } @@ -424,6 +435,7 @@ public function getTotalDiscountMoney(): ?V1Money public function setTotalDiscountMoney(?V1Money $value = null): self { $this->totalDiscountMoney = $value; + $this->_setField('totalDiscountMoney'); return $this; } @@ -441,6 +453,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -458,6 +471,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -475,6 +489,7 @@ public function getExpiresAt(): ?string public function setExpiresAt(?string $value = null): self { $this->expiresAt = $value; + $this->_setField('expiresAt'); return $this; } @@ -492,6 +507,7 @@ public function getPaymentId(): ?string public function setPaymentId(?string $value = null): self { $this->paymentId = $value; + $this->_setField('paymentId'); return $this; } @@ -509,6 +525,7 @@ public function getBuyerNote(): ?string public function setBuyerNote(?string $value = null): self { $this->buyerNote = $value; + $this->_setField('buyerNote'); return $this; } @@ -526,6 +543,7 @@ public function getCompletedNote(): ?string public function setCompletedNote(?string $value = null): self { $this->completedNote = $value; + $this->_setField('completedNote'); return $this; } @@ -543,6 +561,7 @@ public function getRefundedNote(): ?string public function setRefundedNote(?string $value = null): self { $this->refundedNote = $value; + $this->_setField('refundedNote'); return $this; } @@ -560,6 +579,7 @@ public function getCanceledNote(): ?string public function setCanceledNote(?string $value = null): self { $this->canceledNote = $value; + $this->_setField('canceledNote'); return $this; } @@ -577,6 +597,7 @@ public function getTender(): ?V1Tender public function setTender(?V1Tender $value = null): self { $this->tender = $value; + $this->_setField('tender'); return $this; } @@ -594,6 +615,7 @@ public function getOrderHistory(): ?array public function setOrderHistory(?array $value = null): self { $this->orderHistory = $value; + $this->_setField('orderHistory'); return $this; } @@ -611,6 +633,7 @@ public function getPromoCode(): ?string public function setPromoCode(?string $value = null): self { $this->promoCode = $value; + $this->_setField('promoCode'); return $this; } @@ -628,6 +651,7 @@ public function getBtcReceiveAddress(): ?string public function setBtcReceiveAddress(?string $value = null): self { $this->btcReceiveAddress = $value; + $this->_setField('btcReceiveAddress'); return $this; } @@ -645,6 +669,7 @@ public function getBtcPriceSatoshi(): ?float public function setBtcPriceSatoshi(?float $value = null): self { $this->btcPriceSatoshi = $value; + $this->_setField('btcPriceSatoshi'); return $this; } diff --git a/src/Types/V1OrderHistoryEntry.php b/src/Types/V1OrderHistoryEntry.php index f0585c29..c26b172c 100644 --- a/src/Types/V1OrderHistoryEntry.php +++ b/src/Types/V1OrderHistoryEntry.php @@ -52,6 +52,7 @@ public function getAction(): ?string public function setAction(?string $value = null): self { $this->action = $value; + $this->_setField('action'); return $this; } @@ -69,6 +70,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } diff --git a/src/Types/V1Tender.php b/src/Types/V1Tender.php index 57cd3949..cae2b0bc 100644 --- a/src/Types/V1Tender.php +++ b/src/Types/V1Tender.php @@ -191,6 +191,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -208,6 +209,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -225,6 +227,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -242,6 +245,7 @@ public function getEmployeeId(): ?string public function setEmployeeId(?string $value = null): self { $this->employeeId = $value; + $this->_setField('employeeId'); return $this; } @@ -259,6 +263,7 @@ public function getReceiptUrl(): ?string public function setReceiptUrl(?string $value = null): self { $this->receiptUrl = $value; + $this->_setField('receiptUrl'); return $this; } @@ -276,6 +281,7 @@ public function getCardBrand(): ?string public function setCardBrand(?string $value = null): self { $this->cardBrand = $value; + $this->_setField('cardBrand'); return $this; } @@ -293,6 +299,7 @@ public function getPanSuffix(): ?string public function setPanSuffix(?string $value = null): self { $this->panSuffix = $value; + $this->_setField('panSuffix'); return $this; } @@ -310,6 +317,7 @@ public function getEntryMethod(): ?string public function setEntryMethod(?string $value = null): self { $this->entryMethod = $value; + $this->_setField('entryMethod'); return $this; } @@ -327,6 +335,7 @@ public function getPaymentNote(): ?string public function setPaymentNote(?string $value = null): self { $this->paymentNote = $value; + $this->_setField('paymentNote'); return $this; } @@ -344,6 +353,7 @@ public function getTotalMoney(): ?V1Money public function setTotalMoney(?V1Money $value = null): self { $this->totalMoney = $value; + $this->_setField('totalMoney'); return $this; } @@ -361,6 +371,7 @@ public function getTenderedMoney(): ?V1Money public function setTenderedMoney(?V1Money $value = null): self { $this->tenderedMoney = $value; + $this->_setField('tenderedMoney'); return $this; } @@ -378,6 +389,7 @@ public function getTenderedAt(): ?string public function setTenderedAt(?string $value = null): self { $this->tenderedAt = $value; + $this->_setField('tenderedAt'); return $this; } @@ -395,6 +407,7 @@ public function getSettledAt(): ?string public function setSettledAt(?string $value = null): self { $this->settledAt = $value; + $this->_setField('settledAt'); return $this; } @@ -412,6 +425,7 @@ public function getChangeBackMoney(): ?V1Money public function setChangeBackMoney(?V1Money $value = null): self { $this->changeBackMoney = $value; + $this->_setField('changeBackMoney'); return $this; } @@ -429,6 +443,7 @@ public function getRefundedMoney(): ?V1Money public function setRefundedMoney(?V1Money $value = null): self { $this->refundedMoney = $value; + $this->_setField('refundedMoney'); return $this; } @@ -446,6 +461,7 @@ public function getIsExchange(): ?bool public function setIsExchange(?bool $value = null): self { $this->isExchange = $value; + $this->_setField('isExchange'); return $this; } diff --git a/src/Types/Vendor.php b/src/Types/Vendor.php index aec2d1ee..0b20ccd8 100644 --- a/src/Types/Vendor.php +++ b/src/Types/Vendor.php @@ -129,6 +129,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -146,6 +147,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -163,6 +165,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } @@ -180,6 +183,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -197,6 +201,7 @@ public function getAddress(): ?Address public function setAddress(?Address $value = null): self { $this->address = $value; + $this->_setField('address'); return $this; } @@ -214,6 +219,7 @@ public function getContacts(): ?array public function setContacts(?array $value = null): self { $this->contacts = $value; + $this->_setField('contacts'); return $this; } @@ -231,6 +237,7 @@ public function getAccountNumber(): ?string public function setAccountNumber(?string $value = null): self { $this->accountNumber = $value; + $this->_setField('accountNumber'); return $this; } @@ -248,6 +255,7 @@ public function getNote(): ?string public function setNote(?string $value = null): self { $this->note = $value; + $this->_setField('note'); return $this; } @@ -265,6 +273,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -282,6 +291,7 @@ public function getStatus(): ?string public function setStatus(?string $value = null): self { $this->status = $value; + $this->_setField('status'); return $this; } diff --git a/src/Types/VendorContact.php b/src/Types/VendorContact.php index 340c463e..96a8c02a 100644 --- a/src/Types/VendorContact.php +++ b/src/Types/VendorContact.php @@ -87,6 +87,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -104,6 +105,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -121,6 +123,7 @@ public function getEmailAddress(): ?string public function setEmailAddress(?string $value = null): self { $this->emailAddress = $value; + $this->_setField('emailAddress'); return $this; } @@ -138,6 +141,7 @@ public function getPhoneNumber(): ?string public function setPhoneNumber(?string $value = null): self { $this->phoneNumber = $value; + $this->_setField('phoneNumber'); return $this; } @@ -155,6 +159,7 @@ public function getRemoved(): ?bool public function setRemoved(?bool $value = null): self { $this->removed = $value; + $this->_setField('removed'); return $this; } @@ -172,6 +177,7 @@ public function getOrdinal(): int public function setOrdinal(int $value): self { $this->ordinal = $value; + $this->_setField('ordinal'); return $this; } diff --git a/src/Types/VendorCreatedEvent.php b/src/Types/VendorCreatedEvent.php index 8d41ad9e..25714f6e 100644 --- a/src/Types/VendorCreatedEvent.php +++ b/src/Types/VendorCreatedEvent.php @@ -81,6 +81,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -98,6 +99,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -115,6 +117,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -132,6 +135,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -149,6 +153,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -166,6 +171,7 @@ public function getData(): ?VendorCreatedEventData public function setData(?VendorCreatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/VendorCreatedEventData.php b/src/Types/VendorCreatedEventData.php index 829b57e6..f1fc8dca 100644 --- a/src/Types/VendorCreatedEventData.php +++ b/src/Types/VendorCreatedEventData.php @@ -57,6 +57,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -74,6 +75,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -91,6 +93,7 @@ public function getObject(): ?VendorCreatedEventObject public function setObject(?VendorCreatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/VendorCreatedEventObject.php b/src/Types/VendorCreatedEventObject.php index dec3e3ab..b360b31b 100644 --- a/src/Types/VendorCreatedEventObject.php +++ b/src/Types/VendorCreatedEventObject.php @@ -49,6 +49,7 @@ public function getOperation(): ?string public function setOperation(?string $value = null): self { $this->operation = $value; + $this->_setField('operation'); return $this; } @@ -66,6 +67,7 @@ public function getVendor(): ?Vendor public function setVendor(?Vendor $value = null): self { $this->vendor = $value; + $this->_setField('vendor'); return $this; } diff --git a/src/Types/VendorUpdatedEvent.php b/src/Types/VendorUpdatedEvent.php index b821692a..fa1c2150 100644 --- a/src/Types/VendorUpdatedEvent.php +++ b/src/Types/VendorUpdatedEvent.php @@ -81,6 +81,7 @@ public function getMerchantId(): ?string public function setMerchantId(?string $value = null): self { $this->merchantId = $value; + $this->_setField('merchantId'); return $this; } @@ -98,6 +99,7 @@ public function getLocationId(): ?string public function setLocationId(?string $value = null): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -115,6 +117,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -132,6 +135,7 @@ public function getEventId(): ?string public function setEventId(?string $value = null): self { $this->eventId = $value; + $this->_setField('eventId'); return $this; } @@ -149,6 +153,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -166,6 +171,7 @@ public function getData(): ?VendorUpdatedEventData public function setData(?VendorUpdatedEventData $value = null): self { $this->data = $value; + $this->_setField('data'); return $this; } diff --git a/src/Types/VendorUpdatedEventData.php b/src/Types/VendorUpdatedEventData.php index 573074bc..bf5989b1 100644 --- a/src/Types/VendorUpdatedEventData.php +++ b/src/Types/VendorUpdatedEventData.php @@ -57,6 +57,7 @@ public function getType(): ?string public function setType(?string $value = null): self { $this->type = $value; + $this->_setField('type'); return $this; } @@ -74,6 +75,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -91,6 +93,7 @@ public function getObject(): ?VendorUpdatedEventObject public function setObject(?VendorUpdatedEventObject $value = null): self { $this->object = $value; + $this->_setField('object'); return $this; } diff --git a/src/Types/VendorUpdatedEventObject.php b/src/Types/VendorUpdatedEventObject.php index a40948f6..c6ec3e65 100644 --- a/src/Types/VendorUpdatedEventObject.php +++ b/src/Types/VendorUpdatedEventObject.php @@ -49,6 +49,7 @@ public function getOperation(): ?string public function setOperation(?string $value = null): self { $this->operation = $value; + $this->_setField('operation'); return $this; } @@ -66,6 +67,7 @@ public function getVendor(): ?Vendor public function setVendor(?Vendor $value = null): self { $this->vendor = $value; + $this->_setField('vendor'); return $this; } diff --git a/src/Types/VoidTransactionResponse.php b/src/Types/VoidTransactionResponse.php index cda394f6..ef64e849 100644 --- a/src/Types/VoidTransactionResponse.php +++ b/src/Types/VoidTransactionResponse.php @@ -43,6 +43,7 @@ public function getErrors(): ?array public function setErrors(?array $value = null): self { $this->errors = $value; + $this->_setField('errors'); return $this; } diff --git a/src/Types/WageSetting.php b/src/Types/WageSetting.php index 25947960..b8182c9c 100644 --- a/src/Types/WageSetting.php +++ b/src/Types/WageSetting.php @@ -91,6 +91,7 @@ public function getTeamMemberId(): ?string public function setTeamMemberId(?string $value = null): self { $this->teamMemberId = $value; + $this->_setField('teamMemberId'); return $this; } @@ -108,6 +109,7 @@ public function getJobAssignments(): ?array public function setJobAssignments(?array $value = null): self { $this->jobAssignments = $value; + $this->_setField('jobAssignments'); return $this; } @@ -125,6 +127,7 @@ public function getIsOvertimeExempt(): ?bool public function setIsOvertimeExempt(?bool $value = null): self { $this->isOvertimeExempt = $value; + $this->_setField('isOvertimeExempt'); return $this; } @@ -142,6 +145,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -159,6 +163,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -176,6 +181,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } diff --git a/src/Types/WebhookSubscription.php b/src/Types/WebhookSubscription.php index 0449ceed..461a3809 100644 --- a/src/Types/WebhookSubscription.php +++ b/src/Types/WebhookSubscription.php @@ -114,6 +114,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -131,6 +132,7 @@ public function getName(): ?string public function setName(?string $value = null): self { $this->name = $value; + $this->_setField('name'); return $this; } @@ -148,6 +150,7 @@ public function getEnabled(): ?bool public function setEnabled(?bool $value = null): self { $this->enabled = $value; + $this->_setField('enabled'); return $this; } @@ -165,6 +168,7 @@ public function getEventTypes(): ?array public function setEventTypes(?array $value = null): self { $this->eventTypes = $value; + $this->_setField('eventTypes'); return $this; } @@ -182,6 +186,7 @@ public function getNotificationUrl(): ?string public function setNotificationUrl(?string $value = null): self { $this->notificationUrl = $value; + $this->_setField('notificationUrl'); return $this; } @@ -199,6 +204,7 @@ public function getApiVersion(): ?string public function setApiVersion(?string $value = null): self { $this->apiVersion = $value; + $this->_setField('apiVersion'); return $this; } @@ -216,6 +222,7 @@ public function getSignatureKey(): ?string public function setSignatureKey(?string $value = null): self { $this->signatureKey = $value; + $this->_setField('signatureKey'); return $this; } @@ -233,6 +240,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -250,6 +258,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } diff --git a/src/Types/WorkweekConfig.php b/src/Types/WorkweekConfig.php index 031445ec..f8531cbb 100644 --- a/src/Types/WorkweekConfig.php +++ b/src/Types/WorkweekConfig.php @@ -95,6 +95,7 @@ public function getId(): ?string public function setId(?string $value = null): self { $this->id = $value; + $this->_setField('id'); return $this; } @@ -112,6 +113,7 @@ public function getStartOfWeek(): string public function setStartOfWeek(string $value): self { $this->startOfWeek = $value; + $this->_setField('startOfWeek'); return $this; } @@ -129,6 +131,7 @@ public function getStartOfDayLocalTime(): string public function setStartOfDayLocalTime(string $value): self { $this->startOfDayLocalTime = $value; + $this->_setField('startOfDayLocalTime'); return $this; } @@ -146,6 +149,7 @@ public function getVersion(): ?int public function setVersion(?int $value = null): self { $this->version = $value; + $this->_setField('version'); return $this; } @@ -163,6 +167,7 @@ public function getCreatedAt(): ?string public function setCreatedAt(?string $value = null): self { $this->createdAt = $value; + $this->_setField('createdAt'); return $this; } @@ -180,6 +185,7 @@ public function getUpdatedAt(): ?string public function setUpdatedAt(?string $value = null): self { $this->updatedAt = $value; + $this->_setField('updatedAt'); return $this; } diff --git a/src/Utils/File.php b/src/Utils/File.php index 7cec0b37..e407ed3f 100644 --- a/src/Utils/File.php +++ b/src/Utils/File.php @@ -3,7 +3,7 @@ namespace Square\Utils; use Exception; -use GuzzleHttp\Psr7\Utils; +use Http\Discovery\Psr17FactoryDiscovery; use Psr\Http\Message\StreamInterface; use Square\Core\Multipart\MultipartFormDataPart; @@ -50,11 +50,11 @@ public static function createFromFilepath( ?string $filename = null, ?string $contentType = null, ): File { - $resource = fopen($filepath, 'r'); + $resource = @fopen($filepath, 'r'); if (!$resource) { throw new Exception("Unable to open file $filepath"); } - $stream = Utils::streamFor($resource); + $stream = Psr17FactoryDiscovery::findStreamFactory()->createStreamFromResource($resource); if (!$stream->isReadable()) { throw new Exception("File $filepath is not readable"); } @@ -79,7 +79,7 @@ public static function createFromString( ?string $contentType = null, ): File { return new self( - stream: Utils::streamFor($content), + stream: Psr17FactoryDiscovery::findStreamFactory()->createStream($content), filename: $filename, contentType: $contentType, ); @@ -95,7 +95,7 @@ public static function createFromString( public function toMultipartFormDataPart(string $name, ?string $contentType = null): MultipartFormDataPart { $contentType ??= $this->contentType; - $headers = $contentType != null + $headers = $contentType !== null ? ['Content-Type' => $contentType] : null; @@ -120,6 +120,10 @@ public function close(): void */ public function __destruct() { - $this->close(); + try { + $this->close(); + } catch (\Throwable) { + // Swallow errors during garbage collection to avoid fatal errors. + } } } diff --git a/src/V1Transactions/Requests/V1ListOrdersRequest.php b/src/V1Transactions/Requests/V1ListOrdersRequest.php index e10a9e95..a58ec57d 100644 --- a/src/V1Transactions/Requests/V1ListOrdersRequest.php +++ b/src/V1Transactions/Requests/V1ListOrdersRequest.php @@ -61,6 +61,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -78,6 +79,7 @@ public function getOrder(): ?string public function setOrder(?string $value = null): self { $this->order = $value; + $this->_setField('order'); return $this; } @@ -95,6 +97,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } @@ -112,6 +115,7 @@ public function getBatchToken(): ?string public function setBatchToken(?string $value = null): self { $this->batchToken = $value; + $this->_setField('batchToken'); return $this; } } diff --git a/src/V1Transactions/Requests/V1RetrieveOrderRequest.php b/src/V1Transactions/Requests/V1RetrieveOrderRequest.php index fefa9fdc..a1363d8a 100644 --- a/src/V1Transactions/Requests/V1RetrieveOrderRequest.php +++ b/src/V1Transactions/Requests/V1RetrieveOrderRequest.php @@ -43,6 +43,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -60,6 +61,7 @@ public function getOrderId(): string public function setOrderId(string $value): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } } diff --git a/src/V1Transactions/Requests/V1UpdateOrderRequest.php b/src/V1Transactions/Requests/V1UpdateOrderRequest.php index 72c683c0..497bf470 100644 --- a/src/V1Transactions/Requests/V1UpdateOrderRequest.php +++ b/src/V1Transactions/Requests/V1UpdateOrderRequest.php @@ -88,6 +88,7 @@ public function getLocationId(): string public function setLocationId(string $value): self { $this->locationId = $value; + $this->_setField('locationId'); return $this; } @@ -105,6 +106,7 @@ public function getOrderId(): string public function setOrderId(string $value): self { $this->orderId = $value; + $this->_setField('orderId'); return $this; } @@ -122,6 +124,7 @@ public function getAction(): string public function setAction(string $value): self { $this->action = $value; + $this->_setField('action'); return $this; } @@ -139,6 +142,7 @@ public function getShippedTrackingNumber(): ?string public function setShippedTrackingNumber(?string $value = null): self { $this->shippedTrackingNumber = $value; + $this->_setField('shippedTrackingNumber'); return $this; } @@ -156,6 +160,7 @@ public function getCompletedNote(): ?string public function setCompletedNote(?string $value = null): self { $this->completedNote = $value; + $this->_setField('completedNote'); return $this; } @@ -173,6 +178,7 @@ public function getRefundedNote(): ?string public function setRefundedNote(?string $value = null): self { $this->refundedNote = $value; + $this->_setField('refundedNote'); return $this; } @@ -190,6 +196,7 @@ public function getCanceledNote(): ?string public function setCanceledNote(?string $value = null): self { $this->canceledNote = $value; + $this->_setField('canceledNote'); return $this; } } diff --git a/src/V1Transactions/V1TransactionsClient.php b/src/V1Transactions/V1TransactionsClient.php index cb7f578b..873d7548 100644 --- a/src/V1Transactions/V1TransactionsClient.php +++ b/src/V1Transactions/V1TransactionsClient.php @@ -2,7 +2,7 @@ namespace Square\V1Transactions; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\V1Transactions\Requests\V1ListOrdersRequest; use Square\Types\V1Order; @@ -13,7 +13,6 @@ use Square\Core\Client\HttpMethod; use Square\Core\Json\JsonDecoder; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\V1Transactions\Requests\V1RetrieveOrderRequest; use Square\V1Transactions\Requests\V1UpdateOrderRequest; @@ -100,16 +99,6 @@ public function v1ListOrders(V1ListOrdersRequest $request, ?array $options = nul } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -155,16 +144,6 @@ public function v1RetrieveOrder(V1RetrieveOrderRequest $request, ?array $options } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -211,16 +190,6 @@ public function v1UpdateOrder(V1UpdateOrderRequest $request, ?array $options = n } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Vendors/Requests/BatchCreateVendorsRequest.php b/src/Vendors/Requests/BatchCreateVendorsRequest.php index 7047a9be..a7ea77fc 100644 --- a/src/Vendors/Requests/BatchCreateVendorsRequest.php +++ b/src/Vendors/Requests/BatchCreateVendorsRequest.php @@ -40,6 +40,7 @@ public function getVendors(): array public function setVendors(array $value): self { $this->vendors = $value; + $this->_setField('vendors'); return $this; } } diff --git a/src/Vendors/Requests/BatchGetVendorsRequest.php b/src/Vendors/Requests/BatchGetVendorsRequest.php index e7e88092..51d479ef 100644 --- a/src/Vendors/Requests/BatchGetVendorsRequest.php +++ b/src/Vendors/Requests/BatchGetVendorsRequest.php @@ -39,6 +39,7 @@ public function getVendorIds(): ?array public function setVendorIds(?array $value = null): self { $this->vendorIds = $value; + $this->_setField('vendorIds'); return $this; } } diff --git a/src/Vendors/Requests/BatchUpdateVendorsRequest.php b/src/Vendors/Requests/BatchUpdateVendorsRequest.php index 1d4c56df..72f7fe00 100644 --- a/src/Vendors/Requests/BatchUpdateVendorsRequest.php +++ b/src/Vendors/Requests/BatchUpdateVendorsRequest.php @@ -43,6 +43,7 @@ public function getVendors(): array public function setVendors(array $value): self { $this->vendors = $value; + $this->_setField('vendors'); return $this; } } diff --git a/src/Vendors/Requests/CreateVendorRequest.php b/src/Vendors/Requests/CreateVendorRequest.php index 7fdd2f6f..61d65901 100644 --- a/src/Vendors/Requests/CreateVendorRequest.php +++ b/src/Vendors/Requests/CreateVendorRequest.php @@ -53,6 +53,7 @@ public function getIdempotencyKey(): string public function setIdempotencyKey(string $value): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -70,6 +71,7 @@ public function getVendor(): ?Vendor public function setVendor(?Vendor $value = null): self { $this->vendor = $value; + $this->_setField('vendor'); return $this; } } diff --git a/src/Vendors/Requests/GetVendorsRequest.php b/src/Vendors/Requests/GetVendorsRequest.php index aff71546..eb6a2d34 100644 --- a/src/Vendors/Requests/GetVendorsRequest.php +++ b/src/Vendors/Requests/GetVendorsRequest.php @@ -36,6 +36,7 @@ public function getVendorId(): string public function setVendorId(string $value): self { $this->vendorId = $value; + $this->_setField('vendorId'); return $this; } } diff --git a/src/Vendors/Requests/SearchVendorsRequest.php b/src/Vendors/Requests/SearchVendorsRequest.php index c19c6eb6..c585d921 100644 --- a/src/Vendors/Requests/SearchVendorsRequest.php +++ b/src/Vendors/Requests/SearchVendorsRequest.php @@ -61,6 +61,7 @@ public function getFilter(): ?SearchVendorsRequestFilter public function setFilter(?SearchVendorsRequestFilter $value = null): self { $this->filter = $value; + $this->_setField('filter'); return $this; } @@ -78,6 +79,7 @@ public function getSort(): ?SearchVendorsRequestSort public function setSort(?SearchVendorsRequestSort $value = null): self { $this->sort = $value; + $this->_setField('sort'); return $this; } @@ -95,6 +97,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } } diff --git a/src/Vendors/Requests/UpdateVendorsRequest.php b/src/Vendors/Requests/UpdateVendorsRequest.php index b2a6f3da..797af006 100644 --- a/src/Vendors/Requests/UpdateVendorsRequest.php +++ b/src/Vendors/Requests/UpdateVendorsRequest.php @@ -44,6 +44,7 @@ public function getVendorId(): string public function setVendorId(string $value): self { $this->vendorId = $value; + $this->_setField('vendorId'); return $this; } @@ -61,6 +62,7 @@ public function getBody(): UpdateVendorRequest public function setBody(UpdateVendorRequest $value): self { $this->body = $value; + $this->_setField('body'); return $this; } } diff --git a/src/Vendors/VendorsClient.php b/src/Vendors/VendorsClient.php index d20bf686..53d451e2 100644 --- a/src/Vendors/VendorsClient.php +++ b/src/Vendors/VendorsClient.php @@ -2,7 +2,7 @@ namespace Square\Vendors; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Vendors\Requests\BatchCreateVendorsRequest; use Square\Types\BatchCreateVendorsResponse; @@ -12,7 +12,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Vendors\Requests\BatchGetVendorsRequest; use Square\Types\BatchGetVendorsResponse; @@ -99,16 +98,6 @@ public function batchCreate(BatchCreateVendorsRequest $request, ?array $options } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -155,16 +144,6 @@ public function batchGet(BatchGetVendorsRequest $request = new BatchGetVendorsRe } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -211,16 +190,6 @@ public function batchUpdate(BatchUpdateVendorsRequest $request, ?array $options } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -267,16 +236,6 @@ public function create(CreateVendorRequest $request, ?array $options = null): Cr } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -323,16 +282,6 @@ public function search(SearchVendorsRequest $request = new SearchVendorsRequest( } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -378,16 +327,6 @@ public function get(GetVendorsRequest $request, ?array $options = null): GetVend } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -434,16 +373,6 @@ public function update(UpdateVendorsRequest $request, ?array $options = null): U } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Webhooks/EventTypes/EventTypesClient.php b/src/Webhooks/EventTypes/EventTypesClient.php index 7e78b6dc..1c09678d 100644 --- a/src/Webhooks/EventTypes/EventTypesClient.php +++ b/src/Webhooks/EventTypes/EventTypesClient.php @@ -2,7 +2,7 @@ namespace Square\Webhooks\EventTypes; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Webhooks\EventTypes\Requests\ListEventTypesRequest; use Square\Types\ListWebhookEventTypesResponse; @@ -12,7 +12,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; class EventTypesClient @@ -91,16 +90,6 @@ public function list(ListEventTypesRequest $request = new ListEventTypesRequest( } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Webhooks/EventTypes/Requests/ListEventTypesRequest.php b/src/Webhooks/EventTypes/Requests/ListEventTypesRequest.php index 8e9b3c80..580b2eea 100644 --- a/src/Webhooks/EventTypes/Requests/ListEventTypesRequest.php +++ b/src/Webhooks/EventTypes/Requests/ListEventTypesRequest.php @@ -36,6 +36,7 @@ public function getApiVersion(): ?string public function setApiVersion(?string $value = null): self { $this->apiVersion = $value; + $this->_setField('apiVersion'); return $this; } } diff --git a/src/Webhooks/Subscriptions/Requests/CreateWebhookSubscriptionRequest.php b/src/Webhooks/Subscriptions/Requests/CreateWebhookSubscriptionRequest.php index 18702f33..6d6c61dc 100644 --- a/src/Webhooks/Subscriptions/Requests/CreateWebhookSubscriptionRequest.php +++ b/src/Webhooks/Subscriptions/Requests/CreateWebhookSubscriptionRequest.php @@ -47,6 +47,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } @@ -64,6 +65,7 @@ public function getSubscription(): WebhookSubscription public function setSubscription(WebhookSubscription $value): self { $this->subscription = $value; + $this->_setField('subscription'); return $this; } } diff --git a/src/Webhooks/Subscriptions/Requests/DeleteSubscriptionsRequest.php b/src/Webhooks/Subscriptions/Requests/DeleteSubscriptionsRequest.php index 923b8adf..e94d2e98 100644 --- a/src/Webhooks/Subscriptions/Requests/DeleteSubscriptionsRequest.php +++ b/src/Webhooks/Subscriptions/Requests/DeleteSubscriptionsRequest.php @@ -36,6 +36,7 @@ public function getSubscriptionId(): string public function setSubscriptionId(string $value): self { $this->subscriptionId = $value; + $this->_setField('subscriptionId'); return $this; } } diff --git a/src/Webhooks/Subscriptions/Requests/GetSubscriptionsRequest.php b/src/Webhooks/Subscriptions/Requests/GetSubscriptionsRequest.php index 6e49b015..b07b8751 100644 --- a/src/Webhooks/Subscriptions/Requests/GetSubscriptionsRequest.php +++ b/src/Webhooks/Subscriptions/Requests/GetSubscriptionsRequest.php @@ -36,6 +36,7 @@ public function getSubscriptionId(): string public function setSubscriptionId(string $value): self { $this->subscriptionId = $value; + $this->_setField('subscriptionId'); return $this; } } diff --git a/src/Webhooks/Subscriptions/Requests/ListSubscriptionsRequest.php b/src/Webhooks/Subscriptions/Requests/ListSubscriptionsRequest.php index ea3c00bf..f55a3a37 100644 --- a/src/Webhooks/Subscriptions/Requests/ListSubscriptionsRequest.php +++ b/src/Webhooks/Subscriptions/Requests/ListSubscriptionsRequest.php @@ -75,6 +75,7 @@ public function getCursor(): ?string public function setCursor(?string $value = null): self { $this->cursor = $value; + $this->_setField('cursor'); return $this; } @@ -92,6 +93,7 @@ public function getIncludeDisabled(): ?bool public function setIncludeDisabled(?bool $value = null): self { $this->includeDisabled = $value; + $this->_setField('includeDisabled'); return $this; } @@ -109,6 +111,7 @@ public function getSortOrder(): ?string public function setSortOrder(?string $value = null): self { $this->sortOrder = $value; + $this->_setField('sortOrder'); return $this; } @@ -126,6 +129,7 @@ public function getLimit(): ?int public function setLimit(?int $value = null): self { $this->limit = $value; + $this->_setField('limit'); return $this; } } diff --git a/src/Webhooks/Subscriptions/Requests/TestWebhookSubscriptionRequest.php b/src/Webhooks/Subscriptions/Requests/TestWebhookSubscriptionRequest.php index 25b82f0f..af969257 100644 --- a/src/Webhooks/Subscriptions/Requests/TestWebhookSubscriptionRequest.php +++ b/src/Webhooks/Subscriptions/Requests/TestWebhookSubscriptionRequest.php @@ -48,6 +48,7 @@ public function getSubscriptionId(): string public function setSubscriptionId(string $value): self { $this->subscriptionId = $value; + $this->_setField('subscriptionId'); return $this; } @@ -65,6 +66,7 @@ public function getEventType(): ?string public function setEventType(?string $value = null): self { $this->eventType = $value; + $this->_setField('eventType'); return $this; } } diff --git a/src/Webhooks/Subscriptions/Requests/UpdateWebhookSubscriptionRequest.php b/src/Webhooks/Subscriptions/Requests/UpdateWebhookSubscriptionRequest.php index 7c786133..6ebde3d7 100644 --- a/src/Webhooks/Subscriptions/Requests/UpdateWebhookSubscriptionRequest.php +++ b/src/Webhooks/Subscriptions/Requests/UpdateWebhookSubscriptionRequest.php @@ -46,6 +46,7 @@ public function getSubscriptionId(): string public function setSubscriptionId(string $value): self { $this->subscriptionId = $value; + $this->_setField('subscriptionId'); return $this; } @@ -63,6 +64,7 @@ public function getSubscription(): ?WebhookSubscription public function setSubscription(?WebhookSubscription $value = null): self { $this->subscription = $value; + $this->_setField('subscription'); return $this; } } diff --git a/src/Webhooks/Subscriptions/Requests/UpdateWebhookSubscriptionSignatureKeyRequest.php b/src/Webhooks/Subscriptions/Requests/UpdateWebhookSubscriptionSignatureKeyRequest.php index 6337460c..afb63809 100644 --- a/src/Webhooks/Subscriptions/Requests/UpdateWebhookSubscriptionSignatureKeyRequest.php +++ b/src/Webhooks/Subscriptions/Requests/UpdateWebhookSubscriptionSignatureKeyRequest.php @@ -45,6 +45,7 @@ public function getSubscriptionId(): string public function setSubscriptionId(string $value): self { $this->subscriptionId = $value; + $this->_setField('subscriptionId'); return $this; } @@ -62,6 +63,7 @@ public function getIdempotencyKey(): ?string public function setIdempotencyKey(?string $value = null): self { $this->idempotencyKey = $value; + $this->_setField('idempotencyKey'); return $this; } } diff --git a/src/Webhooks/Subscriptions/SubscriptionsClient.php b/src/Webhooks/Subscriptions/SubscriptionsClient.php index 66fc51b1..5fa31b2a 100644 --- a/src/Webhooks/Subscriptions/SubscriptionsClient.php +++ b/src/Webhooks/Subscriptions/SubscriptionsClient.php @@ -2,7 +2,7 @@ namespace Square\Webhooks\Subscriptions; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; use Square\Webhooks\Subscriptions\Requests\ListSubscriptionsRequest; use Square\Core\Pagination\Pager; @@ -17,7 +17,6 @@ use Square\Environments; use Square\Core\Client\HttpMethod; use JsonException; -use GuzzleHttp\Exception\RequestException; use Psr\Http\Client\ClientExceptionInterface; use Square\Webhooks\Subscriptions\Requests\GetSubscriptionsRequest; use Square\Types\GetWebhookSubscriptionResponse; @@ -131,16 +130,6 @@ public function create(CreateWebhookSubscriptionRequest $request, ?array $option } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -186,16 +175,6 @@ public function get(GetSubscriptionsRequest $request, ?array $options = null): G } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -242,16 +221,6 @@ public function update(UpdateWebhookSubscriptionRequest $request, ?array $option } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -297,16 +266,6 @@ public function delete(DeleteSubscriptionsRequest $request, ?array $options = nu } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -353,16 +312,6 @@ public function updateSignatureKey(UpdateWebhookSubscriptionSignatureKeyRequest } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -409,16 +358,6 @@ public function test(TestWebhookSubscriptionRequest $request, ?array $options = } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } @@ -478,16 +417,6 @@ private function _list(ListSubscriptionsRequest $request = new ListSubscriptions } } catch (JsonException $e) { throw new SquareException(message: "Failed to deserialize response: {$e->getMessage()}", previous: $e); - } catch (RequestException $e) { - $response = $e->getResponse(); - if ($response === null) { - throw new SquareException(message: $e->getMessage(), previous: $e); - } - throw new SquareApiException( - message: "API request failed", - statusCode: $response->getStatusCode(), - body: $response->getBody()->getContents(), - ); } catch (ClientExceptionInterface $e) { throw new SquareException(message: $e->getMessage(), previous: $e); } diff --git a/src/Webhooks/WebhooksClient.php b/src/Webhooks/WebhooksClient.php index 30ecf2f7..2bd7ee29 100644 --- a/src/Webhooks/WebhooksClient.php +++ b/src/Webhooks/WebhooksClient.php @@ -4,7 +4,7 @@ use Square\Webhooks\EventTypes\EventTypesClient; use Square\Webhooks\Subscriptions\SubscriptionsClient; -use GuzzleHttp\ClientInterface; +use Psr\Http\Client\ClientInterface; use Square\Core\Client\RawClient; class WebhooksClient diff --git a/tests/Core/Client/RawClientTest.php b/tests/Core/Client/RawClientTest.php index a1ec187c..e44444f9 100644 --- a/tests/Core/Client/RawClientTest.php +++ b/tests/Core/Client/RawClientTest.php @@ -2,21 +2,22 @@ namespace Square\Tests\Core\Client; -use GuzzleHttp\Client; -use GuzzleHttp\Handler\MockHandler; -use GuzzleHttp\HandlerStack; -use GuzzleHttp\Promise as P; -use GuzzleHttp\Psr7\Request; -use GuzzleHttp\Psr7\Response; use PHPUnit\Framework\TestCase; use Psr\Http\Client\ClientExceptionInterface; use Psr\Http\Message\RequestInterface; +use Psr\Http\Message\ResponseInterface; use Square\Core\Client\HttpMethod; +use Square\Core\Client\HttpClientBuilder; +use Square\Core\Client\MockHttpClient; use Square\Core\Client\RawClient; -use Square\Core\Client\RetryMiddleware; +use Square\Core\Client\RetryDecoratingClient; use Square\Core\Json\JsonApiRequest; +use Square\Core\Json\JsonEncoder; use Square\Core\Json\JsonSerializableType; use Square\Core\Json\JsonProperty; +use Square\Core\Multipart\MultipartApiRequest; +use Square\Core\Multipart\MultipartFormData; +use Square\Core\Multipart\MultipartFormDataPart; class JsonRequest extends JsonSerializableType { @@ -49,20 +50,13 @@ public function getName(): ?string class RawClientTest extends TestCase { private string $baseUrl = 'https://api.example.com'; - private MockHandler $mockHandler; + private MockHttpClient $mockClient; private RawClient $rawClient; protected function setUp(): void { - $this->mockHandler = new MockHandler(); - $handlerStack = HandlerStack::create($this->mockHandler); - // since the client is constructed manually, we need to add the retry middleware manually - $handlerStack->push(RetryMiddleware::create([ - 'maxRetries' => 0, - 'baseDelay' => 0, - ])); - $client = new Client(['handler' => $handlerStack]); - $this->rawClient = new RawClient(['client' => $client]); + $this->mockClient = new MockHttpClient(); + $this->rawClient = new RawClient(['client' => $this->mockClient, 'maxRetries' => 0]); } /** @@ -70,7 +64,7 @@ protected function setUp(): void */ public function testHeaders(): void { - $this->mockHandler->append(new Response(200)); + $this->mockClient->append(self::createResponse(200)); $request = new JsonApiRequest( $this->baseUrl, @@ -81,8 +75,8 @@ public function testHeaders(): void $this->rawClient->sendRequest($request); - $lastRequest = $this->mockHandler->getLastRequest(); - assert($lastRequest instanceof RequestInterface); + $lastRequest = $this->mockClient->getLastRequest(); + $this->assertInstanceOf(RequestInterface::class, $lastRequest); $this->assertEquals('application/json', $lastRequest->getHeaderLine('Content-Type')); $this->assertEquals('TestValue', $lastRequest->getHeaderLine('X-Custom-Header')); } @@ -92,7 +86,7 @@ public function testHeaders(): void */ public function testQueryParameters(): void { - $this->mockHandler->append(new Response(200)); + $this->mockClient->append(self::createResponse(200)); $request = new JsonApiRequest( $this->baseUrl, @@ -104,8 +98,8 @@ public function testQueryParameters(): void $this->rawClient->sendRequest($request); - $lastRequest = $this->mockHandler->getLastRequest(); - assert($lastRequest instanceof RequestInterface); + $lastRequest = $this->mockClient->getLastRequest(); + $this->assertInstanceOf(RequestInterface::class, $lastRequest); $this->assertEquals( 'https://api.example.com/test?param1=value1¶m2=a¶m2=b¶m3=true', (string)$lastRequest->getUri() @@ -117,7 +111,7 @@ public function testQueryParameters(): void */ public function testJsonBody(): void { - $this->mockHandler->append(new Response(200)); + $this->mockClient->append(self::createResponse(200)); $body = ['key' => 'value']; $request = new JsonApiRequest( @@ -131,15 +125,15 @@ public function testJsonBody(): void $this->rawClient->sendRequest($request); - $lastRequest = $this->mockHandler->getLastRequest(); - assert($lastRequest instanceof RequestInterface); + $lastRequest = $this->mockClient->getLastRequest(); + $this->assertInstanceOf(RequestInterface::class, $lastRequest); $this->assertEquals('application/json', $lastRequest->getHeaderLine('Content-Type')); - $this->assertEquals(json_encode($body), (string)$lastRequest->getBody()); + $this->assertEquals(JsonEncoder::encode($body), (string)$lastRequest->getBody()); } public function testAdditionalHeaders(): void { - $this->mockHandler->append(new Response(200)); + $this->mockClient->append(self::createResponse(200)); $body = new JsonRequest([ 'name' => 'john.doe' @@ -165,8 +159,8 @@ public function testAdditionalHeaders(): void ] ); - $lastRequest = $this->mockHandler->getLastRequest(); - assert($lastRequest instanceof RequestInterface); + $lastRequest = $this->mockClient->getLastRequest(); + $this->assertInstanceOf(RequestInterface::class, $lastRequest); $this->assertEquals('application/json', $lastRequest->getHeaderLine('Content-Type')); $this->assertEquals('1.0.0', $lastRequest->getHeaderLine('X-API-Version')); $this->assertEquals('test', $lastRequest->getHeaderLine('X-Tenancy')); @@ -174,7 +168,7 @@ public function testAdditionalHeaders(): void public function testOverrideAdditionalHeaders(): void { - $this->mockHandler->append(new Response(200)); + $this->mockClient->append(self::createResponse(200)); $body = new JsonRequest([ 'name' => 'john.doe' @@ -200,15 +194,15 @@ public function testOverrideAdditionalHeaders(): void ] ); - $lastRequest = $this->mockHandler->getLastRequest(); - assert($lastRequest instanceof RequestInterface); + $lastRequest = $this->mockClient->getLastRequest(); + $this->assertInstanceOf(RequestInterface::class, $lastRequest); $this->assertEquals('application/json', $lastRequest->getHeaderLine('Content-Type')); $this->assertEquals('2.0.0', $lastRequest->getHeaderLine('X-API-Version')); } public function testAdditionalBodyProperties(): void { - $this->mockHandler->append(new Response(200)); + $this->mockClient->append(self::createResponse(200)); $body = new JsonRequest([ 'name' => 'john.doe' @@ -236,15 +230,15 @@ public function testAdditionalBodyProperties(): void 'age' => 42 ]; - $lastRequest = $this->mockHandler->getLastRequest(); - assert($lastRequest instanceof RequestInterface); + $lastRequest = $this->mockClient->getLastRequest(); + $this->assertInstanceOf(RequestInterface::class, $lastRequest); $this->assertEquals('application/json', $lastRequest->getHeaderLine('Content-Type')); - $this->assertEquals(json_encode($expectedJson), (string)$lastRequest->getBody()); + $this->assertEquals(JsonEncoder::encode($expectedJson), (string)$lastRequest->getBody()); } public function testOverrideAdditionalBodyProperties(): void { - $this->mockHandler->append(new Response(200)); + $this->mockClient->append(self::createResponse(200)); $body = [ 'name' => 'john.doe' @@ -271,15 +265,15 @@ public function testOverrideAdditionalBodyProperties(): void 'name' => 'jane.doe', ]; - $lastRequest = $this->mockHandler->getLastRequest(); - assert($lastRequest instanceof RequestInterface); + $lastRequest = $this->mockClient->getLastRequest(); + $this->assertInstanceOf(RequestInterface::class, $lastRequest); $this->assertEquals('application/json', $lastRequest->getHeaderLine('Content-Type')); - $this->assertEquals(json_encode($expectedJson), (string)$lastRequest->getBody()); + $this->assertEquals(JsonEncoder::encode($expectedJson), (string)$lastRequest->getBody()); } public function testAdditionalQueryParameters(): void { - $this->mockHandler->append(new Response(200)); + $this->mockClient->append(self::createResponse(200)); $query = ['key' => 'value']; $request = new JsonApiRequest( @@ -300,15 +294,15 @@ public function testAdditionalQueryParameters(): void ] ); - $lastRequest = $this->mockHandler->getLastRequest(); - assert($lastRequest instanceof RequestInterface); + $lastRequest = $this->mockClient->getLastRequest(); + $this->assertInstanceOf(RequestInterface::class, $lastRequest); $this->assertEquals('application/json', $lastRequest->getHeaderLine('Content-Type')); $this->assertEquals('key=value&extra=42', $lastRequest->getUri()->getQuery()); } public function testOverrideQueryParameters(): void { - $this->mockHandler->append(new Response(200)); + $this->mockClient->append(self::createResponse(200)); $query = ['key' => 'invalid']; $request = new JsonApiRequest( @@ -329,15 +323,15 @@ public function testOverrideQueryParameters(): void ] ); - $lastRequest = $this->mockHandler->getLastRequest(); - assert($lastRequest instanceof RequestInterface); + $lastRequest = $this->mockClient->getLastRequest(); + $this->assertInstanceOf(RequestInterface::class, $lastRequest); $this->assertEquals('application/json', $lastRequest->getHeaderLine('Content-Type')); $this->assertEquals('key=value', $lastRequest->getUri()->getQuery()); } public function testDefaultRetries(): void { - $this->mockHandler->append(new Response(500)); + $this->mockClient->append(self::createResponse(500)); $request = new JsonApiRequest( $this->baseUrl, @@ -345,15 +339,9 @@ public function testDefaultRetries(): void HttpMethod::GET ); - try { - $this->rawClient->sendRequest($request); - $this->fail("Request should've failed but succeeded."); - } catch (ClientExceptionInterface) { - } - - $lastRequest = $this->mockHandler->getLastRequest(); - assert($lastRequest instanceof RequestInterface); - $this->assertEquals(0, $this->mockHandler->count()); + $response = $this->rawClient->sendRequest($request); + $this->assertEquals(500, $response->getStatusCode()); + $this->assertEquals(0, $this->mockClient->count()); } /** @@ -361,38 +349,44 @@ public function testDefaultRetries(): void */ public function testExplicitRetriesSuccess(): void { - $this->mockHandler->append(new Response(500), new Response(500), new Response(200)); - - $request = new JsonApiRequest( - $this->baseUrl, - '/test', - HttpMethod::GET + $mockClient = new MockHttpClient(); + $mockClient->append(self::createResponse(500), self::createResponse(500), self::createResponse(200)); + + $retryClient = new RetryDecoratingClient( + $mockClient, + maxRetries: 2, + sleepFunction: function (int $_microseconds): void { + }, ); - $this->rawClient->sendRequest($request, ['maxRetries' => 2]); + $requestFactory = \Http\Discovery\Psr17FactoryDiscovery::findRequestFactory(); + $request = $requestFactory->createRequest('GET', $this->baseUrl . '/test'); + + $response = $retryClient->sendRequest($request); - $lastRequest = $this->mockHandler->getLastRequest(); - assert($lastRequest instanceof RequestInterface); - $this->assertEquals(0, $this->mockHandler->count()); + $this->assertEquals(200, $response->getStatusCode()); + $this->assertEquals(0, $mockClient->count()); } public function testExplicitRetriesFailure(): void { - $this->mockHandler->append(new Response(500), new Response(500), new Response(500)); - - $request = new JsonApiRequest( - $this->baseUrl, - '/test', - HttpMethod::GET + $mockClient = new MockHttpClient(); + $mockClient->append(self::createResponse(500), self::createResponse(500), self::createResponse(500)); + + $retryClient = new RetryDecoratingClient( + $mockClient, + maxRetries: 2, + sleepFunction: function (int $_microseconds): void { + }, ); - try { - $this->rawClient->sendRequest($request, ['maxRetries' => 2]); - $this->fail("Request should've failed but succeeded."); - } catch (ClientExceptionInterface) { - } + $requestFactory = \Http\Discovery\Psr17FactoryDiscovery::findRequestFactory(); + $request = $requestFactory->createRequest('GET', $this->baseUrl . '/test'); + + $response = $retryClient->sendRequest($request); - $this->assertEquals(0, $this->mockHandler->count()); + $this->assertEquals(500, $response->getStatusCode()); + $this->assertEquals(0, $mockClient->count()); } /** @@ -400,272 +394,681 @@ public function testExplicitRetriesFailure(): void */ public function testShouldRetryOnStatusCodes(): void { - $this->mockHandler->append( - new Response(408), - new Response(429), - new Response(500), - new Response(501), - new Response(502), - new Response(503), - new Response(504), - new Response(505), - new Response(599), - new Response(200), + $mockClient = new MockHttpClient(); + $mockClient->append( + self::createResponse(408), + self::createResponse(429), + self::createResponse(500), + self::createResponse(501), + self::createResponse(502), + self::createResponse(503), + self::createResponse(504), + self::createResponse(505), + self::createResponse(599), + self::createResponse(200), ); - $countOfErrorRequests = $this->mockHandler->count() - 1; + $countOfErrorRequests = $mockClient->count() - 1; - $request = new JsonApiRequest( - $this->baseUrl, - '/test', - HttpMethod::GET + $retryClient = new RetryDecoratingClient( + $mockClient, + maxRetries: $countOfErrorRequests, + sleepFunction: function (int $_microseconds): void { + }, ); - $this->rawClient->sendRequest($request, ['maxRetries' => $countOfErrorRequests]); + $requestFactory = \Http\Discovery\Psr17FactoryDiscovery::findRequestFactory(); + $request = $requestFactory->createRequest('GET', $this->baseUrl . '/test'); - $this->assertEquals(0, $this->mockHandler->count()); + $response = $retryClient->sendRequest($request); + + $this->assertEquals(200, $response->getStatusCode()); + $this->assertEquals(0, $mockClient->count()); } public function testShouldFailOn400Response(): void { - $this->mockHandler->append(new Response(400), new Response(200)); - - $request = new JsonApiRequest( - $this->baseUrl, - '/test', - HttpMethod::GET + $mockClient = new MockHttpClient(); + $mockClient->append(self::createResponse(400), self::createResponse(200)); + + $retryClient = new RetryDecoratingClient( + $mockClient, + maxRetries: 2, + sleepFunction: function (int $_microseconds): void { + }, ); - try { - $this->rawClient->sendRequest($request, ['maxRetries' => 2]); - $this->fail("Request should've failed but succeeded."); - } catch (ClientExceptionInterface) { - } + $requestFactory = \Http\Discovery\Psr17FactoryDiscovery::findRequestFactory(); + $request = $requestFactory->createRequest('GET', $this->baseUrl . '/test'); - $this->assertEquals(1, $this->mockHandler->count()); + $response = $retryClient->sendRequest($request); + + $this->assertEquals(400, $response->getStatusCode()); + $this->assertEquals(1, $mockClient->count()); } public function testRetryAfterSecondsHeaderControlsDelay(): void { - $responses = [ - new Response(503, ['Retry-After' => '10']), - new Response(200), - ]; - $capturedOptions = []; + $mockClient = new MockHttpClient(); + $mockClient->append( + self::createResponse(503, ['Retry-After' => '10']), + self::createResponse(200), + ); - $handler = function (RequestInterface $request, array $options) use (&$responses, &$capturedOptions) { - $capturedOptions[] = $options; - $response = array_shift($responses); - return P\Create::promiseFor($response); + $capturedDelays = []; + $sleepFunction = function (int $microseconds) use (&$capturedDelays): void { + $capturedDelays[] = (int) ($microseconds / 1000); // Convert microseconds to milliseconds }; - $middleware = RetryMiddleware::create([ - 'maxRetries' => 2, - 'baseDelay' => 1000, - ]); + $retryClient = new RetryDecoratingClient( + $mockClient, + maxRetries: 2, + baseDelay: 1000, + sleepFunction: $sleepFunction, + ); - $retryHandler = $middleware($handler); - $request = new Request('GET', $this->baseUrl . '/test'); + $requestFactory = \Http\Discovery\Psr17FactoryDiscovery::findRequestFactory(); + $request = $requestFactory->createRequest('GET', $this->baseUrl . '/test'); - $promise = $retryHandler($request, ['delay' => 0]); - $promise->wait(); + $retryClient->sendRequest($request); - $this->assertCount(2, $capturedOptions); - $this->assertSame(0, $capturedOptions[0]['delay']); - $delay = $capturedOptions[1]['delay']; - $this->assertGreaterThanOrEqual(10000, $delay); - $this->assertLessThanOrEqual(12000, $delay); + $this->assertCount(1, $capturedDelays); + $this->assertGreaterThanOrEqual(10000, $capturedDelays[0]); + $this->assertLessThanOrEqual(12000, $capturedDelays[0]); } public function testRetryAfterHttpDateHeaderIsHandled(): void { $retryAfterDate = gmdate('D, d M Y H:i:s \G\M\T', time() + 5); - $responses = [ - new Response(503, ['Retry-After' => $retryAfterDate]), - new Response(200), - ]; - $capturedOptions = []; + $mockClient = new MockHttpClient(); + $mockClient->append( + self::createResponse(503, ['Retry-After' => $retryAfterDate]), + self::createResponse(200), + ); - $handler = function (RequestInterface $request, array $options) use (&$responses, &$capturedOptions) { - $capturedOptions[] = $options; - $response = array_shift($responses); - return P\Create::promiseFor($response); + $capturedDelays = []; + $sleepFunction = function (int $microseconds) use (&$capturedDelays): void { + $capturedDelays[] = (int) ($microseconds / 1000); }; - $middleware = RetryMiddleware::create([ - 'maxRetries' => 2, - 'baseDelay' => 1000, - ]); + $retryClient = new RetryDecoratingClient( + $mockClient, + maxRetries: 2, + baseDelay: 1000, + sleepFunction: $sleepFunction, + ); - $retryHandler = $middleware($handler); - $request = new Request('GET', $this->baseUrl . '/test'); + $requestFactory = \Http\Discovery\Psr17FactoryDiscovery::findRequestFactory(); + $request = $requestFactory->createRequest('GET', $this->baseUrl . '/test'); - $promise = $retryHandler($request, ['delay' => 0]); - $promise->wait(); + $retryClient->sendRequest($request); - $this->assertCount(2, $capturedOptions); - $delay = $capturedOptions[1]['delay']; - $this->assertGreaterThan(0, $delay); - $this->assertLessThanOrEqual(60000, $delay); + $this->assertCount(1, $capturedDelays); + $this->assertGreaterThan(0, $capturedDelays[0]); + $this->assertLessThanOrEqual(60000, $capturedDelays[0]); } public function testRateLimitResetHeaderControlsDelay(): void { $resetTime = (int) floor(microtime(true)) + 5; - $responses = [ - new Response(429, ['X-RateLimit-Reset' => (string) $resetTime]), - new Response(200), - ]; - $capturedOptions = []; - $handler = function (RequestInterface $request, array $options) use (&$responses, &$capturedOptions) { - $capturedOptions[] = $options; - $response = array_shift($responses); - return P\Create::promiseFor($response); + $mockClient = new MockHttpClient(); + $mockClient->append( + self::createResponse(429, ['X-RateLimit-Reset' => (string) $resetTime]), + self::createResponse(200), + ); + + $capturedDelays = []; + $sleepFunction = function (int $microseconds) use (&$capturedDelays): void { + $capturedDelays[] = (int) ($microseconds / 1000); }; - $middleware = RetryMiddleware::create([ - 'maxRetries' => 2, - 'baseDelay' => 1000, - ]); + $retryClient = new RetryDecoratingClient( + $mockClient, + maxRetries: 2, + baseDelay: 1000, + sleepFunction: $sleepFunction, + ); - $retryHandler = $middleware($handler); - $request = new Request('GET', $this->baseUrl . '/test'); + $requestFactory = \Http\Discovery\Psr17FactoryDiscovery::findRequestFactory(); + $request = $requestFactory->createRequest('GET', $this->baseUrl . '/test'); - $promise = $retryHandler($request, ['delay' => 0]); - $promise->wait(); + $retryClient->sendRequest($request); - $this->assertCount(2, $capturedOptions); - $delay = $capturedOptions[1]['delay']; - $this->assertGreaterThan(0, $delay); - $this->assertLessThanOrEqual(60000, $delay); + $this->assertCount(1, $capturedDelays); + $this->assertGreaterThan(0, $capturedDelays[0]); + $this->assertLessThanOrEqual(60000, $capturedDelays[0]); } public function testRateLimitResetHeaderRespectsMaxDelayAndPositiveJitter(): void { $resetTime = (int) floor(microtime(true)) + 1000; - $responses = [ - new Response(429, ['X-RateLimit-Reset' => (string) $resetTime]), - new Response(200), - ]; - $capturedOptions = []; - $handler = function (RequestInterface $request, array $options) use (&$responses, &$capturedOptions) { - $capturedOptions[] = $options; - $response = array_shift($responses); - return P\Create::promiseFor($response); + $mockClient = new MockHttpClient(); + $mockClient->append( + self::createResponse(429, ['X-RateLimit-Reset' => (string) $resetTime]), + self::createResponse(200), + ); + + $capturedDelays = []; + $sleepFunction = function (int $microseconds) use (&$capturedDelays): void { + $capturedDelays[] = (int) ($microseconds / 1000); }; - $middleware = RetryMiddleware::create([ - 'maxRetries' => 1, - 'baseDelay' => 1000, - ]); + $retryClient = new RetryDecoratingClient( + $mockClient, + maxRetries: 1, + baseDelay: 1000, + sleepFunction: $sleepFunction, + ); - $retryHandler = $middleware($handler); - $request = new Request('GET', $this->baseUrl . '/test'); + $requestFactory = \Http\Discovery\Psr17FactoryDiscovery::findRequestFactory(); + $request = $requestFactory->createRequest('GET', $this->baseUrl . '/test'); - $promise = $retryHandler($request, ['delay' => 0]); - $promise->wait(); + $retryClient->sendRequest($request); - $delay = $capturedOptions[1]['delay']; - $this->assertGreaterThanOrEqual(60000, $delay); - $this->assertLessThanOrEqual(72000, $delay); + $this->assertCount(1, $capturedDelays); + $this->assertGreaterThanOrEqual(60000, $capturedDelays[0]); + $this->assertLessThanOrEqual(72000, $capturedDelays[0]); } public function testExponentialBackoffWithSymmetricJitterWhenNoHeaders(): void { - $responses = [ - new Response(503), - new Response(200), - ]; - $capturedOptions = []; + $mockClient = new MockHttpClient(); + $mockClient->append( + self::createResponse(503), + self::createResponse(200), + ); - $handler = function (RequestInterface $request, array $options) use (&$responses, &$capturedOptions) { - $capturedOptions[] = $options; - $response = array_shift($responses); - return P\Create::promiseFor($response); + $capturedDelays = []; + $sleepFunction = function (int $microseconds) use (&$capturedDelays): void { + $capturedDelays[] = (int) ($microseconds / 1000); }; - $middleware = RetryMiddleware::create([ - 'maxRetries' => 1, - 'baseDelay' => 1000, - ]); + $retryClient = new RetryDecoratingClient( + $mockClient, + maxRetries: 1, + baseDelay: 1000, + sleepFunction: $sleepFunction, + ); - $retryHandler = $middleware($handler); - $request = new Request('GET', $this->baseUrl . '/test'); + $requestFactory = \Http\Discovery\Psr17FactoryDiscovery::findRequestFactory(); + $request = $requestFactory->createRequest('GET', $this->baseUrl . '/test'); - $promise = $retryHandler($request, ['delay' => 0]); - $promise->wait(); + $retryClient->sendRequest($request); - $this->assertCount(2, $capturedOptions); - $delay = $capturedOptions[1]['delay']; - $this->assertGreaterThanOrEqual(900, $delay); - $this->assertLessThanOrEqual(1100, $delay); + $this->assertCount(1, $capturedDelays); + $this->assertGreaterThanOrEqual(900, $capturedDelays[0]); + $this->assertLessThanOrEqual(1100, $capturedDelays[0]); } public function testRetryAfterHeaderTakesPrecedenceOverRateLimitReset(): void { $resetTime = (int) floor(microtime(true)) + 30; - $responses = [ - new Response(503, [ + + $mockClient = new MockHttpClient(); + $mockClient->append( + self::createResponse(503, [ 'Retry-After' => '5', 'X-RateLimit-Reset' => (string) $resetTime, ]), - new Response(200), - ]; - $capturedOptions = []; + self::createResponse(200), + ); - $handler = function (RequestInterface $request, array $options) use (&$responses, &$capturedOptions) { - $capturedOptions[] = $options; - $response = array_shift($responses); - return P\Create::promiseFor($response); + $capturedDelays = []; + $sleepFunction = function (int $microseconds) use (&$capturedDelays): void { + $capturedDelays[] = (int) ($microseconds / 1000); }; - $middleware = RetryMiddleware::create([ - 'maxRetries' => 2, - 'baseDelay' => 1000, - ]); + $retryClient = new RetryDecoratingClient( + $mockClient, + maxRetries: 2, + baseDelay: 1000, + sleepFunction: $sleepFunction, + ); - $retryHandler = $middleware($handler); - $request = new Request('GET', $this->baseUrl . '/test'); + $requestFactory = \Http\Discovery\Psr17FactoryDiscovery::findRequestFactory(); + $request = $requestFactory->createRequest('GET', $this->baseUrl . '/test'); - $promise = $retryHandler($request, ['delay' => 0]); - $promise->wait(); + $retryClient->sendRequest($request); - $this->assertCount(2, $capturedOptions); - $delay = $capturedOptions[1]['delay']; - $this->assertGreaterThanOrEqual(5000, $delay); - $this->assertLessThanOrEqual(6000, $delay); + $this->assertCount(1, $capturedDelays); + $this->assertGreaterThanOrEqual(5000, $capturedDelays[0]); + $this->assertLessThanOrEqual(6000, $capturedDelays[0]); } public function testMaxDelayCapIsApplied(): void { - $responses = [ - new Response(503, ['Retry-After' => '120']), - new Response(200), - ]; - $capturedOptions = []; + $mockClient = new MockHttpClient(); + $mockClient->append( + self::createResponse(503, ['Retry-After' => '120']), + self::createResponse(200), + ); - $handler = function (RequestInterface $request, array $options) use (&$responses, &$capturedOptions) { - $capturedOptions[] = $options; - $response = array_shift($responses); - return P\Create::promiseFor($response); + $capturedDelays = []; + $sleepFunction = function (int $microseconds) use (&$capturedDelays): void { + $capturedDelays[] = (int) ($microseconds / 1000); }; - $middleware = RetryMiddleware::create([ - 'maxRetries' => 2, - 'baseDelay' => 1000, + $retryClient = new RetryDecoratingClient( + $mockClient, + maxRetries: 2, + baseDelay: 1000, + sleepFunction: $sleepFunction, + ); + + $requestFactory = \Http\Discovery\Psr17FactoryDiscovery::findRequestFactory(); + $request = $requestFactory->createRequest('GET', $this->baseUrl . '/test'); + + $retryClient->sendRequest($request); + + $this->assertCount(1, $capturedDelays); + $this->assertGreaterThanOrEqual(60000, $capturedDelays[0]); + $this->assertLessThanOrEqual(72000, $capturedDelays[0]); + } + + public function testMultipartContentTypeIncludesBoundary(): void + { + $this->mockClient->append(self::createResponse(200)); + + $formData = new MultipartFormData(); + $formData->add('field', 'value'); + + $request = new MultipartApiRequest( + $this->baseUrl, + '/upload', + HttpMethod::POST, + [], + [], + $formData, + ); + + $this->rawClient->sendRequest($request); + + $lastRequest = $this->mockClient->getLastRequest(); + $this->assertInstanceOf(RequestInterface::class, $lastRequest); + + $contentType = $lastRequest->getHeaderLine('Content-Type'); + $this->assertStringStartsWith('multipart/form-data; boundary=', $contentType); + + $boundary = substr($contentType, strlen('multipart/form-data; boundary=')); + $body = (string) $lastRequest->getBody(); + $this->assertStringContainsString("--{$boundary}\r\n", $body); + $this->assertStringContainsString("Content-Disposition: form-data; name=\"field\"\r\n", $body); + $this->assertStringContainsString("value", $body); + $this->assertStringContainsString("--{$boundary}--\r\n", $body); + } + + public function testMultipartWithFilename(): void + { + $this->mockClient->append(self::createResponse(200)); + + $formData = new MultipartFormData(); + $formData->addPart(new MultipartFormDataPart( + name: 'document', + value: 'file-contents', + filename: 'report.pdf', + headers: ['Content-Type' => 'application/pdf'], + )); + + $request = new MultipartApiRequest( + $this->baseUrl, + '/upload', + HttpMethod::POST, + [], + [], + $formData, + ); + + $this->rawClient->sendRequest($request); + + $lastRequest = $this->mockClient->getLastRequest(); + $this->assertInstanceOf(RequestInterface::class, $lastRequest); + + $body = (string) $lastRequest->getBody(); + $this->assertStringContainsString( + 'Content-Disposition: form-data; name="document"; filename="report.pdf"', + $body, + ); + $this->assertStringContainsString('Content-Type: application/pdf', $body); + $this->assertStringContainsString('file-contents', $body); + } + + public function testMultipartWithMultipleParts(): void + { + $this->mockClient->append(self::createResponse(200)); + + $formData = new MultipartFormData(); + $formData->add('name', 'John'); + $formData->add('age', 30); + $formData->addPart(new MultipartFormDataPart( + name: 'avatar', + value: 'image-data', + filename: 'avatar.png', + )); + + $request = new MultipartApiRequest( + $this->baseUrl, + '/profile', + HttpMethod::POST, + [], + [], + $formData, + ); + + $this->rawClient->sendRequest($request); + + $lastRequest = $this->mockClient->getLastRequest(); + $this->assertInstanceOf(RequestInterface::class, $lastRequest); + + $body = (string) $lastRequest->getBody(); + $this->assertStringContainsString('name="name"', $body); + $this->assertStringContainsString('John', $body); + $this->assertStringContainsString('name="age"', $body); + $this->assertStringContainsString('30', $body); + $this->assertStringContainsString('name="avatar"; filename="avatar.png"', $body); + $this->assertStringContainsString('image-data', $body); + } + + public function testMultipartDoesNotIncludeJsonContentType(): void + { + $this->mockClient->append(self::createResponse(200)); + + $formData = new MultipartFormData(); + $formData->add('field', 'value'); + + $request = new MultipartApiRequest( + $this->baseUrl, + '/upload', + HttpMethod::POST, + [], + [], + $formData, + ); + + $this->rawClient->sendRequest($request); + + $lastRequest = $this->mockClient->getLastRequest(); + $this->assertInstanceOf(RequestInterface::class, $lastRequest); + + $contentType = $lastRequest->getHeaderLine('Content-Type'); + $this->assertStringStartsWith('multipart/form-data; boundary=', $contentType); + $this->assertStringNotContainsString('application/json', $contentType); + } + + public function testMultipartNullBodySendsNoBody(): void + { + $this->mockClient->append(self::createResponse(200)); + + $request = new MultipartApiRequest( + $this->baseUrl, + '/upload', + HttpMethod::POST, + ); + + $this->rawClient->sendRequest($request); + + $lastRequest = $this->mockClient->getLastRequest(); + $this->assertInstanceOf(RequestInterface::class, $lastRequest); + + $this->assertEquals('', (string) $lastRequest->getBody()); + $this->assertStringNotContainsString('multipart/form-data', $lastRequest->getHeaderLine('Content-Type')); + } + + public function testJsonNullBodySendsNoBody(): void + { + $this->mockClient->append(self::createResponse(200)); + + $request = new JsonApiRequest( + $this->baseUrl, + '/test', + HttpMethod::POST, + ); + + $this->rawClient->sendRequest($request); + + $lastRequest = $this->mockClient->getLastRequest(); + $this->assertInstanceOf(RequestInterface::class, $lastRequest); + + $this->assertEquals('', (string) $lastRequest->getBody()); + } + + public function testEmptyJsonBodySerializesAsObject(): void + { + $this->mockClient->append(self::createResponse(200)); + + $request = new JsonApiRequest( + $this->baseUrl, + '/test', + HttpMethod::POST, + [], + [], + ['key' => 'value'], + ); + + $this->rawClient->sendRequest( + $request, + options: [ + 'bodyProperties' => [ + 'key' => 'value', + ], + ], + ); + + $lastRequest = $this->mockClient->getLastRequest(); + $this->assertInstanceOf(RequestInterface::class, $lastRequest); + + // When bodyProperties override all keys, the merged result should still + // serialize as a JSON object {}, not an array []. + $decoded = json_decode((string) $lastRequest->getBody(), true); + $this->assertIsArray($decoded); + $this->assertEquals('value', $decoded['key']); + } + + public function testAuthHeadersAreIncluded(): void + { + $mockClient = new MockHttpClient(); + $mockClient->append(self::createResponse(200)); + + $rawClient = new RawClient([ + 'client' => $mockClient, + 'maxRetries' => 0, + 'getAuthHeaders' => fn () => ['Authorization' => 'Bearer test-token'], + ]); + + $request = new JsonApiRequest( + $this->baseUrl, + '/test', + HttpMethod::GET, + ); + + $rawClient->sendRequest($request); + + $lastRequest = $mockClient->getLastRequest(); + $this->assertInstanceOf(RequestInterface::class, $lastRequest); + + $this->assertEquals('Bearer test-token', $lastRequest->getHeaderLine('Authorization')); + } + + public function testAuthHeadersAreIncludedInMultipart(): void + { + $mockClient = new MockHttpClient(); + $mockClient->append(self::createResponse(200)); + + $rawClient = new RawClient([ + 'client' => $mockClient, + 'maxRetries' => 0, + 'getAuthHeaders' => fn () => ['Authorization' => 'Bearer test-token'], + ]); + + $formData = new MultipartFormData(); + $formData->add('field', 'value'); + + $request = new MultipartApiRequest( + $this->baseUrl, + '/upload', + HttpMethod::POST, + [], + [], + $formData, + ); + + $rawClient->sendRequest($request); + + $lastRequest = $mockClient->getLastRequest(); + $this->assertInstanceOf(RequestInterface::class, $lastRequest); + + $this->assertEquals('Bearer test-token', $lastRequest->getHeaderLine('Authorization')); + $this->assertStringStartsWith('multipart/form-data; boundary=', $lastRequest->getHeaderLine('Content-Type')); + } + + /** + * Creates a PSR-7 response using discovery, without depending on any specific implementation. + * + * @param int $statusCode + * @param array $headers + * @param string $body + * @return ResponseInterface + */ + private static function createResponse( + int $statusCode = 200, + array $headers = [], + string $body = '', + ): ResponseInterface { + $response = \Http\Discovery\Psr17FactoryDiscovery::findResponseFactory() + ->createResponse($statusCode); + foreach ($headers as $name => $value) { + $response = $response->withHeader($name, $value); + } + if ($body !== '') { + $response = $response->withBody( + \Http\Discovery\Psr17FactoryDiscovery::findStreamFactory() + ->createStream($body), + ); + } + return $response; + } + + + public function testTimeoutOptionIsAccepted(): void + { + $this->mockClient->append(self::createResponse(200)); + + $request = new JsonApiRequest( + $this->baseUrl, + '/test', + HttpMethod::GET, + ); + + // MockHttpClient is not Guzzle/Symfony, so a warning is triggered once. + set_error_handler(static function (int $errno, string $errstr): bool { + return $errno === E_USER_WARNING + && str_contains($errstr, 'Timeout option is not supported'); + }); + + try { + $response = $this->rawClient->sendRequest( + $request, + options: [ + 'timeout' => 3.0 + ] + ); + + $this->assertEquals(200, $response->getStatusCode()); + + $lastRequest = $this->mockClient->getLastRequest(); + $this->assertInstanceOf(RequestInterface::class, $lastRequest); + } finally { + restore_error_handler(); + } + } + + public function testClientLevelTimeoutIsAccepted(): void + { + $mockClient = new MockHttpClient(); + $mockClient->append(self::createResponse(200)); + + $rawClient = new RawClient([ + 'client' => $mockClient, + 'maxRetries' => 0, + 'timeout' => 5.0, + ]); + + $request = new JsonApiRequest( + $this->baseUrl, + '/test', + HttpMethod::GET, + ); + + set_error_handler(static function (int $errno, string $errstr): bool { + return $errno === E_USER_WARNING + && str_contains($errstr, 'Timeout option is not supported'); + }); + + try { + $response = $rawClient->sendRequest($request); + $this->assertEquals(200, $response->getStatusCode()); + } finally { + restore_error_handler(); + } + } + + public function testPerRequestTimeoutOverridesClientTimeout(): void + { + $mockClient = new MockHttpClient(); + $mockClient->append(self::createResponse(200)); + + $rawClient = new RawClient([ + 'client' => $mockClient, + 'maxRetries' => 0, + 'timeout' => 5.0, ]); - $retryHandler = $middleware($handler); - $request = new Request('GET', $this->baseUrl . '/test'); + $request = new JsonApiRequest( + $this->baseUrl, + '/test', + HttpMethod::GET, + ); + + set_error_handler(static function (int $errno, string $errstr): bool { + return $errno === E_USER_WARNING + && str_contains($errstr, 'Timeout option is not supported'); + }); + + try { + $response = $rawClient->sendRequest( + $request, + options: [ + 'timeout' => 1.0 + ] + ); + + $this->assertEquals(200, $response->getStatusCode()); + } finally { + restore_error_handler(); + } + } + + public function testDiscoveryFindsHttpClient(): void + { + // HttpClientBuilder::build() with no client arg uses Psr18ClientDiscovery. + $client = HttpClientBuilder::build(); + $this->assertInstanceOf(\Psr\Http\Client\ClientInterface::class, $client); + } + + public function testDiscoveryFindsFactories(): void + { + $requestFactory = HttpClientBuilder::requestFactory(); + $this->assertInstanceOf(\Psr\Http\Message\RequestFactoryInterface::class, $requestFactory); + + $streamFactory = HttpClientBuilder::streamFactory(); + $this->assertInstanceOf(\Psr\Http\Message\StreamFactoryInterface::class, $streamFactory); - $promise = $retryHandler($request, ['delay' => 0]); - $promise->wait(); + // Verify they produce usable objects + $request = $requestFactory->createRequest('GET', 'https://example.com'); + $this->assertEquals('GET', $request->getMethod()); - $this->assertCount(2, $capturedOptions); - $delay = $capturedOptions[1]['delay']; - $this->assertGreaterThanOrEqual(60000, $delay); - $this->assertLessThanOrEqual(72000, $delay); + $stream = $streamFactory->createStream('hello'); + $this->assertEquals('hello', (string) $stream); } } diff --git a/tests/Core/Json/AdditionalPropertiesTest.php b/tests/Core/Json/AdditionalPropertiesTest.php index 736e0cc8..717daad1 100644 --- a/tests/Core/Json/AdditionalPropertiesTest.php +++ b/tests/Core/Json/AdditionalPropertiesTest.php @@ -3,6 +3,7 @@ namespace Square\Tests\Core\Json; use PHPUnit\Framework\TestCase; +use Square\Core\Json\JsonEncoder; use Square\Core\Json\JsonProperty; use Square\Core\Json\JsonSerializableType; @@ -54,13 +55,12 @@ class AdditionalPropertiesTest extends TestCase { public function testExtraProperties(): void { - $expectedJson = json_encode( + $expectedJson = JsonEncoder::encode( [ 'name' => 'john.doe', 'email' => 'john.doe@example.com', 'age' => 42 ], - JSON_THROW_ON_ERROR ); $person = Person::fromJson($expectedJson); diff --git a/tests/Core/Json/DateArrayTest.php b/tests/Core/Json/DateArrayTest.php index 06fbf01f..962a032f 100644 --- a/tests/Core/Json/DateArrayTest.php +++ b/tests/Core/Json/DateArrayTest.php @@ -4,6 +4,7 @@ use DateTime; use PHPUnit\Framework\TestCase; +use Square\Core\Json\JsonEncoder; use Square\Core\Json\JsonProperty; use Square\Core\Json\JsonSerializableType; use Square\Core\Types\ArrayType; @@ -33,11 +34,10 @@ class DateArrayTest extends TestCase { public function testDateTimeInArrays(): void { - $expectedJson = json_encode( + $expectedJson = JsonEncoder::encode( [ 'dates' => ['2023-01-01', '2023-02-01', '2023-03-01'] ], - JSON_THROW_ON_ERROR ); $object = DateArray::fromJson($expectedJson); diff --git a/tests/Core/Json/EmptyArrayTest.php b/tests/Core/Json/EmptyArrayTest.php index 492ffb78..b75c4f3c 100644 --- a/tests/Core/Json/EmptyArrayTest.php +++ b/tests/Core/Json/EmptyArrayTest.php @@ -3,6 +3,7 @@ namespace Square\Tests\Core\Json; use PHPUnit\Framework\TestCase; +use Square\Core\Json\JsonEncoder; use Square\Core\Json\JsonProperty; use Square\Core\Json\JsonSerializableType; use Square\Core\Types\ArrayType; @@ -51,13 +52,12 @@ class EmptyArrayTest extends TestCase { public function testEmptyArray(): void { - $expectedJson = json_encode( + $expectedJson = JsonEncoder::encode( [ 'empty_string_array' => [], 'empty_map_array' => [], 'empty_dates_array' => [] ], - JSON_THROW_ON_ERROR ); $object = EmptyArray::fromJson($expectedJson); diff --git a/tests/Core/Json/EnumTest.php b/tests/Core/Json/EnumTest.php index e8909766..d6f8ca7d 100644 --- a/tests/Core/Json/EnumTest.php +++ b/tests/Core/Json/EnumTest.php @@ -4,6 +4,7 @@ use JsonSerializable; use PHPUnit\Framework\TestCase; +use Square\Core\Json\JsonEncoder; use Square\Core\Json\JsonProperty; use Square\Core\Json\JsonSerializableType; use Square\Core\Types\ArrayType; @@ -60,10 +61,10 @@ public function testEnumSerialization(): void [Shape::Square, Shape::Circle, Shape::Triangle] ); - $expectedJson = json_encode([ + $expectedJson = JsonEncoder::encode([ 'shape' => 'CIRCLE', 'shapes' => ['SQUARE', 'CIRCLE', 'TRIANGLE'] - ], JSON_THROW_ON_ERROR); + ]); $actualJson = $object->toJson(); diff --git a/tests/Core/Json/ExhaustiveTest.php b/tests/Core/Json/ExhaustiveTest.php index 38a29912..892bf4cc 100644 --- a/tests/Core/Json/ExhaustiveTest.php +++ b/tests/Core/Json/ExhaustiveTest.php @@ -4,6 +4,7 @@ use DateTime; use PHPUnit\Framework\TestCase; +use Square\Core\Json\JsonEncoder; use Square\Core\Json\JsonProperty; use Square\Core\Json\JsonSerializableType; use Square\Core\Types\ArrayType; @@ -136,7 +137,7 @@ class ExhaustiveTest extends TestCase */ public function testExhaustive(): void { - $expectedJson = json_encode( + $expectedJson = JsonEncoder::encode( [ 'nested_type' => ['nested_property' => '1995-07-20'], 'simple_property' => 'Test String', @@ -155,7 +156,6 @@ public function testExhaustive(): void ], 'dates_array' => ['2023-01-01', null, '2023-03-01'] // Testing nullable dates in array> ], - JSON_THROW_ON_ERROR ); $object = Type::fromJson($expectedJson); diff --git a/tests/Core/Json/InvalidTest.php b/tests/Core/Json/InvalidTest.php index dc9dace2..ac7b353b 100644 --- a/tests/Core/Json/InvalidTest.php +++ b/tests/Core/Json/InvalidTest.php @@ -3,6 +3,7 @@ namespace Square\Tests\Core\Json; use PHPUnit\Framework\TestCase; +use Square\Core\Json\JsonEncoder; use Square\Core\Json\JsonSerializableType; use Square\Core\Json\JsonProperty; @@ -31,11 +32,10 @@ class InvalidTest extends TestCase public function testInvalidJsonThrowsException(): void { $this->expectException(\TypeError::class); - $json = json_encode( + $json = JsonEncoder::encode( [ 'integer_property' => 'not_an_integer' ], - JSON_THROW_ON_ERROR ); Invalid::fromJson($json); } diff --git a/tests/Core/Json/NestedUnionArrayTest.php b/tests/Core/Json/NestedUnionArrayTest.php index c8c506c1..cf2917e3 100644 --- a/tests/Core/Json/NestedUnionArrayTest.php +++ b/tests/Core/Json/NestedUnionArrayTest.php @@ -4,6 +4,7 @@ use DateTime; use PHPUnit\Framework\TestCase; +use Square\Core\Json\JsonEncoder; use Square\Core\Json\JsonProperty; use Square\Core\Json\JsonSerializableType; use Square\Core\Types\ArrayType; @@ -55,7 +56,7 @@ class NestedUnionArrayTest extends TestCase { public function testNestedUnionArray(): void { - $expectedJson = json_encode( + $expectedJson = JsonEncoder::encode( [ 'nested_array' => [ 1 => [ @@ -69,7 +70,6 @@ public function testNestedUnionArray(): void ] ] ], - JSON_THROW_ON_ERROR ); $object = NestedUnionArray::fromJson($expectedJson); diff --git a/tests/Core/Json/NullableArrayTest.php b/tests/Core/Json/NullableArrayTest.php index 25b0a27d..a436875b 100644 --- a/tests/Core/Json/NullableArrayTest.php +++ b/tests/Core/Json/NullableArrayTest.php @@ -3,6 +3,7 @@ namespace Square\Tests\Core\Json; use PHPUnit\Framework\TestCase; +use Square\Core\Json\JsonEncoder; use Square\Core\Json\JsonProperty; use Square\Core\Json\JsonSerializableType; use Square\Core\Types\ArrayType; @@ -33,11 +34,10 @@ class NullableArrayTest extends TestCase { public function testNullableArray(): void { - $expectedJson = json_encode( + $expectedJson = JsonEncoder::encode( [ 'nullable_string_array' => ['one', null, 'three'] ], - JSON_THROW_ON_ERROR ); $object = NullableArray::fromJson($expectedJson); diff --git a/tests/Core/Json/ScalarTest.php b/tests/Core/Json/ScalarTest.php index 507414a9..6c932a7f 100644 --- a/tests/Core/Json/ScalarTest.php +++ b/tests/Core/Json/ScalarTest.php @@ -3,6 +3,7 @@ namespace Square\Tests\Core\Json; use PHPUnit\Framework\TestCase; +use Square\Core\Json\JsonEncoder; use Square\Core\Json\JsonProperty; use Square\Core\Json\JsonSerializableType; use Square\Core\Types\ArrayType; @@ -89,7 +90,7 @@ class ScalarTest extends TestCase { public function testAllScalarTypesIncludingFloat(): void { - $expectedJson = json_encode( + $expectedJson = JsonEncoder::encode( [ 'integer_property' => 42, 'float_property' => 3.14159, @@ -99,7 +100,6 @@ public function testAllScalarTypesIncludingFloat(): void 'int_float_array' => [1, 2.5, 3, 4.75], 'float_array' => [1, 2, 3, 4] // Ensure we handle "integer-looking" floats ], - JSON_THROW_ON_ERROR ); $object = Scalar::fromJson($expectedJson); diff --git a/tests/Core/Json/TraitTest.php b/tests/Core/Json/TraitTest.php index e185bb90..03d60923 100644 --- a/tests/Core/Json/TraitTest.php +++ b/tests/Core/Json/TraitTest.php @@ -3,6 +3,7 @@ namespace Square\Tests\Core\Json; use PHPUnit\Framework\TestCase; +use Square\Core\Json\JsonEncoder; use Square\Core\Json\JsonProperty; use Square\Core\Json\JsonSerializableType; @@ -42,12 +43,11 @@ class TraitTest extends TestCase { public function testTraitPropertyAndString(): void { - $expectedJson = json_encode( + $expectedJson = JsonEncoder::encode( [ 'integer_property' => 42, 'string_property' => 'Hello, World!', ], - JSON_THROW_ON_ERROR ); $object = TypeWithTrait::fromJson($expectedJson); diff --git a/tests/Core/Json/UnionArrayTest.php b/tests/Core/Json/UnionArrayTest.php index e551c764..a8733a46 100644 --- a/tests/Core/Json/UnionArrayTest.php +++ b/tests/Core/Json/UnionArrayTest.php @@ -4,6 +4,7 @@ use DateTime; use PHPUnit\Framework\TestCase; +use Square\Core\Json\JsonEncoder; use Square\Core\Json\JsonProperty; use Square\Core\Json\JsonSerializableType; use Square\Core\Types\ArrayType; @@ -34,7 +35,7 @@ class UnionArrayTest extends TestCase { public function testUnionArray(): void { - $expectedJson = json_encode( + $expectedJson = JsonEncoder::encode( [ 'mixed_dates' => [ 1 => '2023-01-01T12:00:00Z', @@ -42,7 +43,6 @@ public function testUnionArray(): void 3 => 'Some String' ] ], - JSON_THROW_ON_ERROR ); $object = UnionArray::fromJson($expectedJson); diff --git a/tests/Core/Json/UnionPropertyTest.php b/tests/Core/Json/UnionPropertyTest.php index 7309b2a3..58bff744 100644 --- a/tests/Core/Json/UnionPropertyTest.php +++ b/tests/Core/Json/UnionPropertyTest.php @@ -3,6 +3,7 @@ namespace Square\Tests\Core\Json; use PHPUnit\Framework\TestCase; +use Square\Core\Json\JsonEncoder; use Square\Core\Json\JsonProperty; use Square\Core\Json\JsonSerializableType; use Square\Core\Types\Union; @@ -29,11 +30,10 @@ class UnionPropertyTest extends TestCase { public function testWithMapOfIntToInt(): void { - $expectedJson = json_encode( + $expectedJson = JsonEncoder::encode( [ 'complexUnion' => [1 => 100, 2 => 200] ], - JSON_THROW_ON_ERROR ); $object = UnionProperty::fromJson($expectedJson); @@ -46,7 +46,7 @@ public function testWithMapOfIntToInt(): void public function testWithNestedUnionPropertyType(): void { - $expectedJson = json_encode( + $expectedJson = JsonEncoder::encode( [ 'complexUnion' => new UnionProperty( [ @@ -54,7 +54,6 @@ public function testWithNestedUnionPropertyType(): void ] ) ], - JSON_THROW_ON_ERROR ); $object = UnionProperty::fromJson($expectedJson); @@ -67,9 +66,8 @@ public function testWithNestedUnionPropertyType(): void public function testWithNull(): void { - $expectedJson = json_encode( + $expectedJson = JsonEncoder::encode( [], - JSON_THROW_ON_ERROR ); $object = UnionProperty::fromJson($expectedJson); @@ -81,11 +79,10 @@ public function testWithNull(): void public function testWithInteger(): void { - $expectedJson = json_encode( + $expectedJson = JsonEncoder::encode( [ 'complexUnion' => 42 ], - JSON_THROW_ON_ERROR ); $object = UnionProperty::fromJson($expectedJson); @@ -98,11 +95,10 @@ public function testWithInteger(): void public function testWithString(): void { - $expectedJson = json_encode( + $expectedJson = JsonEncoder::encode( [ 'complexUnion' => 'Some String' ], - JSON_THROW_ON_ERROR ); $object = UnionProperty::fromJson($expectedJson); diff --git a/tests/Core/Pagination/CursorPagerTest/CursorPagerTest.php b/tests/Core/Pagination/CursorPagerTest/CursorPagerTest.php index ed5b916a..c9d6bdbb 100644 --- a/tests/Core/Pagination/CursorPagerTest/CursorPagerTest.php +++ b/tests/Core/Pagination/CursorPagerTest/CursorPagerTest.php @@ -127,6 +127,6 @@ private function assertPager(Pager $pager): void // no more pages $pages->next(); - $this->assertNull($pages->current()); + $this->assertFalse($pages->valid()); } } diff --git a/tests/Core/Pagination/HasNextPageOffsetPagerTest/HasNextPageOffsetPagerTest.php b/tests/Core/Pagination/HasNextPageOffsetPagerTest/HasNextPageOffsetPagerTest.php index 0355c1e4..7a977a38 100644 --- a/tests/Core/Pagination/HasNextPageOffsetPagerTest/HasNextPageOffsetPagerTest.php +++ b/tests/Core/Pagination/HasNextPageOffsetPagerTest/HasNextPageOffsetPagerTest.php @@ -81,7 +81,7 @@ function (Request $request) use ($responses) { $responses->next(); return $response; }, - fn (Request $request) => $request->pagination?->page ?? 0, + fn (Request $request) => $request->pagination->page ?? 0, function (Request $request, int $offset) { if ($request->pagination === null) { $request->pagination = new Pagination(0); diff --git a/tests/Core/Pagination/IntOffsetPagerTest/IntOffsetPagerTest.php b/tests/Core/Pagination/IntOffsetPagerTest/IntOffsetPagerTest.php index 59d3d988..2cabfa59 100644 --- a/tests/Core/Pagination/IntOffsetPagerTest/IntOffsetPagerTest.php +++ b/tests/Core/Pagination/IntOffsetPagerTest/IntOffsetPagerTest.php @@ -79,7 +79,7 @@ function (Request $request) use ($responses) { $responses->next(); return $response; }, - fn (Request $request) => $request->pagination?->page ?? 0, + fn (Request $request) => $request->pagination->page ?? 0, function (Request $request, int $offset) { if ($request->pagination === null) { $request->pagination = new Pagination(0); diff --git a/tests/Core/Pagination/StepOffsetPagerTest/StepOffsetPagerTest.php b/tests/Core/Pagination/StepOffsetPagerTest/StepOffsetPagerTest.php index 49058e02..397d2173 100644 --- a/tests/Core/Pagination/StepOffsetPagerTest/StepOffsetPagerTest.php +++ b/tests/Core/Pagination/StepOffsetPagerTest/StepOffsetPagerTest.php @@ -85,7 +85,7 @@ function (Request $request) use ($responses) { $responses->next(); return $response; }, - fn (Request $request) => $request->pagination?->itemOffset ?? 0, + fn (Request $request) => $request->pagination->itemOffset ?? 0, function (Request $request, int $offset) { if ($request->pagination === null) { $request->pagination = new Pagination(0, 2); @@ -126,6 +126,6 @@ private function assertPager(Pager $pager): void // no more pages $pages->next(); - $this->assertNull($pages->current()); + $this->assertFalse($pages->valid()); } }