[1.0.0] - 2026-09-18
Added
TokenProvidercontract: a single-method interface downstream hosts implement to hand the package a valid Google OAuth access token, keeping the package UI-free and OAuth-flow-free.- Shared
BaseClientfoundation built on Laravel'sHttpfacade, providing Bearer authentication from the boundTokenProvider, configurable retry/backoff, and consistent error mapping viaApiException. Also introduces theScopes::BUSINESS_MANAGEOAuth scope constant. AccountManagementClient::listAccounts()with typedAccountandAccountListDTOs. AcceptspageSize,pageToken,filter, andparentAccountquery parameters; rejects apageSizeoutside Google's documented1..20range with anInvalidArgumentExceptionbefore dispatching; preserves the raw account payload on the DTO for forward compatibility.BusinessInformationClientwithlistLocations(),getLocation(), andpatchLocation()covering the Business Information API surface.PerformanceClientfor the Business Profile Performance API, exposing multi-daily-metric time-series reads for locations.- v4 legacy
ReviewsClient(listReviews()andreplyToReview()) with typedReview,ReviewList,Reviewer, andReviewReplyDTOs.listReviews()acceptspageSize,pageToken, andorderByquery parameters; rejects an empty parent and anypageSizeoutside Google's documented1..50range with anInvalidArgumentExceptionbefore dispatching; surfaces the location-wideaverageRatingandtotalReviewCountaggregates on every page.replyToReview()upserts the merchant reply viaPUTon the review's/replysub-resource, trims the comment, and rejects an empty review name, whitespace-only body, or a body that exceeds Google's documented 4096-byte cap (ReviewsClient::MAX_REPLY_COMMENT_BYTES) before dispatching. TheReviewDTO preserves the raw payload for forward compatibility and maps the stringstarRatingenum to1..5vianumericRating(). TheReviewReplyDTO exposes Google's moderation surface (reviewReplyState,policyViolation). - v4 legacy
LocalPostsClientproviding full CRUD (list, get, create, patch, delete) against the Local Posts sub-resource. - v4 legacy
MediaClientfor uploading media items to a location's media collection. GoogleBusinessProfileServiceProvider::boot()now auto-registers theScopes::BUSINESS_MANAGEOAuth scope with theartisanpack-ui/googlepackage'sScopeRegistrywhen that package is present and its service provider is registered. Downstream hosts no longer have to add the scope in their own boot code; hosts that bind their ownTokenProviderwithoutartisanpack-ui/google, and hosts thatdont-discoverthe Google service provider, are unaffected (two guards —class_exists( Google::class )and$this->app->bound( 'google' )— keep the boot a no-op).ApiException::fromResponse()distinguishes the Google Business Profile "access not approved" flavor ofHTTP 429from ordinary per-minute rate limiting. When Google'sgoogle.rpc.ErrorInfodetail reportsreason: RATE_LIMIT_EXCEEDEDwithquota_limit_value: "0"— the signature Google returns until the Cloud project is approved for Business Profile API access — the exception message points at the access request form instead of the generic "rate-limited" text. The parser is defensive: malformed bodies, missing keys, or non-scalar types fall back to the original message without throwing.Http::fakefixtures + DTO mapping tests covering every API surface (Account Management, Business Information, Performance, v4 Reviews, v4 Local Posts, v4 Media).
Documentation
- README plus a full
docs/site covering theTokenProvidertoken contract, the API-family map across the Business Profile API surfaces (Account Management, Business Information, Performance, and the v4 legacy Reviews / Local Posts / Media clients), and Google's access approval flow.

