From 9fde7704e7d350b2aa4a4899e5f7bf175d51f0a2 Mon Sep 17 00:00:00 2001 From: Enan54 Date: Thu, 12 Sep 2024 10:11:52 +0600 Subject: [PATCH] Add new option to get the user success rate --- README.md | 25 ++++++++++----- src/APIBase/PathaoBaseAPI.php | 9 ++++-- src/APIBase/PathaoUserSuccess.php | 32 +++++++++++++++++++ src/DataDTO/PathaoOrderDTO.php | 8 +++++ src/PathaoCourier.php | 18 +++++++++++ src/Requests/PathaoUserSuccessRateRequest.php | 19 +++++++++++ 6 files changed, 101 insertions(+), 10 deletions(-) create mode 100644 src/APIBase/PathaoUserSuccess.php create mode 100644 src/Requests/PathaoUserSuccessRateRequest.php diff --git a/README.md b/README.md index 44b64e3..5047cdc 100644 --- a/README.md +++ b/README.md @@ -12,14 +12,15 @@ A complete package for Laravel to use [Pathao Courier Merchant API](https://merchant.pathao.com/). Setup once and forget about it. You don’t even have to worry about the validation of creating orders, creating a store, or getting calculated price value which are generally a POST request on the Pathao courier end.
With this package you can get the following -- [x] Get the city list -- [x] Get the zone list -- [x] Get the area list -- [x] Get the store list -- [x] Create Store -- [x] Get order details -- [x] Get calculated price -- [x] Get the token exipiration days left and also expected date of it +- [x] Get the city list +- [x] Get the zone list +- [x] Get the area list +- [x] Get the store list +- [x] Create Store +- [x] Get order details +- [x] Get calculated price +- [x] Get the token exipiration days left and also expected date of it +- [x] Get the user success rate using phone number ![New](https://img.shields.io/badge/New-brightgreen) It offers you a bunch of validation for Create order, Create Store, Get calculated price.So you don't have to worry about the validation for all of this. @@ -194,6 +195,14 @@ PathaoCourier::GET_PRICE_CALCULATION($request); */ PathaoCourier::VIEW_ORDER(string $consignment_id); + +/** + * To Get User's success rate using phone number + * @type + * @param string $phone + */ +PathaoCourier::GET_USER_SUCCESS_RATE($request); + ```