Repository navigation
Releases: NavanithanS/dinlr-php
Releases · NavanithanS/dinlr-php
Release list
Version: 0.3.1
Added
Reservations
- Added 7 helper methods to
Reservationresource to gracefully manage status changes:setBooked(),setArrived(),setSeated(),setCompleted(),setNoShow(),cancel(),setPendingPayment()
Version: 0.3.0
Added
New Resources
ComboGroupresource (onlineorder/combo-groups) withlist(),get(), andlistForLocation()methodsItemBlockresource covering three block endpoints from a single class:getItemBlocks($locationId)— blocked menu items by locationgetItemVariantBlocks($locationId)— blocked item variants by locationgetModifierOptionBlocks($locationId)— blocked modifier options by location
- New model classes:
ComboGroup,ComboGroupCollection,ItemBlock,ItemBlockCollection,ItemVariantBlock,ItemVariantBlockCollection,ModifierOptionBlock,ModifierOptionBlockCollection Client::comboGroups()andClient::itemBlocks()factory methods
Customer
Customer::delete($customerId)— delete a customer profileCustomer::generateQr($customerId)— generate a time-sensitive QR code for identity verificationexternal_referenceadded as a valid search field in bothCustomer::search()andCustomerApi::searchCustomers()
Loyalty
Loyalty::updateMember($programId, $memberId, $data)— update a loyalty member (e.g.expires_at)Loyalty::searchMembers($programId, $params)— search members bycustomer_id, pagination, andupdated_at_min
Voucher
Voucher::delete($voucherId)— delete a voucherVoucher::getPools()— retrieve all voucher pools for a restaurant
Fixed
Customer::validateCustomerData()andCustomer::validateSearchParams()were callingvalidateString()andvalidateEmail()but discarding the sanitized return values; all sanitized values are now captured and applied before sending data to the APILoyalty::getMemberByCustomer()was fetching all members and filtering client-side; it now uses the search API endpoint withlimit=1for efficiencyLoyalty::validateTransactionSearchParams()was discarding sanitized return values fromvalidateString(); values are now captured and propagated to the outgoing requestCustomerApi::delete()was missing ID validation; now callsvalidateString()consistent with all other delete methodsCustomerApi::getAllCustomers()was using inline pagination validation instead of the sharedAbstractResource::validatePagination()ComboGroup::list()and all threeItemBlockmethods were discarding sanitized values returned byvalidateString()on location ID parameters