@chevre/factory 4.274.0-alpha.0 → 4.274.0-alpha.2

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.
package/lib/index.d.ts CHANGED
@@ -341,6 +341,8 @@ export declare namespace place {
341
341
  export import placeType = PlaceType;
342
342
  export declare namespace priceSpecification {
343
343
  export import IAccounting = PriceSpecificationFactory.IAccounting;
344
+ export import IEligibleQuantity = PriceSpecificationFactory.IEligibleQuantity;
345
+ export import IEligibleTransactionVolume = PriceSpecificationFactory.IEligibleTransactionVolume;
344
346
  type IPriceSpecification<T extends PriceSpecificationType> = T extends PriceSpecificationType.CategoryCodeChargeSpecification ? CategoryCodeChargeSpecificationFactory.IPriceSpecification : T extends PriceSpecificationType.MovieTicketTypeChargeSpecification ? MovieTicketTypeChargeSpecificationFactory.IPriceSpecification : T extends PriceSpecificationType.UnitPriceSpecification ? UnitPriceSpecificationFactory.IPriceSpecification : PriceSpecificationFactory.IPriceSpecification<PriceSpecificationType>;
345
347
  type ISearchConditions<T extends PriceSpecificationType> = PriceSpecificationFactory.ISearchConditions<T>;
346
348
  export import unitPrice = UnitPriceSpecificationFactory;
@@ -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
  * 適用カテゴリーコード
@@ -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
  * 適用上映方式
@@ -11,7 +11,7 @@ export declare type IAppliesToMovieTicket = Pick<IMovieTicketTypeChargeSpecAppli
11
11
  */
12
12
  identifier?: string;
13
13
  };
14
- export declare type IReferenceQuantity = Pick<IQuantitativeValue<UnitCode>, 'typeOf' | 'value' | 'unitCode'>;
14
+ export declare type IReferenceQuantity = Pick<IQuantitativeValue<UnitCode>, 'typeOf' | 'value' | 'unitCode' | 'minValue'>;
15
15
  export declare type IAppliesToAddOnItemOffered = Pick<IProduct, 'id' | 'name' | 'productID' | 'typeOf'>;
16
16
  export interface IAppliesToAddOn {
17
17
  typeOf: OfferType.Offer;
@@ -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';
@@ -24,19 +24,18 @@ export interface IAccounting {
24
24
  */
25
25
  accountsReceivable?: number;
26
26
  }
27
+ export declare type IEligibleQuantity = Pick<IQuantitativeValue<UnitCode>, 'maxValue' | 'minValue' | 'typeOf' | 'unitCode'>;
28
+ export declare type IEligibleTransactionVolume = Pick<IPriceSpecification<PriceSpecificationType>, 'typeOf' | 'price' | 'priceCurrency' | 'valueAddedTaxIncluded'>;
27
29
  /**
28
- * 価格仕様インターフェース
30
+ * 価格仕様
29
31
  */
30
32
  export interface IPriceSpecification<T extends PriceSpecificationType> {
31
- project: Pick<IProject, 'id' | 'typeOf'>;
33
+ project?: Pick<IProject, 'id' | 'typeOf'>;
32
34
  id?: string;
33
35
  typeOf: T;
34
36
  name?: string | IMultilingualString;
35
- description?: string | IMultilingualString;
36
- eligibleQuantity?: IQuantitativeValue<UnitCode>;
37
- eligibleTransactionVolume?: IPriceSpecification<PriceSpecificationType>;
38
- maxPrice?: number;
39
- minPrice?: number;
37
+ eligibleQuantity?: IEligibleQuantity;
38
+ eligibleTransactionVolume?: IEligibleTransactionVolume;
40
39
  /**
41
40
  * 発生金額
42
41
  */
@@ -45,8 +44,6 @@ export interface IPriceSpecification<T extends PriceSpecificationType> {
45
44
  * 通貨
46
45
  */
47
46
  priceCurrency: PriceCurrency;
48
- validFrom?: Date;
49
- validThrough?: Date;
50
47
  valueAddedTaxIncluded: boolean;
51
48
  /**
52
49
  * 勘定内容
@@ -54,13 +51,13 @@ export interface IPriceSpecification<T extends PriceSpecificationType> {
54
51
  accounting?: IAccounting;
55
52
  }
56
53
  /**
57
- * ソート条件インターフェース
54
+ * 価格仕様ソート条件
58
55
  */
59
56
  export interface ISortOrder {
60
57
  price?: SortType;
61
58
  }
62
59
  /**
63
- * 検索条件インターフェース
60
+ * 価格仕様検索条件
64
61
  */
65
62
  export interface ISearchConditions<T extends PriceSpecificationType> {
66
63
  limit?: number;
@@ -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'> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.274.0-alpha.0",
3
+ "version": "4.274.0-alpha.2",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",