Skip to content

Commit

Permalink
座席検索のprojectionを拡張
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovegadd committed Nov 8, 2023
1 parent 2e8a909 commit 9e095ee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -10,6 +10,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).

### Changed

- 座席検索のprojectionを拡張

### Deprecated

### Removed
Expand Down
12 changes: 7 additions & 5 deletions src/place/seat.ts
Expand Up @@ -13,16 +13,17 @@ export type IPriceComponent = ICategoryCodeChargeSpecification;

/**
* 座席に対する価格仕様
* 最適化(2022-11-15~)
*/
export type IPriceSpecification = Pick<ICompoundPriceSpecification<IPriceComponent>, 'typeOf' | 'priceComponent'>;

/**
* 座席オファー
* 最適化(2022-11-15~)
* 座席に対するオファー
*/
export interface IOffer extends Pick<OfferFactory.IOffer, 'typeOf'> {
export interface IOffer extends Pick<OfferFactory.IOffer, 'availability'> {
availability: ItemAvailability;
/**
* 座席区分加算料金の存在する場合、価格仕様が含まれる
*/
priceSpecification?: IPriceSpecification;
}

Expand Down Expand Up @@ -57,7 +58,8 @@ export interface IPlaceWithOffer extends IPlace {
offers?: IOffer[];
}
export type IKeyOfProjection =
'typeOf' | 'branchCode' | 'name' | 'seatingType' | 'additionalProperty' | 'containedInPlace.containedInPlace';
'typeOf' | 'branchCode' | 'name' | 'seatingType' | 'additionalProperty'
| 'containedInPlace.containedInPlace' | 'containedInPlace.typeOf' | 'containedInPlace.branchCode' | 'containedInPlace.name';
export type IProjection = { [key in IKeyOfProjection]?: 0; };
export interface ISearchConditions {
$projection?: IProjection;
Expand Down

0 comments on commit 9e095ee

Please sign in to comment.