Project

General

Profile

Actions

기능(Feature) #480

closed

기능(Feature) #287: Hana Coupon

[Coupon] Implement backend API to create coupon budget

Added by Dan Hoang 9 months ago. Updated 8 months ago.

Status:
완료성공(Resolve)
Priority:
높음(High)
Assignee:
Target version:
Start date:
06/03/2025
Due date:
06/06/2025
% Done:

100%

Estimated time:
Part:
Build env.:
Prod

Description

Implement backend API to create coupon budget, we can use postman to manually create a budget instead of UI now. This API belong to admin site and it will be use for UI in the future.
At least one COUPON_SHARE is required
Schema of coupon budget
COUPON_BUDGET_SEQ bigint NOT NULL AUTO_INCREMENT,
SALES_COUNTRY_CODE varchar(9) NOT NULL,
BUDGET_NAME_EN varchar(100) NOT NULL,
BUDGET_NAME_KO varchar(100) NOT NULL,
BUDGET_DESC varchar(1000) DEFAULT NULL,
IN_CHARGE_DEPT_CODE varchar(10) NOT NULL,
SUPPORT_SALES_COMP_CODE_LIST varchar(1000) DEFAULT NULL COMMENT 'Issue for list specific Sellers',
ITEM_CATEGORY_CODE varchar(10) DEFAULT NULL COMMENT 'Reserved Item Category Code: BasicBS003',
COUPON_SHARED_TRADER_COMP_CODE1 int DEFAULT NULL,
COUPON_SHARE_RATE_OR_AMOUNT1 varchar(1) DEFAULT NULL,
COUPON_SHARE_APPLIED_VALUE2 decimal(15, 2) DEFAULT NULL,
COUPON_SHARED_TRADER_COMP_CODE2 int DEFAULT NULL,
COUPON_SHARE_RATE_OR_AMOUNT2 varchar(1) DEFAULT NULL,
COUPON_SHARE_APPLIED_VALUE1 decimal(15, 2) DEFAULT NULL,
TOTAL_BUDGET_AMOUNT decimal(15, 2) NOT NULL,
COUPON_RATE_OR_AMOUNT varchar(1) NOT NULL,
COUPON_AMOUNT decimal(15, 2) NOT NULL,
MIN_ORDER_AMOUNT decimal(15, 2) NOT NULL COMMENT 'Minimum order value to apply',
DRAFT_CODE varchar(20) DEFAULT NULL COMMENT 'Prefix of coupon code',
USE_YN varchar(1) NOT NULL DEFAULT 'N',
ISSUE_FROM_DATETIME date NOT NULL,
ISSUE_TO_DATETIME date NOT NULL,
USE_FROM_DATE date NOT NULL,
USE_TO_DATE date NOT NULL,
MAX_COUPON_COUNT smallint NOT NULL,
MAX_USAGE_PER_COUPON smallint NOT NULL DEFAULT 1,
FIRST_INSERT_UNO bigint NOT NULL,
FIRST_INSERT_DATETIME datetime NOT NULL,
LAST_UPDATE_UNO bigint NOT NULL,
LAST_UPDATE_DATETIME datetime NOT NULL,
PRIMARY KEY (COUPON_BUDGET_SEQ)

Script insert api schema

INSERT INTO BS_API_SERVICE_CODE (API_SERVICE_URL, METHOD_NAME, OWNER_COMP_CODE, API_SERVICE_NAME_EN, API_SERVICE_NAME_KO, SCHEMA_FILE_NAME_RQ, SCHEMA_FILE_NAME_RS, VENDOR_SERVICE_NAME, API_SERVICE_DESC, SAMPLE_REQUEST_MESSAGE, SAMPLE_RESPONSE_MESSAGE, OPEN_API_YN, OUTSIDE_INTERFACE_YN, LOG_SAVE_YN, IGNORE_SCHEMA_YN, CONTROL_REMARK, USE_YN, FIRST_INSERT_UNO, FIRST_INSERT_DATETIME, LAST_UPDATE_UNO, LAST_UPDATE_DATETIME) VALUES
('/booking/hotel/hana/generate-coupon-item', 'POST', 110000, 'generate coupon item', 'generate coupon item', '/booking/hotel/hana/generate_coupon_item/generate_coupon_item_rq.json', '/booking/hotel/hana/generate_coupon_item/generate_coupon_item_rs.json', '', '', '', '', 'N', 'N', 'N', 'N', '', 'Y', 10000, '2025-06-03 18:36:35', 10000, '2025-06-03 18:36:35');

