Skip to content

Commit

Permalink
集計オファーのISubOfferを最適化
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovegadd committed Dec 22, 2023
1 parent d697fb7 commit 2cf1f81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).

### Changed

- 集計オファーのISubOfferを最適化

### Deprecated

### Removed
Expand Down
5 changes: 2 additions & 3 deletions src/offer/aggregateOffer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { IOffer } from '../offer';
import { OfferType } from '../offerType';
import { IUnitPriceOffer } from '../unitPriceOffer';

export type ISubOffer = IUnitPriceOffer;
export type ISubOffer = Omit<IUnitPriceOffer, 'id' | 'project'>;
/**
* 集計オファー
*/
Expand All @@ -16,6 +16,5 @@ export interface IAggregateOffer extends Pick<IOffer, 'id' | 'typeOf' | 'project
* 基本的に1つの基本オファーが含まれる
* 条件によるバリエーションが存在する場合、2つ以上のオファーが含まれる
*/
offers: ISubOffer[]; // 追加(2023-09-01~)

offers: ISubOffer[];
}

0 comments on commit 2cf1f81

Please sign in to comment.