@chevre/factory 4.328.0 → 4.329.0-alpha.0
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/order.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ import { PriceCurrency } from './priceCurrency';
|
|
|
19
19
|
import { IPriceSpecification as ICategoryCodeChargeSpecification } from './priceSpecification/categoryCodeChargeSpecification';
|
|
20
20
|
import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
|
|
21
21
|
import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from './priceSpecification/movieTicketTypeChargeSpecification';
|
|
22
|
+
import { IPriceSpecification as IUnitPriceOfferPriceSpecification } from './priceSpecification/unitPriceSpecification';
|
|
22
23
|
import { IProduct, ProductType } from './product';
|
|
23
24
|
import { IPropertyValue } from './propertyValue';
|
|
24
25
|
import { IProgramMembershipUsedSearchConditions, ITicket, ITicketType } from './reservation';
|
|
@@ -28,7 +29,6 @@ import { ReservationType } from './reservationType';
|
|
|
28
29
|
import { ISeller as IBaseSeller } from './seller';
|
|
29
30
|
import { IPaymentMethodAsServiceOutput, PaymentServiceType } from './service/paymentService';
|
|
30
31
|
import { SortType } from './sortType';
|
|
31
|
-
import { IUnitPriceOfferPriceSpecification } from './unitPriceOffer';
|
|
32
32
|
export interface IProject {
|
|
33
33
|
typeOf: OrganizationType.Project;
|
|
34
34
|
id: string;
|
|
@@ -30,8 +30,10 @@ export interface IPriceSpecification extends Pick<BaseSpecification<PriceSpecifi
|
|
|
30
30
|
referenceQuantity: IReferenceQuantity;
|
|
31
31
|
/**
|
|
32
32
|
* 適用MovieTicket
|
|
33
|
+
* 複数決済カード対応(2022-07-11~)
|
|
34
|
+
* Arrayに完全限定(2023-09-01~)
|
|
33
35
|
*/
|
|
34
|
-
appliesToMovieTicket?: IAppliesToMovieTicket
|
|
36
|
+
appliesToMovieTicket?: IAppliesToMovieTicket[];
|
|
35
37
|
/**
|
|
36
38
|
* 適用アドオン
|
|
37
39
|
* アドオンを指定された場合に適用される
|
package/lib/unitPriceOffer.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ItemAvailability } from './itemAvailability';
|
|
|
3
3
|
import { IAddOn, IName, IOffer } from './offer';
|
|
4
4
|
import { OfferType } from './offerType';
|
|
5
5
|
import { IAmount as IPermitAmount, IDepositAmount, IPaymentAmount } from './permit';
|
|
6
|
-
import {
|
|
6
|
+
import { IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
|
|
7
7
|
import { IProduct, ProductType } from './product';
|
|
8
8
|
import { IQuantitativeValue } from './quantitativeValue';
|
|
9
9
|
import { SortType } from './sortType';
|
|
@@ -40,10 +40,9 @@ export interface IItemOffered {
|
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* 単価オファーの価格仕様
|
|
43
|
+
* 最適化(Pickで表現)(2023-09-01~)
|
|
43
44
|
*/
|
|
44
|
-
export declare type IUnitPriceOfferPriceSpecification =
|
|
45
|
-
appliesToMovieTicket?: IAppliesToMovieTicket[];
|
|
46
|
-
};
|
|
45
|
+
export declare type IUnitPriceOfferPriceSpecification = Pick<IUnitPriceSpecification, 'accounting' | 'appliesToMovieTicket' | 'eligibleQuantity' | 'eligibleTransactionVolume' | 'name' | 'price' | 'priceCurrency' | 'referenceQuantity' | 'typeOf' | 'valueAddedTaxIncluded'>;
|
|
47
46
|
export declare type IAddOnItemOffered = Pick<IProduct, 'typeOf' | 'id' | 'name'>;
|
|
48
47
|
export interface IAddOn4unitPriceOffer extends Pick<IAddOn, 'typeOf' | 'priceCurrency'> {
|
|
49
48
|
itemOffered: IAddOnItemOffered;
|
|
@@ -54,6 +53,17 @@ export interface ISettings {
|
|
|
54
53
|
export interface IAdvanceBookingRequirement extends Pick<IQuantitativeValue<UnitCode.Sec>, 'typeOf' | 'minValue' | 'unitCode' | 'description'> {
|
|
55
54
|
}
|
|
56
55
|
export declare type IAvailability = ItemAvailability.InStock | ItemAvailability.OutOfStock;
|
|
56
|
+
export declare type ISubOfferPriceSpecification = Pick<IUnitPriceOfferPriceSpecification, 'accounting' | 'price' | 'typeOf'>;
|
|
57
|
+
export interface ISubOffer extends Pick<IOffer, 'typeOf' | 'identifier' | 'name'> {
|
|
58
|
+
/**
|
|
59
|
+
* コード
|
|
60
|
+
*/
|
|
61
|
+
identifier: string;
|
|
62
|
+
/**
|
|
63
|
+
* 単価仕様
|
|
64
|
+
*/
|
|
65
|
+
priceSpecification: ISubOfferPriceSpecification;
|
|
66
|
+
}
|
|
57
67
|
/**
|
|
58
68
|
* 単価オファー
|
|
59
69
|
*/
|
|
@@ -69,6 +79,12 @@ export interface IUnitPriceOffer extends Pick<IOffer, 'project' | 'typeOf' | 'pr
|
|
|
69
79
|
*/
|
|
70
80
|
identifier: string;
|
|
71
81
|
name: IName;
|
|
82
|
+
/**
|
|
83
|
+
* サブオファー
|
|
84
|
+
* 基本的に1つの基本オファーが含まれる
|
|
85
|
+
* 条件によるバリエーションが存在する場合、2つ以上のオファーが含まれる
|
|
86
|
+
*/
|
|
87
|
+
offers: ISubOffer[];
|
|
72
88
|
/**
|
|
73
89
|
* 単価仕様
|
|
74
90
|
*/
|