Skip to content

Commit

Permalink
fix v1 for upselling
Browse files Browse the repository at this point in the history
  • Loading branch information
xxl4 committed Jul 16, 2024
1 parent 89f20d9 commit b75bd07
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
58 changes: 29 additions & 29 deletions src/Docs/V1/Upselling/Controllers/Orders/OrdersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,35 +269,35 @@ public function getOrderById($id) {
* ),
* ),
* ),
* @OA\Parameter(
* name="payment",
* in="query",
* description="Payment",
* required=true,
* @OA\Schema(
* type="object",
* @OA\Property(property="method", type="string",
* description="Payment method",
* example="paypal",
* ),
* @OA\Property(property="status", type="string",
* description="Payment status",
* example="completed",
* ),
* @OA\Property(property="total", type="number", format="float",
* description="Payment total",
* example="100.00",
* ),
* @OA\Property(property="currency", type="string",
* description="Payment currency",
* example="USD",
* ),
* @OA\Property(property="transaction_id", type="string",
* description="Payment transaction id",
* example="1234567890",
* ),
* ),
* ),
* @OA\Parameter(
* name="payment",
* in="query",
* description="Payment",
* required=true,
* @OA\Schema(
* type="object",
* @OA\Property(property="method", type="string",
* description="Payment method",
* example="paypal",
* ),
* @OA\Property(property="status", type="string",
* description="Payment status",
* example="completed",
* ),
* @OA\Property(property="total", type="number", format="float",
* description="Payment total",
* example="100.00",
* ),
* @OA\Property(property="currency", type="string",
* description="Payment currency",
* example="USD",
* ),
* @OA\Property(property="transaction_id", type="string",
* description="Payment transaction id",
* example="1234567890",
* ),
* ),
* ),
*
*
* @OA\Response(
Expand Down
2 changes: 1 addition & 1 deletion src/Routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use NexaMerchant\Upselling\Http\Controllers\Api\OrderController;

Route::group(['middleware' => ['api'], 'prefix' => 'api'], function () {
Route::prefix('upselling')->group(function () {
Route::prefix('v1/upselling')->group(function () {

Route::controller(ExampleController::class)->prefix('example')->group(function () {

Expand Down

0 comments on commit b75bd07

Please sign in to comment.