Project

General

Profile

Actions

New Function #137

closed

[API] 주문(order)

Added by Deca Park 11 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
10/30/2023
Due date:
% Done:

0%

Estimated time:
Spent time:

Description

1.[API] GET /api/order

  1) Response
    a) payment_method_name
      a-1) if payment_method is NULL (payment_amount = 0)
        - format: "포인트 + 적립금 + 쿠폰"
         + if use_point > 0, show "포인트"
         + if use_money > 0, show "적립금"
         + if coupon_amount > 0, show "쿠폰"
      a-2) f payment_method is NOT NULL (payment_amount > 0)
        - format: "포인트 + 적립금 + 쿠폰 + {payment_method's code name}"

      a-1) use_point  / use_money / coupon_amount
          if use_point > 0, append "포인트" with " + "
          if use_money > 0, append "적립금" with " + "
          if coupon_amount > 0, append "쿠폰" with " + "

      a-2) if payment_method is NOT NULL (payment_amount > 0)
        - append {payment_method's code name} with " + "

     b) add 3 fields next to mall_name field (refer to #32 : API-20231030)
       - mall_biz_no / mall_ceo / mall_address : set by st_mall columns

2.[API] GET /api/order_list

  1) Response
    a) payment_method_name
      - same with [API] GET /api/order

    b) add 3 fields next to mall_name field
      - same with [API] GET /api/order

Actions #1

Updated by Deca Park 11 months ago

  • Description updated (diff)
Actions #2

Updated by bryant bryant 11 months ago

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

Updated by Deca Park 11 months ago

  • Description updated (diff)
Actions #4

Updated by Deca Park 11 months ago

  • Description updated (diff)
Actions #5

Updated by Deca Park 11 months ago

[API] POST /api/online_order, POST /api/store_order

1.RequestBody
  1) validation
    a) if use_point or use_money < 0
      - return error 
        (status: 400, error_code: "order.error.minusUsePointMoney", "사용포인트 또는 사용적립금이 마이너스 금액입니다.")

Actions #6

Updated by Deca Park 11 months ago

  • Description updated (diff)
Actions #7

Updated by Deca Park 11 months ago

  • Description updated (diff)
Actions #8

Updated by Deca Park 8 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF