Skip to content

Commit

Permalink
オファーカタログにrelatedOfferを拡張
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovegadd committed Sep 18, 2023
1 parent f4ae331 commit 919226a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).

### Added

- オファーカタログにrelatedOfferを拡張

### Changed

### Deprecated
Expand Down
12 changes: 12 additions & 0 deletions src/offerCatalog.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { IMultilingualString } from './multilingualString';
import { OfferType } from './offerType';
import { IAppliesToMovieTicket } from './priceSpecification/unitPriceSpecification';
import { ProductType } from './product';
import { IProject } from './project';
import { IPropertyValue } from './propertyValue';
Expand Down Expand Up @@ -31,6 +32,13 @@ export interface IItemListElementAsAggregateOffer {
id: string;
}
export type IItemListElement = IItemListElementAsOfferCatalog | IItemListElementAsAggregateOffer;
export interface IReletedOfferPriceSpecification {
appliesToMovieTicket?: Pick<IAppliesToMovieTicket, 'serviceOutput'>[];
}
export interface IRelatedOffer {
typeOf: OfferType.Offer;
priceSpecification?: IReletedOfferPriceSpecification;
}
/**
* オファーカタログ
*/
Expand All @@ -43,6 +51,10 @@ export interface IOfferCatalog extends Pick<IThing, 'name' | 'description' | 'al
itemListElement: IItemListElement[];
itemOffered: IItemOffered;
additionalProperty?: IPropertyValue<string>[];
/**
* 関連オファー
*/
relatedOffer?: IRelatedOffer;
}
/**
* ソート条件
Expand Down
1 change: 0 additions & 1 deletion src/priceSpecification/unitPriceSpecification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export interface IPriceSpecification extends Pick<
* Arrayに完全限定(2023-09-01~)
*/
appliesToMovieTicket?: IAppliesToMovieTicket[];
// appliesToMovieTicket?: IAppliesToMovieTicket | IAppliesToMovieTicket[];
/**
* 適用アドオン
* アドオンを指定された場合に適用される
Expand Down

0 comments on commit 919226a

Please sign in to comment.