@chevre/factory 4.272.0-alpha.1 → 4.272.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/offer.d.ts CHANGED
@@ -12,7 +12,7 @@ import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpeci
12
12
  import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from './priceSpecification/movieTicketTypeChargeSpecification';
13
13
  import { IAppliesToMovieTicket, IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
14
14
  import { PriceSpecificationType } from './priceSpecificationType';
15
- import { IPointAwardAmount, ProductType } from './product';
15
+ import { IPointAwardAmount, IProduct, ProductType } from './product';
16
16
  import { IProject } from './project';
17
17
  import { IPropertyValue } from './propertyValue';
18
18
  import { IQuantitativeValue } from './quantitativeValue';
@@ -30,10 +30,6 @@ export interface ICategory {
30
30
  id?: string;
31
31
  codeValue?: string;
32
32
  }
33
- /**
34
- * アドオン
35
- */
36
- export declare type IAddOn = IOffer;
37
33
  export declare type IEligibleCategoryCode = Pick<ICategoryCode, 'project' | 'typeOf' | 'id' | 'codeValue' | 'inCodeSet'>;
38
34
  export declare type IEligibleMonetaryAmount = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'>;
39
35
  /**
@@ -78,6 +74,24 @@ export interface IAvailableAtOrFrom {
78
74
  */
79
75
  id: string;
80
76
  }
77
+ /**
78
+ * アドオン
79
+ */
80
+ export interface IAddOn {
81
+ /**
82
+ * コード
83
+ */
84
+ identifier?: string;
85
+ project: Pick<IProject, 'id' | 'typeOf'>;
86
+ typeOf: OfferType.Offer;
87
+ id?: string;
88
+ availableAtOrFrom?: IAvailableAtOrFrom[];
89
+ itemOffered?: any;
90
+ priceCurrency: PriceCurrency;
91
+ priceSpecification?: IPriceSpecification<PriceSpecificationType>;
92
+ validFrom?: Date;
93
+ validThrough?: Date;
94
+ }
81
95
  /**
82
96
  * offer interface
83
97
  * An offer to transfer some rights to an item or to provide a service
@@ -243,6 +257,11 @@ export interface IItemOffered {
243
257
  export declare type IUnitPriceOfferPriceSpecification = Omit<IUnitPriceSpecification, 'appliesToMovieTicket'> & {
244
258
  appliesToMovieTicket?: IAppliesToMovieTicket[];
245
259
  };
260
+ export interface IAddOnItemOffered extends Pick<IProduct, 'typeOf' | 'id' | 'name'> {
261
+ }
262
+ export interface IAddOn4unitPriceOffer extends Pick<IAddOn, 'project' | 'typeOf' | 'priceCurrency'> {
263
+ itemOffered: IAddOnItemOffered;
264
+ }
246
265
  /**
247
266
  * 単価オファー
248
267
  */
@@ -256,6 +275,8 @@ export interface IUnitPriceOffer extends Omit<IOffer, 'seller'> {
256
275
  */
257
276
  priceSpecification?: IUnitPriceOfferPriceSpecification;
258
277
  itemOffered?: IItemOffered;
278
+ addOn?: IAddOn4unitPriceOffer[];
279
+ typeOf: OfferType.Offer;
259
280
  }
260
281
  /**
261
282
  * ソート条件
@@ -5,11 +5,11 @@ export declare type IAppliesToCategoryCode = Pick<ICategoryCode, 'project' | 'ty
5
5
  /**
6
6
  * 区分加算料金
7
7
  */
