@chevre/factory 4.327.1 → 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.
@@ -10,6 +10,7 @@ import { IIssuedThrough as IBusReservationIssuedThrough, IReservation as IBusRes
10
10
  import { IIssuedThrough as IEventReservationIssuedThrough, IReservation as IEventReservation, IReservationFor as IEventReservationReservationFor, ISubReservation as ISubReservation4eventReservation } from '../reservation/event';
11
11
  import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
12
12
  import { ReservationType } from '../reservationType';
13
+ import { IUnitPriceOffer } from '../unitPriceOffer';
13
14
  export import IAgent = AssetTransactionFactory.IAgent;
14
15
  export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Reserve, IAgent, undefined, IObjectWithoutDetail>;
15
16
  /**
@@ -117,11 +118,23 @@ export interface IAcceptedTicketOfferItemOffered4object {
117
118
  id: string;
118
119
  };
119
120
  }
120
- export interface IAcceptedAddOn {
121
+ /**
122
+ * 予約取引開始時の受入アドオンオファー
123
+ */
124
+ export interface IAcceptedAddOn extends Pick<IUnitPriceOffer, 'id'> {
121
125
  /**
122
- * アドオンID
126
+ * アドオン単価オファーID
123
127
  */
124
128
  id?: string;
129
+ priceSpecification?: {
130
+ referenceQuantity?: {
131
+ /**
132
+ * 数量指定(2023-08-31~)
133
+ * 単価オファーの基準数量で割り切れる必要あり
134
+ */
135
+ value?: number;
136
+ };
137
+ };
125
138
  }
126
139
  export interface ISingleAcceptedAppliesToMovieTicket {
127
140
  /**
@@ -163,7 +176,7 @@ export interface IAcceptedTicketOfferWithoutDetail {
163
176
  */
164
177
  itemOffered?: IAcceptedTicketOfferItemOffered;
165
178
  /**
166
- * 受け入れるアドオン
179
+ * 受入アドオン
167
180
  */
168
181
  addOn?: IAcceptedAddOn[];
169
182
  additionalProperty?: IPropertyValue<string>[];
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 | IAppliesToMovieTicket[];
36
+ appliesToMovieTicket?: IAppliesToMovieTicket[];
35
37
  /**
36
38
  * 適用アドオン
37
39
  * アドオンを指定された場合に適用される
@@ -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 { IAppliesToMovieTicket, IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
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 = Omit<IUnitPriceSpecification, 'appliesToMovieTicket' | 'project'> & {
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
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.327.1",
3
+ "version": "4.329.0-alpha.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",