Project

General

Profile

Actions

New Function #170

closed

[API] 에이전트

Added by Jisoo Choi 10 months ago. Updated 10 months ago.

Status:
Closed
Priority:
Urgent
Assignee:
Start date:
11/24/2023
Due date:
% Done:

0%

Estimated time:
Spent time:

Description

 

 

1. /api/agent/store_order_list(매장 주문 리스트)에 주문한 상품의 총 개수 추가

예) A상품 2, B상품 1, C상품 1를 주문한 경우, 전체 상품 개수 ‘4’

 

 

2. /api/agent/store_order_list(매장 주문 리스트)에 주문 상태 값 '수령 대기 중(SS03)' 추가

 

 

3. /api/agent/store_order_status(매장 주문 상태 변경)와 동일한 기능을 하는 API를 새로 추가 부탁드립니다.

*기존 API를 그대로 사용하지 않는 이유는 현재 계속 에이전트 테스트 중인데, 개발하시면서 무언가 추가 반영되면 오류가 발생할 수 있기 때문이라고 합니다.

추가로 기존 API에 오류가 있어서 수정을 하는 것이 아니기 위해 분리해서 정상 버전 유지를 하고 이번 요구사항을 반영하자고 했습니다.

(기존 API를 유지한 채로 새 API 추가)

 

 

4. (가칭) /api/agent/store_order_status(new)에서 주문 상태 변경 가능한 값 추가

(1) 현재 상태가 '주문 확인 중(SS01)'일 때, 기존에는 '주문 확정(SS02)', '매장 취소(주문 불가)(SS10)'를 선택할 수 있었는데,

'수령 대기중(SS03)', '수령 완료(SS04)'를 추가합니다.

(2) 현재 상태가 '주문 확정(SS02)'일 때, 기존에는 '수령 대기중(SS03)'를 선택할 수 있었는데,

'수령 완료(SS04)', '매장취소(환불)(SS11)'을 추가합니다.

(3) 현재 상태가 '수령 대기중(SS03)'일 때, '수령 완료(SS04)', '매장 취소(환불)(SS11)'을 선택할 수 있도록 합니다.

 

 

혹시 반영이 불가능한 부분이 있다면 말씀 부탁드립니다 !

에이전트 쪽에 반영 요청드리는 내용 ppt로 함께 첨부 드립니다.

 

 

 


Files

Actions #1

Updated by Deca Park 10 months ago

[API] GET /api/agent/store_order_list

1.Logic
  1) SELECT DB (st_order)
    a) As-is conditions
      - smart_order_status IN ('SS01','SS02')
    b) To-be 
      - smart_order_status IN ('SS01','SS02','SS03')
2.Response
  - add 1 field next to product_desc field
  1) new field
    a) total_product_count : Integer : 전체주문상품건수
      - set by total order product count (SUM of st_order_product.order_count)


[API] PUT /api/agent/store_order_status_new (Add)

1.RequestBody
  1) smart_order_status
    - SS04,SS11 : add (refer to attach API spec)
2.Logic
  1) copy PUT /api/agent/store_order_status
  2) add process of added smart_order_status(SS04,SS11)
    a) if smart_order_status = 'SS04'
      - same with smart_order_status = 'SS03'
    b) if smart_order_status = 'SS11'
      - same with smart_order_status = 'SS10' (including processCancelPayment)

Actions #2

Updated by Deca Park 10 months ago

  • Assignee changed from Deca Park to bryant bryant
Actions #3

Updated by bryant bryant 10 months ago

  • Status changed from New to Resolved
  • Assignee changed from bryant bryant to Deca Park
Actions #4

Updated by Deca Park 10 months ago

  • Status changed from Resolved to New
  • Assignee changed from Deca Park to bryant bryant

[처리 결과]

1.[API] GET /api/agent/store_order_list (매장 주문 리스트)

  • Response에 total_product_count (전체주문상품건수) 항목 추가

2.[API] PUT /api/agent/store_order_status_new (매장 주문 상태 변경) - 추가

Actions #5

Updated by Deca Park 10 months ago

  • Status changed from New to Resolved
  • Assignee changed from bryant bryant to Jisoo Choi
Actions #6

Updated by Jisoo Choi 10 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF