@chevre/factory 4.273.1 → 4.274.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,7 @@ import * as ActionFactory from '../../../action';
2
2
  import { ActionType } from '../../../actionType';
3
3
  import * as RegisterServiceTransactionFactory from '../../../assetTransaction/registerService';
4
4
  import { AssetTransactionType } from '../../../assetTransactionType';
5
+ import { ITicketPriceSpecification } from '../../../event/screeningEvent';
5
6
  import { IOffer } from '../../../offer';
6
7
  import * as OrderFactory from '../../../order';
7
8
  import { IPermit } from '../../../permit';
@@ -9,7 +10,6 @@ import { PriceCurrency } from '../../../priceCurrency';
9
10
  import { IProduct, IServiceOutput as IProductServiceOutput } from '../../../product';
10
11
  import { ISeller } from '../../../seller';
11
12
  import { TransactionType } from '../../../transactionType';
12
- import { ITicketPriceSpecification } from '../../../unitPriceOffer';
13
13
  import * as AuthorizeActionFactory from '../../authorize';
14
14
  export declare type IAgent = ActionFactory.IParticipantAsSeller;
15
15
  export declare type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
@@ -8,6 +8,10 @@ import { OfferType } from '../offerType';
8
8
  import { OrganizationType } from '../organizationType';
9
9
  import { PlaceType } from '../placeType';
10
10
  import { PriceCurrency } from '../priceCurrency';
11
+ import { IPriceSpecification as ICategoryCodeChargeSpecification } from '../priceSpecification/categoryCodeChargeSpecification';
12
+ import { IPriceSpecification as ICompoundPriceSpecification } from '../priceSpecification/compoundPriceSpecification';
13
+ import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from '../priceSpecification/movieTicketTypeChargeSpecification';
14
+ import { IPriceSpecification as IUnitPriceSpecification } from '../priceSpecification/unitPriceSpecification';
11
15
  import { IServiceType as IProductServiceType } from '../product';
12
16
  import { IProject } from '../project';
13
17
  import { IQuantitativeValue } from '../quantitativeValue';
@@ -145,10 +149,14 @@ export interface IOffer {
145
149
  seller: ISeller;
146
150
  }
147
151
  export declare type IOffer4COA = Pick<IOffer, 'project' | 'typeOf' | 'offeredThrough' | 'priceCurrency'>;
148
- export import ITicketPriceComponent = UnitPriceOfferFactory.ITicketPriceComponent;
149
- export import ITicketPriceSpecification = UnitPriceOfferFactory.ITicketPriceSpecification;
152
+ export declare type ITicketUnitPriceComponent = Omit<IUnitPriceSpecification, 'project'>;
153
+ export declare type ITicketPriceComponent = Omit<ICategoryCodeChargeSpecification, 'project'> | Omit<IMovieTicketTypeChargeSpecification, 'project'> | ITicketUnitPriceComponent;
150
154
  /**
151
- * チケットオファー
155
+ * 興行オファーの価格仕様
156
+ */
157
+ export declare type ITicketPriceSpecification = Omit<ICompoundPriceSpecification<ITicketPriceComponent>, 'project'>;
158
+ /**
159
+ * 興行オファー
152
160
  */