8
- export declare type IPriceSpecification = BaseSpecification<PriceSpecificationType.CategoryCodeChargeSpecification> & {
8
+ export interface IPriceSpecification extends Pick<BaseSpecification<PriceSpecificationType.CategoryCodeChargeSpecification>, 'project' | 'id' | 'typeOf' | 'name' | 'description' | 'price' | 'priceCurrency' | 'valueAddedTaxIncluded' | 'accounting'> {
9
9
  price: number;
10
10
  /**
11
11
  * 適用カテゴリーコード
12
12
  * AND適用条件
13
13
  */
14
14
  appliesToCategoryCode: IAppliesToCategoryCode[];
15
- };
15
+ }
@@ -21,7 +21,7 @@ export interface IAppliesToMovieTicket {
21
21
  /**
22
22
  * 決済カード加算料金
23
23
  */
24
- export declare type IPriceSpecification = BaseSpecification<PriceSpecificationType.MovieTicketTypeChargeSpecification> & {
24
+ export interface IPriceSpecification extends Pick<BaseSpecification<PriceSpecificationType.MovieTicketTypeChargeSpecification>, 'project' | 'id' | 'typeOf' | 'name' | 'description' | 'price' | 'priceCurrency' | 'valueAddedTaxIncluded' | 'accounting'> {
25
25
  price: number;
26
26
  /**
27
27
  * 適用上映方式
@@ -31,4 +31,4 @@ export declare type IPriceSpecification = BaseSpecification<PriceSpecificationTy
31
31
  * 適用決済カード
32
32
  */
33
33
  appliesToMovieTicket: IAppliesToMovieTicket;
34
- };
34
+ }
@@ -1,6 +1,7 @@
1
- import { IAddOn } from '../offer';
1
+ import { OfferType } from '../offerType';
2
2
  import { IPriceSpecification as BaseSpecification } from '../priceSpecification';
3
3
  import { PriceSpecificationType } from '../priceSpecificationType';
4
+ import { IProduct } from '../product';
4
5
  import { IQuantitativeValue } from '../quantitativeValue';
5
6
  import { UnitCode } from '../unitCode';
6
7
  import { IAppliesToMovieTicket as IMovieTicketTypeChargeSpecAppliesToMovieTicket } from './movieTicketTypeChargeSpecification';
@@ -11,10 +12,17 @@ export declare type IAppliesToMovieTicket = Pick<IMovieTicketTypeChargeSpecAppli
11
12
  identifier?: string;
12
13
  };
13
14
  export declare type IReferenceQuantity = Pick<IQuantitativeValue<UnitCode>, 'typeOf' | 'value' | 'unitCode'>;
15
+ export declare type IAppliesToAddOnItemOffered = Pick<IProduct, 'id' | 'name' | 'productID' | 'project' | 'typeOf'>;
16
+ export interface IAppliesToAddOn {
17
+ typeOf: OfferType.Offer;
18
+ id?: string;
19
+ identifier?: string;
20
+ itemOffered: IAppliesToAddOnItemOffered;
21
+ }
14
22
  /**
15
23
  * 単価仕様
16
24
  */
17
- export declare type IPriceSpecification = BaseSpecification<PriceSpecificationType.UnitPriceSpecification> & {
25
+ export interface IPriceSpecification extends Pick<BaseSpecification<PriceSpecificationType.UnitPriceSpecification>, 'project' | 'id' | 'typeOf' | 'name' | 'description' | 'eligibleQuantity' | 'eligibleTransactionVolume' | 'price' | 'priceCurrency' | 'validFrom' | 'validThrough' | 'valueAddedTaxIncluded' | 'accounting'> {
18
26
  price: number;
19
27
  /**
20
28
  * 基準数量
@@ -28,5 +36,5 @@ export declare type IPriceSpecification = BaseSpecification<PriceSpecificationTy
28
36
  * 適用アドオン
29
37
  * アドオンを指定された場合に適用される
30
38
  */
31
- appliesToAddOn?: IAddOn[];
32
- };
39
+ appliesToAddOn?: IAppliesToAddOn[];
40
+ }
@@ -17,8 +17,8 @@ export interface IAccounting {
17
17
  operatingRevenue?: IAccountTitle;
18
18
  /**
19
19
  * 営業外収益
20
+ * 廃止(2022-10-31~)
20
21
  */
21
- nonOperatingRevenue?: IAccountTitle;
22
22
  /**
23
23
  * 売上金額
24
24
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.272.0-alpha.1",
3
+ "version": "4.272.0-alpha.2",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",