Skip to content

Commit

Permalink
集計オファーを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovegadd committed Sep 3, 2023
1 parent 085b57f commit a62fdc4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 23 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).

- 単価オファーにサブオファーを追加
- タスクに識別子を追加
- 集計オファーを追加

### Changed

Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Expand Up @@ -75,6 +75,7 @@ import * as MerchantReturnPolicyFactory from './merchantReturnPolicy';
import * as MonetaryAmountFactory from './monetaryAmount';
import { IMultilingualString } from './multilingualString';
import * as OfferFactory from './offer';
import * as AggregateOfferFactory from './offer/aggregateOffer';
import * as OfferCatalogFactory from './offerCatalog';
import * as OfferItemConditionFactory from './offerItemCondition';
import { OfferType } from './offerType';
Expand Down Expand Up @@ -335,6 +336,7 @@ export namespace action {
export import accountTitle = AccountTitleFactory;
export import accountType = AccountType;
export import additionalProperty = AdditionalPropertyFactory;
export import aggregateOffer = AggregateOfferFactory;
export import authorization = AuthorizationFactory;
export import categoryCode = CategoryCodeFactory;
export import clientUser = ClientUserFactory;
Expand Down
15 changes: 15 additions & 0 deletions src/offer/aggregateOffer.ts
@@ -0,0 +1,15 @@
import { IUnitPriceOffer } from '../unitPriceOffer';

export type ISubOffer = IUnitPriceOffer;
/**
* 集計オファー
*/
export interface IAggregateOffer extends IUnitPriceOffer {

/**
* サブオファー
* 基本的に1つの基本オファーが含まれる
* 条件によるバリエーションが存在する場合、2つ以上のオファーが含まれる
*/
offers: ISubOffer[]; // 追加(2023-09-01~)
}
23 changes: 0 additions & 23 deletions src/unitPriceOffer.ts
Expand Up @@ -71,23 +71,6 @@ export interface ISettings {
export interface IAdvanceBookingRequirement extends Pick<IQuantitativeValue<UnitCode.Sec>, 'typeOf' | 'minValue' | 'unitCode' | 'description'> {
}
export type IAvailability = ItemAvailability.InStock | ItemAvailability.OutOfStock;
export type ISubOfferPriceSpecification = Pick<
IUnitPriceOfferPriceSpecification,
'accounting' | 'price' | 'typeOf'
>;
export interface ISubOffer extends Pick<
IOffer,
'typeOf' | 'identifier' | 'name'
> {
/**
* コード
*/
identifier: string;
/**
* 単価仕様
*/
priceSpecification: ISubOfferPriceSpecification;
}
/**
* 単価オファー
*/
Expand All @@ -110,12 +93,6 @@ export interface IUnitPriceOffer extends Pick<
*/
identifier: string;
name: IName;
/**
* サブオファー
* 基本的に1つの基本オファーが含まれる
* 条件によるバリエーションが存在する場合、2つ以上のオファーが含まれる
*/
offers: ISubOffer[]; // 追加(2023-09-01~)
/**
* 単価仕様
*/
Expand Down

0 comments on commit a62fdc4

Please sign in to comment.