@chevre/factory 4.272.0-alpha.0 → 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/invoice.d.ts +9 -3
- package/lib/offer.d.ts +26 -5
- package/lib/priceSpecification/categoryCodeChargeSpecification.d.ts +2 -2
- package/lib/priceSpecification/movieTicketTypeChargeSpecification.d.ts +2 -2
- package/lib/priceSpecification/unitPriceSpecification.d.ts +14 -5
- package/lib/priceSpecification.d.ts +1 -1
- package/package.json +1 -1
package/lib/invoice.d.ts
CHANGED
|
@@ -3,6 +3,9 @@ import * as OrderFactory from './order';
|
|
|
3
3
|
import { PaymentStatusType } from './paymentStatusType';
|
|
4
4
|
import * as PersonFactory from './person';
|
|
5
5
|
import { IAccounting } from './priceSpecification';
|
|
6
|
+
import { IPriceSpecification as ICategoryCodeChargeSpecification } from './priceSpecification/categoryCodeChargeSpecification';
|
|
7
|
+
import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from './priceSpecification/movieTicketTypeChargeSpecification';
|
|
8
|
+
import { IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
|
|
6
9
|
import { IPriceSpecification } from './reservation/event';
|
|
7
10
|
import * as SellerFactory from './seller';
|
|
8
11
|
import { PaymentServiceType } from './service/paymentService';
|
|
@@ -12,15 +15,18 @@ export interface IReferenceOrder extends OrderFactory.IOrder {
|
|
|
12
15
|
acceptedOffers: OrderFactory.IAcceptedOffer<OrderFactory.IItemOffered>[];
|
|
13
16
|
}
|
|
14
17
|
export declare type IReservationPriceAccounting = Pick<IAccounting, 'accountsReceivable'>;
|
|
15
|
-
export declare type
|
|
16
|
-
accounting
|
|
18
|
+
export declare type IPriceComponentSpecification = Pick<ICategoryCodeChargeSpecification, 'typeOf' | 'price'> | Pick<IMovieTicketTypeChargeSpecification, 'typeOf' | 'price'> | Pick<IUnitPriceSpecification, 'typeOf' | 'price' | 'referenceQuantity' | 'appliesToAddOn'> & {
|
|
19
|
+
accounting?: IReservationPriceAccounting;
|
|
20
|
+
};
|
|
21
|
+
export declare type IReservationPriceSpecification = Pick<IPriceSpecification, 'typeOf'> & {
|
|
22
|
+
priceComponent: IPriceComponentSpecification[];
|
|
17
23
|
};
|
|
18
24
|
export interface IReservation {
|
|
19
25
|
/**
|
|
20
26
|
* 予約価格
|
|
21
27
|
*/
|
|
22
28
|
price?: number;
|
|
23
|
-
priceSpecification
|
|
29
|
+
priceSpecification?: IReservationPriceSpecification;
|
|
24
30
|
}
|
|
25
31
|
export interface IMovieTicketAsPaymentServiceOutput {
|
|
26
32
|
/**
|
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
|
|
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
|
|
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 {
|
|
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';
|
|
@@ -10,15 +11,23 @@ export declare type IAppliesToMovieTicket = Pick<IMovieTicketTypeChargeSpecAppli
|
|
|
10
11
|
*/
|
|
11
12
|
identifier?: string;
|
|
12
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
|
+
}
|
|
13
22
|
/**
|
|
14
23
|
* 単価仕様
|
|
15
24
|
*/
|
|
16
|
-
export
|
|
25
|
+
export interface IPriceSpecification extends Pick<BaseSpecification<PriceSpecificationType.UnitPriceSpecification>, 'project' | 'id' | 'typeOf' | 'name' | 'description' | 'eligibleQuantity' | 'eligibleTransactionVolume' | 'price' | 'priceCurrency' | 'validFrom' | 'validThrough' | 'valueAddedTaxIncluded' | 'accounting'> {
|
|
17
26
|
price: number;
|
|
18
27
|
/**
|
|
19
28
|
* 基準数量
|
|
20
29
|
*/
|
|
21
|
-
referenceQuantity:
|
|
30
|
+
referenceQuantity: IReferenceQuantity;
|
|
22
31
|
/**
|
|
23
32
|
* 適用MovieTicket
|
|
24
33
|
*/
|
|
@@ -27,5 +36,5 @@ export declare type IPriceSpecification = BaseSpecification<PriceSpecificationTy
|
|
|
27
36
|
* 適用アドオン
|
|
28
37
|
* アドオンを指定された場合に適用される
|
|
29
38
|
*/
|
|
30
|
-
appliesToAddOn?:
|
|
31
|
-
}
|
|
39
|
+
appliesToAddOn?: IAppliesToAddOn[];
|
|
40
|
+
}
|