diff --git a/.fern/metadata.json b/.fern/metadata.json index d5224fa6..a3c7dd0d 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -23,6 +23,6 @@ } } }, - "originGitCommit": "074e2540401528521d322c512800c4ebd67cd153", + "originGitCommit": "b05364cda2b85e35d8daa9ff2c24bbabbbd9652a", "sdkVersion": "46.1.0.20260819" } \ No newline at end of file diff --git a/.fern/replay.lock b/.fern/replay.lock index 982b0e8a..6f61273f 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -18,5 +18,11 @@ generations: cli_version: unknown generator_versions: fernapi/fern-php-sdk: 2.1.5 -current_generation: 85c6db69b135f06bd19e8850faeff3d9e319adb4 + - commit_sha: 0ba6f5e051ee942bbefed88fff34a9f2522db25b + tree_hash: bbc1e03c7cb411f6f72452607615611bfbd423a5 + timestamp: 2026-08-18T20:52:23.974Z + cli_version: unknown + generator_versions: + fernapi/fern-php-sdk: 2.1.5 +current_generation: 0ba6f5e051ee942bbefed88fff34a9f2522db25b patches: [] diff --git a/reference.md b/reference.md index 2924e291..caf9f473 100644 --- a/reference.md +++ b/reference.md @@ -2340,6 +2340,14 @@ of `CategoryPathToRootNode` objects and specifies the path that starts with the and ends with its root category. If the returned category is a top-level category, the `path_to_root` list is empty and is not returned in the response payload. + + + +
+
+ +**$includeOptions:** `?IncludeOptions` — Options to include related resources in the response. +
@@ -2801,6 +2809,14 @@ is higher than the maximum limit of 1,000, it will be ignored. **$includeCategoryPathToRoot:** `?bool` — Specifies whether or not to include the `path_to_root` list for each returned category instance. The `path_to_root` list consists of `CategoryPathToRootNode` objects and specifies the path that starts with the immediate parent category of the returned category and ends with its root category. If the returned category is a top-level category, the `path_to_root` list is empty and is not returned in the response payload. If `include_category_path_to_root` is `true`, then the `include_deleted_objects` request parameter must be `false`. Both properties cannot be `true` at the same time. + + + +
+
+ +**$includeOptions:** `?IncludeOptions` — Options to include related resources in the response. +
@@ -2989,6 +3005,14 @@ a single call to the [SearchCatalogItems](api-endpoint:Catalog-SearchCatalogItem **$archivedState:** `?string` — The query filter to return not archived (`ARCHIVED_STATE_NOT_ARCHIVED`), archived (`ARCHIVED_STATE_ARCHIVED`), or either type (`ARCHIVED_STATE_ALL`) of items. + + + +
+
+ +**$includeOptions:** `?IncludeOptions` — Options to include related resources in the response. +
@@ -10653,8 +10677,9 @@ how to sort or filter the results. Your `SearchOrdersQuery` can: Note that details for orders processed with Square Point of Sale while in offline mode might not be transmitted to Square for up to 72 hours. Offline -orders have a `created_at` value that reflects the time the order was created, -not the time it was subsequently transmitted to Square. +orders have a `created_at` value that reflects the time the order was +transmitted to Square and created server-side, not the time the order was +created on the Point of Sale device. diff --git a/src/Catalog/Requests/BatchGetCatalogObjectsRequest.php b/src/Catalog/Requests/BatchGetCatalogObjectsRequest.php index cc6269d2..b3e685c2 100644 --- a/src/Catalog/Requests/BatchGetCatalogObjectsRequest.php +++ b/src/Catalog/Requests/BatchGetCatalogObjectsRequest.php @@ -5,6 +5,7 @@ use Square\Core\Json\JsonSerializableType; use Square\Core\Json\JsonProperty; use Square\Core\Types\ArrayType; +use Square\Types\IncludeOptions; class BatchGetCatalogObjectsRequest extends JsonSerializableType { @@ -63,6 +64,12 @@ class BatchGetCatalogObjectsRequest extends JsonSerializableType #[JsonProperty('include_category_path_to_root')] private ?bool $includeCategoryPathToRoot; + /** + * @var ?IncludeOptions $includeOptions Options to include related resources in the response. + */ + #[JsonProperty('include_options')] + private ?IncludeOptions $includeOptions; + /** * @param array{ * objectIds: array, @@ -70,6 +77,7 @@ class BatchGetCatalogObjectsRequest extends JsonSerializableType * catalogVersion?: ?int, * includeDeletedObjects?: ?bool, * includeCategoryPathToRoot?: ?bool, + * includeOptions?: ?IncludeOptions, * } $values */ public function __construct( @@ -80,6 +88,7 @@ public function __construct( $this->catalogVersion = $values['catalogVersion'] ?? null; $this->includeDeletedObjects = $values['includeDeletedObjects'] ?? null; $this->includeCategoryPathToRoot = $values['includeCategoryPathToRoot'] ?? null; + $this->includeOptions = $values['includeOptions'] ?? null; } /** @@ -171,4 +180,22 @@ public function setIncludeCategoryPathToRoot(?bool $value = null): self $this->_setField('includeCategoryPathToRoot'); return $this; } + + /** + * @return ?IncludeOptions + */ + public function getIncludeOptions(): ?IncludeOptions + { + return $this->includeOptions; + } + + /** + * @param ?IncludeOptions $value + */ + public function setIncludeOptions(?IncludeOptions $value = null): self + { + $this->includeOptions = $value; + $this->_setField('includeOptions'); + return $this; + } } diff --git a/src/Catalog/Requests/SearchCatalogItemsRequest.php b/src/Catalog/Requests/SearchCatalogItemsRequest.php index b5c2011b..c59b99d4 100644 --- a/src/Catalog/Requests/SearchCatalogItemsRequest.php +++ b/src/Catalog/Requests/SearchCatalogItemsRequest.php @@ -10,6 +10,7 @@ use Square\Types\CatalogItemProductType; use Square\Types\CustomAttributeFilter; use Square\Types\ArchivedState; +use Square\Types\IncludeOptions; class SearchCatalogItemsRequest extends JsonSerializableType { @@ -87,6 +88,12 @@ class SearchCatalogItemsRequest extends JsonSerializableType #[JsonProperty('archived_state')] private ?string $archivedState; + /** + * @var ?IncludeOptions $includeOptions Options to include related resources in the response. + */ + #[JsonProperty('include_options')] + private ?IncludeOptions $includeOptions; + /** * @param array{ * textFilter?: ?string, @@ -99,6 +106,7 @@ class SearchCatalogItemsRequest extends JsonSerializableType * productTypes?: ?array>, * customAttributeFilters?: ?array, * archivedState?: ?value-of, + * includeOptions?: ?IncludeOptions, * } $values */ public function __construct( @@ -114,6 +122,7 @@ public function __construct( $this->productTypes = $values['productTypes'] ?? null; $this->customAttributeFilters = $values['customAttributeFilters'] ?? null; $this->archivedState = $values['archivedState'] ?? null; + $this->includeOptions = $values['includeOptions'] ?? null; } /** @@ -295,4 +304,22 @@ public function setArchivedState(?string $value = null): self $this->_setField('archivedState'); return $this; } + + /** + * @return ?IncludeOptions + */ + public function getIncludeOptions(): ?IncludeOptions + { + return $this->includeOptions; + } + + /** + * @param ?IncludeOptions $value + */ + public function setIncludeOptions(?IncludeOptions $value = null): self + { + $this->includeOptions = $value; + $this->_setField('includeOptions'); + return $this; + } } diff --git a/src/Catalog/Requests/SearchCatalogObjectsRequest.php b/src/Catalog/Requests/SearchCatalogObjectsRequest.php index adb28c4d..1d3c6c14 100644 --- a/src/Catalog/Requests/SearchCatalogObjectsRequest.php +++ b/src/Catalog/Requests/SearchCatalogObjectsRequest.php @@ -7,6 +7,7 @@ use Square\Types\CatalogObjectType; use Square\Core\Types\ArrayType; use Square\Types\CatalogQuery; +use Square\Types\IncludeOptions; class SearchCatalogObjectsRequest extends JsonSerializableType { @@ -99,6 +100,12 @@ class SearchCatalogObjectsRequest extends JsonSerializableType #[JsonProperty('include_category_path_to_root')] private ?bool $includeCategoryPathToRoot; + /** + * @var ?IncludeOptions $includeOptions Options to include related resources in the response. + */ + #[JsonProperty('include_options')] + private ?IncludeOptions $includeOptions; + /** * @param array{ * cursor?: ?string, @@ -109,6 +116,7 @@ class SearchCatalogObjectsRequest extends JsonSerializableType * query?: ?CatalogQuery, * limit?: ?int, * includeCategoryPathToRoot?: ?bool, + * includeOptions?: ?IncludeOptions, * } $values */ public function __construct( @@ -122,6 +130,7 @@ public function __construct( $this->query = $values['query'] ?? null; $this->limit = $values['limit'] ?? null; $this->includeCategoryPathToRoot = $values['includeCategoryPathToRoot'] ?? null; + $this->includeOptions = $values['includeOptions'] ?? null; } /** @@ -267,4 +276,22 @@ public function setIncludeCategoryPathToRoot(?bool $value = null): self $this->_setField('includeCategoryPathToRoot'); return $this; } + + /** + * @return ?IncludeOptions + */ + public function getIncludeOptions(): ?IncludeOptions + { + return $this->includeOptions; + } + + /** + * @param ?IncludeOptions $value + */ + public function setIncludeOptions(?IncludeOptions $value = null): self + { + $this->includeOptions = $value; + $this->_setField('includeOptions'); + return $this; + } } diff --git a/src/Orders/OrdersClient.php b/src/Orders/OrdersClient.php index 99e65062..bc293a91 100644 --- a/src/Orders/OrdersClient.php +++ b/src/Orders/OrdersClient.php @@ -287,8 +287,9 @@ public function clone(CloneOrderRequest $request, ?array $options = null): Clone * * Note that details for orders processed with Square Point of Sale while in * offline mode might not be transmitted to Square for up to 72 hours. Offline - * orders have a `created_at` value that reflects the time the order was created, - * not the time it was subsequently transmitted to Square. + * orders have a `created_at` value that reflects the time the order was + * transmitted to Square and created server-side, not the time the order was + * created on the Point of Sale device. * * @param SearchOrdersRequest $request * @param ?array{ diff --git a/src/SquareClient.php b/src/SquareClient.php index 87e9cb78..20887527 100644 --- a/src/SquareClient.php +++ b/src/SquareClient.php @@ -259,7 +259,7 @@ public function __construct( $token ??= $this->getFromEnvOrThrow('SQUARE_TOKEN', 'Please pass in token or set the environment variable SQUARE_TOKEN.'); $defaultHeaders = [ 'Authorization' => "Bearer $token", - 'Square-Version' => '2026-07-15', + 'Square-Version' => '2026-08-19', 'X-Fern-Language' => 'PHP', 'X-Fern-SDK-Name' => 'Square', 'X-Fern-SDK-Version' => '46.1.0.20260819', diff --git a/src/Types/BatchGetCatalogObjectsResponse.php b/src/Types/BatchGetCatalogObjectsResponse.php index 4746c0b5..d82a58c4 100644 --- a/src/Types/BatchGetCatalogObjectsResponse.php +++ b/src/Types/BatchGetCatalogObjectsResponse.php @@ -26,11 +26,18 @@ class BatchGetCatalogObjectsResponse extends JsonSerializableType #[JsonProperty('related_objects'), ArrayType([CatalogObject::class])] private ?array $relatedObjects; + /** + * @var ?IncludedResources $includedResources A list of [CatalogObject](entity:CatalogObject)s referenced by the object in the `objects` field and specifically requested. + */ + #[JsonProperty('included_resources')] + private ?IncludedResources $includedResources; + /** * @param array{ * errors?: ?array, * objects?: ?array, * relatedObjects?: ?array, + * includedResources?: ?IncludedResources, * } $values */ public function __construct( @@ -39,6 +46,7 @@ public function __construct( $this->errors = $values['errors'] ?? null; $this->objects = $values['objects'] ?? null; $this->relatedObjects = $values['relatedObjects'] ?? null; + $this->includedResources = $values['includedResources'] ?? null; } /** @@ -95,6 +103,24 @@ public function setRelatedObjects(?array $value = null): self return $this; } + /** + * @return ?IncludedResources + */ + public function getIncludedResources(): ?IncludedResources + { + return $this->includedResources; + } + + /** + * @param ?IncludedResources $value + */ + public function setIncludedResources(?IncludedResources $value = null): self + { + $this->includedResources = $value; + $this->_setField('includedResources'); + return $this; + } + /** * @return string */ diff --git a/src/Types/CardBrand.php b/src/Types/CardBrand.php index 5df3b719..b37b6d16 100644 --- a/src/Types/CardBrand.php +++ b/src/Types/CardBrand.php @@ -18,4 +18,8 @@ enum CardBrand: string case Eftpos = "EFTPOS"; case Felica = "FELICA"; case Ebt = "EBT"; + case Quicpay = "QUICPAY"; + case Id = "ID"; + case TransportationIc = "TRANSPORTATION_IC"; + case Carnet = "CARNET"; } diff --git a/src/Types/CatalogModifier.php b/src/Types/CatalogModifier.php index 067d34ae..d2867819 100644 --- a/src/Types/CatalogModifier.php +++ b/src/Types/CatalogModifier.php @@ -76,6 +76,21 @@ class CatalogModifier extends JsonSerializableType #[JsonProperty('hidden_online')] private ?bool $hiddenOnline; + /** + * Child `CatalogModifierList`s that this `CatalogModifier` nests for multi-step choices. + * When a customer or staff member selects this modifier, the relevant follow-up modifier list appears. + * For example, selecting "Hummus" reveals a secondary "Choose Hummus Flavor" set, and selecting a flavor + * could reveal a third-level portion size set. + * + * Each entry references a child modifier list. Each modifier can nest up to 5 child modifier list, and + * supports up to 3 levels of nesting depth. The order in `child_modifier_list_ids` determines display order + * during checkout. + * + * @var ?array $childModifierListIds + */ + #[JsonProperty('child_modifier_list_ids'), ArrayType(['string'])] + private ?array $childModifierListIds; + /** * @param array{ * name?: ?string, @@ -87,6 +102,7 @@ class CatalogModifier extends JsonSerializableType * kitchenName?: ?string, * imageId?: ?string, * hiddenOnline?: ?bool, + * childModifierListIds?: ?array, * } $values */ public function __construct( @@ -101,6 +117,7 @@ public function __construct( $this->kitchenName = $values['kitchenName'] ?? null; $this->imageId = $values['imageId'] ?? null; $this->hiddenOnline = $values['hiddenOnline'] ?? null; + $this->childModifierListIds = $values['childModifierListIds'] ?? null; } /** @@ -265,6 +282,24 @@ public function setHiddenOnline(?bool $value = null): self return $this; } + /** + * @return ?array + */ + public function getChildModifierListIds(): ?array + { + return $this->childModifierListIds; + } + + /** + * @param ?array $value + */ + public function setChildModifierListIds(?array $value = null): self + { + $this->childModifierListIds = $value; + $this->_setField('childModifierListIds'); + return $this; + } + /** * @return string */ diff --git a/src/Types/CatalogQuery.php b/src/Types/CatalogQuery.php index cc58f7b4..b0f73062 100644 --- a/src/Types/CatalogQuery.php +++ b/src/Types/CatalogQuery.php @@ -116,6 +116,12 @@ class CatalogQuery extends JsonSerializableType #[JsonProperty('item_variations_for_item_option_values_query')] private ?CatalogQueryItemVariationsForItemOptionValues $itemVariationsForItemOptionValuesQuery; + /** + * @var ?CatalogQueryModifiersForChildList $modifiersForChildListQuery A query expression to return `CatalogModifier` objects that nest the specified modifier lists (via `child_modifier_list_ids`) + */ + #[JsonProperty('modifiers_for_child_list_query')] + private ?CatalogQueryModifiersForChildList $modifiersForChildListQuery; + /** * @param array{ * sortedAttributeQuery?: ?CatalogQuerySortedAttribute, @@ -128,6 +134,7 @@ class CatalogQuery extends JsonSerializableType * itemsForModifierListQuery?: ?CatalogQueryItemsForModifierList, * itemsForItemOptionsQuery?: ?CatalogQueryItemsForItemOptions, * itemVariationsForItemOptionValuesQuery?: ?CatalogQueryItemVariationsForItemOptionValues, + * modifiersForChildListQuery?: ?CatalogQueryModifiersForChildList, * } $values */ public function __construct( @@ -143,6 +150,7 @@ public function __construct( $this->itemsForModifierListQuery = $values['itemsForModifierListQuery'] ?? null; $this->itemsForItemOptionsQuery = $values['itemsForItemOptionsQuery'] ?? null; $this->itemVariationsForItemOptionValuesQuery = $values['itemVariationsForItemOptionValuesQuery'] ?? null; + $this->modifiersForChildListQuery = $values['modifiersForChildListQuery'] ?? null; } /** @@ -325,6 +333,24 @@ public function setItemVariationsForItemOptionValuesQuery(?CatalogQueryItemVaria return $this; } + /** + * @return ?CatalogQueryModifiersForChildList + */ + public function getModifiersForChildListQuery(): ?CatalogQueryModifiersForChildList + { + return $this->modifiersForChildListQuery; + } + + /** + * @param ?CatalogQueryModifiersForChildList $value + */ + public function setModifiersForChildListQuery(?CatalogQueryModifiersForChildList $value = null): self + { + $this->modifiersForChildListQuery = $value; + $this->_setField('modifiersForChildListQuery'); + return $this; + } + /** * @return string */ diff --git a/src/Types/CatalogQueryModifiersForChildList.php b/src/Types/CatalogQueryModifiersForChildList.php new file mode 100644 index 00000000..c07248cc --- /dev/null +++ b/src/Types/CatalogQueryModifiersForChildList.php @@ -0,0 +1,59 @@ + $childModifierListIds + */ + #[JsonProperty('child_modifier_list_ids'), ArrayType(['string'])] + private array $childModifierListIds; + + /** + * @param array{ + * childModifierListIds: array, + * } $values + */ + public function __construct( + array $values, + ) { + $this->childModifierListIds = $values['childModifierListIds']; + } + + /** + * @return array + */ + public function getChildModifierListIds(): array + { + return $this->childModifierListIds; + } + + /** + * @param array $value + */ + public function setChildModifierListIds(array $value): self + { + $this->childModifierListIds = $value; + $this->_setField('childModifierListIds'); + return $this; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/ErrorCode.php b/src/Types/ErrorCode.php index 9b101b10..fa165880 100644 --- a/src/Types/ErrorCode.php +++ b/src/Types/ErrorCode.php @@ -102,6 +102,7 @@ enum ErrorCode: string case CardTokenExpired = "CARD_TOKEN_EXPIRED"; case CardTokenUsed = "CARD_TOKEN_USED"; case AmountTooHigh = "AMOUNT_TOO_HIGH"; + case AmountTooLow = "AMOUNT_TOO_LOW"; case UnsupportedInstrumentType = "UNSUPPORTED_INSTRUMENT_TYPE"; case RefundAmountInvalid = "REFUND_AMOUNT_INVALID"; case RefundAlreadyPending = "REFUND_ALREADY_PENDING"; @@ -132,6 +133,13 @@ enum ErrorCode: string case PlaidError = "PLAID_ERROR"; case PlaidErrorItemLoginRequired = "PLAID_ERROR_ITEM_LOGIN_REQUIRED"; case PlaidErrorRateLimit = "PLAID_ERROR_RATE_LIMIT"; + case PlaidErrorInvalidAccessToken = "PLAID_ERROR_INVALID_ACCESS_TOKEN"; + case PlaidErrorInvalidAccountId = "PLAID_ERROR_INVALID_ACCOUNT_ID"; + case PlaidErrorNoAccounts = "PLAID_ERROR_NO_ACCOUNTS"; + case PlaidErrorItemNotFound = "PLAID_ERROR_ITEM_NOT_FOUND"; + case PlaidErrorInsufficientCredentials = "PLAID_ERROR_INSUFFICIENT_CREDENTIALS"; + case PlaidErrorItemNotSupported = "PLAID_ERROR_ITEM_NOT_SUPPORTED"; + case PlaidErrorProductNotReady = "PLAID_ERROR_PRODUCT_NOT_READY"; case PaymentSourceNotEnabledForTarget = "PAYMENT_SOURCE_NOT_ENABLED_FOR_TARGET"; case CardDeclined = "CARD_DECLINED"; case VerifyCvvFailure = "VERIFY_CVV_FAILURE"; @@ -143,6 +151,7 @@ enum ErrorCode: string case AllowablePinTriesExceeded = "ALLOWABLE_PIN_TRIES_EXCEEDED"; case ReservationDeclined = "RESERVATION_DECLINED"; case UnknownBodyParameter = "UNKNOWN_BODY_PARAMETER"; + case CartIneligibleForEbt = "CART_INELIGIBLE_FOR_EBT"; case NotFound = "NOT_FOUND"; case ApplePaymentProcessingCertificateHashNotFound = "APPLE_PAYMENT_PROCESSING_CERTIFICATE_HASH_NOT_FOUND"; case MethodNotAllowed = "METHOD_NOT_ALLOWED"; diff --git a/src/Types/IncludeOptions.php b/src/Types/IncludeOptions.php new file mode 100644 index 00000000..36c602a1 --- /dev/null +++ b/src/Types/IncludeOptions.php @@ -0,0 +1,60 @@ +> $include + */ + #[JsonProperty('include'), ArrayType(['string'])] + private ?array $include; + + /** + * @param array{ + * include?: ?array>, + * } $values + */ + public function __construct( + array $values = [], + ) { + $this->include = $values['include'] ?? null; + } + + /** + * @return ?array> + */ + public function getInclude(): ?array + { + return $this->include; + } + + /** + * @param ?array> $value + */ + public function setInclude(?array $value = null): self + { + $this->include = $value; + $this->_setField('include'); + return $this; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/IncludeType.php b/src/Types/IncludeType.php new file mode 100644 index 00000000..c11c398a --- /dev/null +++ b/src/Types/IncludeType.php @@ -0,0 +1,9 @@ + $nestedModifiers Nested `CatalogModifierList`s as requested via `INCLUDE_NESTED_MODIFIERS`. + */ + #[JsonProperty('nested_modifiers'), ArrayType([CatalogObject::class])] + private ?array $nestedModifiers; + + /** + * @var ?array $ancestorModifiers Ancestor `CatalogModifierList`s as requested via INCLUDE_ANCESTOR_MODIFIERS + */ + #[JsonProperty('ancestor_modifiers'), ArrayType([CatalogObject::class])] + private ?array $ancestorModifiers; + + /** + * @param array{ + * nestedModifiers?: ?array, + * ancestorModifiers?: ?array, + * } $values + */ + public function __construct( + array $values = [], + ) { + $this->nestedModifiers = $values['nestedModifiers'] ?? null; + $this->ancestorModifiers = $values['ancestorModifiers'] ?? null; + } + + /** + * @return ?array + */ + public function getNestedModifiers(): ?array + { + return $this->nestedModifiers; + } + + /** + * @param ?array $value + */ + public function setNestedModifiers(?array $value = null): self + { + $this->nestedModifiers = $value; + $this->_setField('nestedModifiers'); + return $this; + } + + /** + * @return ?array + */ + public function getAncestorModifiers(): ?array + { + return $this->ancestorModifiers; + } + + /** + * @param ?array $value + */ + public function setAncestorModifiers(?array $value = null): self + { + $this->ancestorModifiers = $value; + $this->_setField('ancestorModifiers'); + return $this; + } + + /** + * @return string + */ + public function __toString(): string + { + return $this->toJson(); + } +} diff --git a/src/Types/Location.php b/src/Types/Location.php index 08b845aa..e87971a0 100644 --- a/src/Types/Location.php +++ b/src/Types/Location.php @@ -219,6 +219,24 @@ class Location extends JsonSerializableType #[JsonProperty('tax_ids')] private ?TaxIds $taxIds; + /** + * The custom text that appears on receipts issued for this location. + * This text can also be configured in the Seller Dashboard (Receipts section). + * + * @var ?string $customReceiptText + */ + #[JsonProperty('custom_receipt_text')] + private ?string $customReceiptText; + + /** + * The return policy that appears on receipts issued for this location. + * This text can also be configured in the Seller Dashboard (Receipts section). + * + * @var ?string $returnPolicy + */ + #[JsonProperty('return_policy')] + private ?string $returnPolicy; + /** * @param array{ * id?: ?string, @@ -248,6 +266,8 @@ class Location extends JsonSerializableType * mcc?: ?string, * fullFormatLogoUrl?: ?string, * taxIds?: ?TaxIds, + * customReceiptText?: ?string, + * returnPolicy?: ?string, * } $values */ public function __construct( @@ -280,6 +300,8 @@ public function __construct( $this->mcc = $values['mcc'] ?? null; $this->fullFormatLogoUrl = $values['fullFormatLogoUrl'] ?? null; $this->taxIds = $values['taxIds'] ?? null; + $this->customReceiptText = $values['customReceiptText'] ?? null; + $this->returnPolicy = $values['returnPolicy'] ?? null; } /** @@ -768,6 +790,42 @@ public function setTaxIds(?TaxIds $value = null): self return $this; } + /** + * @return ?string + */ + public function getCustomReceiptText(): ?string + { + return $this->customReceiptText; + } + + /** + * @param ?string $value + */ + public function setCustomReceiptText(?string $value = null): self + { + $this->customReceiptText = $value; + $this->_setField('customReceiptText'); + return $this; + } + + /** + * @return ?string + */ + public function getReturnPolicy(): ?string + { + return $this->returnPolicy; + } + + /** + * @param ?string $value + */ + public function setReturnPolicy(?string $value = null): self + { + $this->returnPolicy = $value; + $this->_setField('returnPolicy'); + return $this; + } + /** * @return string */ diff --git a/src/Types/SearchCatalogItemsResponse.php b/src/Types/SearchCatalogItemsResponse.php index 4ab2a7b0..739e6b5c 100644 --- a/src/Types/SearchCatalogItemsResponse.php +++ b/src/Types/SearchCatalogItemsResponse.php @@ -35,12 +35,19 @@ class SearchCatalogItemsResponse extends JsonSerializableType #[JsonProperty('matched_variation_ids'), ArrayType(['string'])] private ?array $matchedVariationIds; + /** + * @var ?IncludedResources $includedResources Related resources included in the response as requested via include_options + */ + #[JsonProperty('included_resources')] + private ?IncludedResources $includedResources; + /** * @param array{ * errors?: ?array, * items?: ?array, * cursor?: ?string, * matchedVariationIds?: ?array, + * includedResources?: ?IncludedResources, * } $values */ public function __construct( @@ -50,6 +57,7 @@ public function __construct( $this->items = $values['items'] ?? null; $this->cursor = $values['cursor'] ?? null; $this->matchedVariationIds = $values['matchedVariationIds'] ?? null; + $this->includedResources = $values['includedResources'] ?? null; } /** @@ -124,6 +132,24 @@ public function setMatchedVariationIds(?array $value = null): self return $this; } + /** + * @return ?IncludedResources + */ + public function getIncludedResources(): ?IncludedResources + { + return $this->includedResources; + } + + /** + * @param ?IncludedResources $value + */ + public function setIncludedResources(?IncludedResources $value = null): self + { + $this->includedResources = $value; + $this->_setField('includedResources'); + return $this; + } + /** * @return string */ diff --git a/src/Types/SearchCatalogObjectsResponse.php b/src/Types/SearchCatalogObjectsResponse.php index bc308de9..f2d987df 100644 --- a/src/Types/SearchCatalogObjectsResponse.php +++ b/src/Types/SearchCatalogObjectsResponse.php @@ -44,6 +44,12 @@ class SearchCatalogObjectsResponse extends JsonSerializableType #[JsonProperty('latest_time')] private ?string $latestTime; + /** + * @var ?IncludedResources $includedResources A list of [CatalogObject](entity:CatalogObject)s referenced by the object in the `objects` field and specifically requested. + */ + #[JsonProperty('included_resources')] + private ?IncludedResources $includedResources; + /** * @param array{ * errors?: ?array, @@ -51,6 +57,7 @@ class SearchCatalogObjectsResponse extends JsonSerializableType * objects?: ?array, * relatedObjects?: ?array, * latestTime?: ?string, + * includedResources?: ?IncludedResources, * } $values */ public function __construct( @@ -61,6 +68,7 @@ public function __construct( $this->objects = $values['objects'] ?? null; $this->relatedObjects = $values['relatedObjects'] ?? null; $this->latestTime = $values['latestTime'] ?? null; + $this->includedResources = $values['includedResources'] ?? null; } /** @@ -153,6 +161,24 @@ public function setLatestTime(?string $value = null): self return $this; } + /** + * @return ?IncludedResources + */ + public function getIncludedResources(): ?IncludedResources + { + return $this->includedResources; + } + + /** + * @param ?IncludedResources $value + */ + public function setIncludedResources(?IncludedResources $value = null): self + { + $this->includedResources = $value; + $this->_setField('includedResources'); + return $this; + } + /** * @return string */