INSERT INTO BS_API_SERVICE_CODE (API_SERVICE_URL, METHOD_NAME, OWNER_COMP_CODE, API_SERVICE_NAME_EN, API_SERVICE_NAME_KO, SCHEMA_FILE_NAME_RQ, SCHEMA_FILE_NAME_RS, VENDOR_SERVICE_NAME, API_SERVICE_DESC, SAMPLE_REQUEST_MESSAGE, SAMPLE_RESPONSE_MESSAGE, OPEN_API_YN, OUTSIDE_INTERFACE_YN, LOG_SAVE_YN, IGNORE_SCHEMA_YN, CONTROL_REMARK, USE_YN, FIRST_INSERT_UNO, FIRST_INSERT_DATETIME, LAST_UPDATE_UNO, LAST_UPDATE_DATETIME) VALUES
('/booking/hotel/hana/coupon-budget', 'PUT', 110000, 'post coupon budget', 'post coupon budget', '/booking/hotel/hana/post_coupon_budget/post_coupon_budget_rq.json', '/booking/hotel/hana/post_coupon_budget/post_coupon_budget_rs.json', '', '', '', '', 'N', 'N', 'N', 'N', '', 'Y', 10000, '2025-06-03 18:36:35', 10000, '2025-06-03 18:36:35');


Related issues

Related to Hana card travel bucket - QA #488: [Hana-QC] Create manual test case for Hana B2C - Admin - Coupon완료성공(Resolve)06/05/202506/09/2025

Actions
Related to Hana card travel bucket - QA #521: Create manual test cases for API Create Coupon Budget완료성공(Resolve)06/05/202506/05/2025

Actions
Actions #1

Updated by Joseph Vo 9 months ago

  • Assignee set to John Lee
Actions #2

Updated by Joseph Vo 9 months ago

  • Priority changed from 보통(Normal) to 높음(High)
Actions #3

Updated by Dan Hoang 9 months ago

  • Subject changed from Implement backend API to create coupon budget to [Coupon] Implement backend API to create coupon budget
Actions #4

Updated by Dan Hoang 9 months ago

  • Description updated (diff)
Actions #5

Updated by John Lee 9 months ago

  • Due date set to 06/13/2025
  • Status changed from 신규(New) to 진행(Doing)
  • Start date set to 06/03/2025
Actions #6

Updated by ziniy Kang 9 months ago

  • Parent task set to #287
Actions #7

Updated by John Lee 9 months ago

  • Due date changed from 06/13/2025 to 06/06/2025
Actions #8

Updated by Anonymous 9 months ago

  • Related to QA #488: [Hana-QC] Create manual test case for Hana B2C - Admin - Coupon added
Actions #9

Updated by John Lee 9 months ago

  • % Done changed from 0 to 100
Actions #10

Updated by John Lee 9 months ago

  • Description updated (diff)
Actions #11

Updated by John Lee 9 months ago

  • Status changed from 진행(Doing) to 완료(Done)
Actions #12

Updated by John Lee 9 months ago

  • Status changed from 완료(Done) to 피드백(Feedback)
Actions #13

Updated by John Lee 9 months ago

  • Description updated (diff)
Actions #14

Updated by Anonymous 9 months ago

  • Related to QA #521: Create manual test cases for API Create Coupon Budget added
Actions #15

Updated by John Lee 9 months ago

  • Assignee changed from John Lee to ziniy Kang
  • Build env. set to Dev

Hi c ziniy Kang, this issue is deployed on dev. Please help me to check .Thank you!

Actions #16

Updated by John Lee 9 months ago

  • Description updated (diff)
Actions #17

Updated by ziniy Kang 9 months ago

  • Assignee changed from ziniy Kang to John Lee
  • Target version set to v1.0.0

dev test done.

Actions #18

Updated by John Lee 9 months ago

  • Assignee changed from John Lee to ziniy Kang
  • Build env. changed from Dev to Staging

Hi c ziniy Kang, this issue is deployed on staging. Please help me to check .Thank you!

Actions #19

Updated by ziniy Kang 9 months ago

  • Assignee changed from ziniy Kang to Anonymous
Actions #20

Updated by John Lee 9 months ago

  • Description updated (diff)
Actions #21

Updated by Anonymous 9 months ago

  • Status changed from 피드백(Feedback) to 완료성공(Resolve)
Actions #22

Updated by ziniy Kang 9 months ago

  • Status changed from 완료성공(Resolve) to 완료(Done)
  • Assignee changed from Anonymous to John Lee
Actions #23

Updated by ziniy Kang 9 months ago

STG test done.

Actions #24

Updated by John Lee 8 months ago

  • Build env. changed from Staging to Prod
Actions #25

Updated by ziniy Kang 8 months ago

  • Status changed from 완료(Done) to 완료성공(Resolve)
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 50 MB)