From 1edc54ed728570c89f1d0b45cae816af38db4e41 Mon Sep 17 00:00:00 2001 From: Matthew Poulter Date: Tue, 18 Jun 2024 20:46:50 +0200 Subject: [PATCH] Update URLs --- README.md | 2 +- src/VendAuth.php | 4 ++-- src/VendConnector.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 66b737d..b3ecfe6 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![MIT License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md) [![Total Downloads](https://img.shields.io/packagist/dt/simplesquid/vend-sdk.svg?style=flat-square)](https://packagist.org/packages/simplesquid/vend-sdk) -An unofficial PHP SDK for the [Lightspeed Retail (X-Series)](https://docs.vendhq.com/) (formally Vend). +An unofficial PHP SDK for the [Lightspeed Retail (X-Series)](https://x-series-api.lightspeedhq.com/) (formally Vend). ## Installation diff --git a/src/VendAuth.php b/src/VendAuth.php index c6b37f0..9e3fe5d 100644 --- a/src/VendAuth.php +++ b/src/VendAuth.php @@ -7,9 +7,9 @@ class VendAuth extends VendConnector public function resolveBaseUrl(): string { if (is_null($this->domainPrefix)) { - return 'https://secure.vendhq.com'; + return 'https://secure.retail.lightspeed.app'; } - return "https://{$this->domainPrefix}.vendhq.com/api"; + return "https://{$this->domainPrefix}.retail.lightspeed.app/api"; } } diff --git a/src/VendConnector.php b/src/VendConnector.php index 2d398ac..bd40247 100644 --- a/src/VendConnector.php +++ b/src/VendConnector.php @@ -46,7 +46,7 @@ public function resolveBaseUrl(): string throw new DomainPrefixMissingException(); } - return "https://{$this->domainPrefix}.vendhq.com/api"; + return "https://{$this->domainPrefix}.retail.lightspeed.app/api"; } public function withDomainPrefix(?string $domainPrefix): static @@ -76,7 +76,7 @@ protected function defaultHeaders(): array protected function defaultOauthConfig(): OAuthConfig { return OAuthConfig::make() - ->setAuthorizeEndpoint('https://secure.vendhq.com/connect') + ->setAuthorizeEndpoint('https://secure.retail.lightspeed.app/connect') ->setTokenEndpoint('/1.0/token') ->setUserEndpoint('/2.0/retailer'); }