153
161
  export interface ITicketOffer extends Omit<OfferFactory.IOffer, 'priceSpecification'> {
154
162
  identifier: string;
package/lib/invoice.d.ts CHANGED
@@ -5,7 +5,7 @@ import * as PersonFactory from './person';
5
5
  import { IAccounting } from './priceSpecification';
6
6
  import { IPriceSpecification as ICategoryCodeChargeSpecification } from './priceSpecification/categoryCodeChargeSpecification';
7
7
  import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from './priceSpecification/movieTicketTypeChargeSpecification';
8
- import { IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
8
+ import { IAppliesToAddOn as IUnitPriceSpecAppliesToAddOn, IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
9
9
  import { IPriceSpecification } from './reservation/event';
10
10
  import * as SellerFactory from './seller';
11
11
  import { PaymentServiceType } from './service/paymentService';
@@ -15,8 +15,10 @@ export interface IReferenceOrder extends OrderFactory.IOrder {
15
15
  acceptedOffers: OrderFactory.IAcceptedOffer<OrderFactory.IItemOffered>[];
16
16
  }
17
17
  export declare type IReservationPriceAccounting = Pick<IAccounting, 'accountsReceivable'>;
18
- export declare type IPriceComponentSpecification = Pick<ICategoryCodeChargeSpecification, 'typeOf' | 'price'> | Pick<IMovieTicketTypeChargeSpecification, 'typeOf' | 'price'> | Pick<IUnitPriceSpecification, 'typeOf' | 'price' | 'referenceQuantity' | 'appliesToAddOn'> & {
18
+ export declare type IAppliesToAddOn = Pick<IUnitPriceSpecAppliesToAddOn, 'typeOf'>;
19
+ export declare type IPriceComponentSpecification = Pick<ICategoryCodeChargeSpecification, 'typeOf' | 'price'> | Pick<IMovieTicketTypeChargeSpecification, 'typeOf' | 'price'> | Pick<IUnitPriceSpecification, 'typeOf' | 'price' | 'referenceQuantity'> & {
19
20
  accounting?: IReservationPriceAccounting;
21
+ appliesToAddOn?: IAppliesToAddOn[];
20
22
  };
21
23
  export declare type IReservationPriceSpecification = Pick<IPriceSpecification, 'typeOf'> & {
22
24
  priceComponent: IPriceComponentSpecification[];
@@ -5,7 +5,7 @@ export declare type IAppliesToCategoryCode = Pick<ICategoryCode, 'project' | 'ty
5
5
  /**
6
6
  * 区分加算料金
7
7
  */
8
- export interface IPriceSpecification extends Pick<BaseSpecification<PriceSpecificationType.CategoryCodeChargeSpecification>, 'project' | 'id' | 'typeOf' | 'name' | 'description' | 'price' | 'priceCurrency' | 'valueAddedTaxIncluded' | 'accounting'> {
8
+ export interface IPriceSpecification extends Pick<BaseSpecification<PriceSpecificationType.CategoryCodeChargeSpecification>, 'project' | 'id' | 'typeOf' | 'name' | 'price' | 'priceCurrency' | 'valueAddedTaxIncluded' | 'accounting'> {
9
9
  price: number;
10
10
  /**
11
11
  * 適用カテゴリーコード
@@ -1,9 +1,10 @@
1
1
  import { IPriceSpecification as BaseSpecification } from '../priceSpecification';
2
2
  import { PriceSpecificationType } from '../priceSpecificationType';
3
+ export declare type IPriceComponent = Omit<BaseSpecification<PriceSpecificationType>, 'project'>;
3
4
  /**
4
5
  * 複合価格仕様
5
6
  */
6
- export declare type IPriceSpecification<T extends BaseSpecification<PriceSpecificationType>> = Pick<BaseSpecification<PriceSpecificationType.CompoundPriceSpecification>, 'typeOf' | 'priceCurrency' | 'valueAddedTaxIncluded'> & {
7
+ export declare type IPriceSpecification<T extends IPriceComponent> = Pick<BaseSpecification<PriceSpecificationType.CompoundPriceSpecification>, 'typeOf' | 'priceCurrency' | 'valueAddedTaxIncluded'> & {
7
8
  /**
8
9
  * 価格要素
9
10
  */
@@ -21,7 +21,7 @@ export interface IAppliesToMovieTicket {
21
21
  /**
22
22
  * 決済カード加算料金
23
23
  */
24
- export interface IPriceSpecification extends Pick<BaseSpecification<PriceSpecificationType.MovieTicketTypeChargeSpecification>, 'project' | 'id' | 'typeOf' | 'name' | 'description' | 'price' | 'priceCurrency' | 'valueAddedTaxIncluded' | 'accounting'> {
24
+ export interface IPriceSpecification extends Pick<BaseSpecification<PriceSpecificationType.MovieTicketTypeChargeSpecification>, 'project' | 'id' | 'typeOf' | 'name' | 'price' | 'priceCurrency' | 'valueAddedTaxIncluded' | 'accounting'> {
25
25
  price: number;
26
26
  /**
27
27
  * 適用上映方式
@@ -12,7 +12,7 @@ export declare type IAppliesToMovieTicket = Pick<IMovieTicketTypeChargeSpecAppli
12
12
  identifier?: string;
13
13
  };
14
14
  export declare type IReferenceQuantity = Pick<IQuantitativeValue<UnitCode>, 'typeOf' | 'value' | 'unitCode'>;
15
- export declare type IAppliesToAddOnItemOffered = Pick<IProduct, 'id' | 'name' | 'productID' | 'project' | 'typeOf'>;
15
+ export declare type IAppliesToAddOnItemOffered = Pick<IProduct, 'id' | 'name' | 'productID' | 'typeOf'>;
16
16
  export interface IAppliesToAddOn {
17
17
  typeOf: OfferType.Offer;
18
18
  id?: string;
@@ -22,7 +22,7 @@ export interface IAppliesToAddOn {
22
22
  /**
23
23
  * 単価仕様
24
24
  */
25
- export interface IPriceSpecification extends Pick<BaseSpecification<PriceSpecificationType.UnitPriceSpecification>, 'project' | 'id' | 'typeOf' | 'name' | 'description' | 'eligibleQuantity' | 'eligibleTransactionVolume' | 'price' | 'priceCurrency' | 'validFrom' | 'validThrough' | 'valueAddedTaxIncluded' | 'accounting'> {
25
+ export interface IPriceSpecification extends Pick<BaseSpecification<PriceSpecificationType.UnitPriceSpecification>, 'project' | 'id' | 'typeOf' | 'name' | 'price' | 'priceCurrency' | 'valueAddedTaxIncluded' | 'accounting' | 'eligibleQuantity' | 'eligibleTransactionVolume'> {
26
26
  price: number;
27
27
  /**
28
28
  * 基準数量
@@ -7,7 +7,7 @@ import { IQuantitativeValue } from './quantitativeValue';
7
7
  import { SortType } from './sortType';
8
8
  import { UnitCode } from './unitCode';
9
9
  /**
10
- * 勘定インターフェース
10
+ * 勘定
11
11
  */
12
12
  export interface IAccounting {
13
13
  typeOf: 'Accounting';
@@ -25,18 +25,15 @@ export interface IAccounting {
25
25
  accountsReceivable?: number;
26
26
  }
27
27
  /**
28
- * 価格仕様インターフェース
28
+ * 価格仕様
29
29
  */
30
30
  export interface IPriceSpecification<T extends PriceSpecificationType> {
31
- project: Pick<IProject, 'id' | 'typeOf'>;
31
+ project?: Pick<IProject, 'id' | 'typeOf'>;
32
32
  id?: string;
33
33
  typeOf: T;
34
34
  name?: string | IMultilingualString;
35
- description?: string | IMultilingualString;
36
35
  eligibleQuantity?: IQuantitativeValue<UnitCode>;
37
36
  eligibleTransactionVolume?: IPriceSpecification<PriceSpecificationType>;
38
- maxPrice?: number;
39
- minPrice?: number;
40
37
  /**
41
38
  * 発生金額
42
39
  */
@@ -45,8 +42,6 @@ export interface IPriceSpecification<T extends PriceSpecificationType> {
45
42
  * 通貨
46
43
  */
47
44
  priceCurrency: PriceCurrency;
48
- validFrom?: Date;
49
- validThrough?: Date;
50
45
  valueAddedTaxIncluded: boolean;
51
46
  /**
52
47
  * 勘定内容
@@ -54,13 +49,13 @@ export interface IPriceSpecification<T extends PriceSpecificationType> {
54
49
  accounting?: IAccounting;
55
50
  }
56
51
  /**
57
- * ソート条件インターフェース
52
+ * 価格仕様ソート条件
58
53
  */
59
54
  export interface ISortOrder {
60
55
  price?: SortType;
61
56
  }
62
57
  /**
63
- * 検索条件インターフェース
58
+ * 価格仕様検索条件
64
59
  */
65
60
  export interface ISearchConditions<T extends PriceSpecificationType> {
66
61
  limit?: number;
@@ -2,14 +2,11 @@ import { ICOAInfo, ILocation as IEventLocation, IName as IEventName, ISuperEvent
2
2
  import { EventStatusType } from '../eventStatusType';
3
3
  import { EventType } from '../eventType';
4
4
  import { IMultilingualString } from '../multilingualString';
5
- import { IPriceSpecification as ICategoryCodeChargeSpecification } from '../priceSpecification/categoryCodeChargeSpecification';
6
- import { IPriceSpecification as ICompoundPriceSpecification } from '../priceSpecification/compoundPriceSpecification';
7
- import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from '../priceSpecification/movieTicketTypeChargeSpecification';
8
- import { IPriceSpecification as IUnitPriceSpecification } from '../priceSpecification/unitPriceSpecification';
9
5
  import { IProject } from '../project';
10
6
  import * as ReservationFactory from '../reservation';
11
7
  import { ReservationStatusType } from '../reservationStatusType';
12
8
  import { ReservationType } from '../reservationType';
9
+ import { ITicketPriceComponent, ITicketPriceSpecification } from '../unitPriceOffer';
13
10
  export declare type IOptimizedWorkPerformed = Omit<IWorkPerformed, 'name'> & {
14
11
  name?: string | IMultilingualString;
15
12
  };
@@ -37,8 +34,8 @@ export interface IReservationFor {
37
34
  typeOf: EventType.ScreeningEvent;
38
35
  doorTime?: Date;
39
36
  }
40
- export declare type IPriceComponentSpecification = ICategoryCodeChargeSpecification | IMovieTicketTypeChargeSpecification | IUnitPriceSpecification;
41
- export declare type IPriceSpecification = Omit<ICompoundPriceSpecification<IPriceComponentSpecification>, 'project'>;
37
+ export declare type IPriceComponentSpecification = ITicketPriceComponent;
38
+ export declare type IPriceSpecification = ITicketPriceSpecification;
42
39
  export interface ISubReservation {
43
40
  reservedTicket: {
44
41
  typeOf: ReservationFactory.TicketType;
@@ -51,7 +51,7 @@ export interface IItemOffered {
51
51
  /**
52
52
  * 単価オファーの価格仕様
53
53
  */
54
- export declare type IUnitPriceOfferPriceSpecification = Omit<IUnitPriceSpecification, 'appliesToMovieTicket'> & {
54
+ export declare type IUnitPriceOfferPriceSpecification = Omit<IUnitPriceSpecification, 'appliesToMovieTicket' | 'project'> & {
55
55
  appliesToMovieTicket?: IAppliesToMovieTicket[];
56
56
  };
57
57
  export interface IAddOnItemOffered extends Pick<IProduct, 'typeOf' | 'id' | 'name'> {
@@ -205,10 +205,13 @@ export interface ISearchConditions {
205
205
  };
206
206
  };
207
207
  }
208
+ export declare type ICategoryChargePriceComponent = Omit<ICategoryCodeChargeSpecification, 'project'>;
209
+ export declare type IMovieTicketTypeChargePriceComponent = Omit<IMovieTicketTypeChargeSpecification, 'project'>;
210
+ export declare type IUnitPriceComponent = Pick<IUnitPriceOfferPriceSpecification, 'accounting' | 'appliesToMovieTicket' | 'appliesToAddOn' | 'name' | 'price' | 'priceCurrency' | 'referenceQuantity' | 'typeOf' | 'valueAddedTaxIncluded'>;
208
211
  /**
209
212
  * 承認時に提供される価格仕様要素
210
213
  */
211
- export declare type ITicketPriceComponent = ICategoryCodeChargeSpecification | IMovieTicketTypeChargeSpecification | IUnitPriceOfferPriceSpecification;
214
+ export declare type ITicketPriceComponent = ICategoryChargePriceComponent | IMovieTicketTypeChargePriceComponent | IUnitPriceComponent;
212
215
  /**
213
216
  * 承認時に提供される価格仕様
214
217
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.273.1",
3
+ "version": "4.274.0-alpha.1",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",