@chevre/factory 4.272.0-alpha.1 → 4.272.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.
@@ -2,13 +2,14 @@ import * as ActionFactory from '../../../action';
2
2
  import { ActionType } from '../../../actionType';
3
3
  import * as RegisterServiceTransactionFactory from '../../../assetTransaction/registerService';
4
4
  import { AssetTransactionType } from '../../../assetTransactionType';
5
- import { IOffer, ITicketPriceSpecification } from '../../../offer';
5
+ import { IOffer } from '../../../offer';
6
6
  import * as OrderFactory from '../../../order';
7
7
  import { IPermit } from '../../../permit';
8
8
  import { PriceCurrency } from '../../../priceCurrency';
9
9
  import { IProduct, IServiceOutput as IProductServiceOutput } from '../../../product';
10
10
  import { ISeller } from '../../../seller';
11
11
  import { TransactionType } from '../../../transactionType';
12
+ import { ITicketPriceSpecification } from '../../../unitPriceOffer';
12
13
  import * as AuthorizeActionFactory from '../../authorize';
13
14
  export declare type IAgent = ActionFactory.IParticipantAsSeller;
14
15
  export declare type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
@@ -10,7 +10,9 @@ import * as OrderFactory from '../../../order';
10
10
  import { PriceCurrency } from '../../../priceCurrency';
11
11
  import * as WebAPIFactory from '../../../service/webAPI';
12
12
  import { TransactionType } from '../../../transactionType';
13
+ import { ITicketPriceSpecification } from '../../../unitPriceOffer';
13
14
  import * as AuthorizeActionFactory from '../../authorize';
15
+ import * as COAReservationOfferFactory from './seatReservation/coa';
14
16
  export declare type IAgent = ActionFactory.IParticipantAsSeller;
15
17
  export declare type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
16
18
  export declare enum ObjectType {
@@ -64,19 +66,21 @@ export declare type IAcceptedOffer4chevre = Pick<ScreeningEventFactory.ITicketOf
64
66
  };
65
67
  export declare type IAcceptedOfferWithoutDetail4chevre = ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail;
66
68
  export declare type IObjectWithoutDetail4chevre = ReserveTransactionFactory.IObjectWithoutDetail;
69
+ export import ICOATicketInfo = COAReservationOfferFactory.ICOATicketInfo;
70
+ export import ICOATicketInfoWithDetails = COAReservationOfferFactory.ICOATicketInfoWithDetails;
67
71
  /**
68
- * COAイベント受入オファー
72
+ * 受入COA興行オファー
69
73
  */
70
74
  export declare type IAcceptedOffer4COA = Pick<ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail, 'id' | 'itemOffered' | 'additionalProperty'> & Pick<OfferFactory.IOffer, 'typeOf' | 'id' | 'identifier' | 'name' | 'priceCurrency' | 'seller' | 'additionalProperty' | 'eligibleMonetaryAmount'> & {
71
75
  itemOffered: ReserveTransactionFactory.IAcceptedTicketOfferItemOffered;
72
- ticketInfo: OfferFactory.seatReservation.ICOATicketInfoWithDetails;
76
+ ticketInfo: ICOATicketInfoWithDetails;
73
77
  /**
74
78
  * COAイベントでは、priceSpecificationで価格を表現しきれないので、numberとしてのpriceが必要
75
79
  */
76
80
  price: number;
77
- priceSpecification?: OfferFactory.ITicketPriceSpecification;
81
+ priceSpecification?: ITicketPriceSpecification;
78
82
  };
79
- export declare type IAcceptedOfferWithoutDetail4COA = OfferFactory.seatReservation.ICOAOffer;
83
+ export declare type IAcceptedOfferWithoutDetail4COA = COAReservationOfferFactory.IOffer;
80
84
  export interface IObjectWithoutDetail4COA {
81
85
  acceptedOffer: IAcceptedOfferWithoutDetail4COA[];
82
86
  event: {
@@ -16,6 +16,7 @@ import { ReservationType } from '../reservationType';
16
16
  import * as WebAPIFactory from '../service/webAPI';
17
17
  import { IThing } from '../thing';
18
18
  import { UnitCode } from '../unitCode';
19
+ import * as UnitPriceOfferFactory from '../unitPriceOffer';
19
20
  /**
20
21
  * 予約集計
21
22
  */
@@ -144,15 +145,15 @@ export interface IOffer {
144
145
  seller: ISeller;
145
146
  }
146
147
  export declare type IOffer4COA = Pick<IOffer, 'project' | 'typeOf' | 'offeredThrough' | 'priceCurrency'>;
147
- export import ITicketPriceComponent = OfferFactory.ITicketPriceComponent;
148
- export import ITicketPriceSpecification = OfferFactory.ITicketPriceSpecification;
148
+ export import ITicketPriceComponent = UnitPriceOfferFactory.ITicketPriceComponent;
149
+ export import ITicketPriceSpecification = UnitPriceOfferFactory.ITicketPriceSpecification;
149
150
  /**
150
151
  * チケットオファー
151
152
  */
152
153
  export interface ITicketOffer extends OfferFactory.IOffer {
153
154
  identifier: string;
154
155
  priceSpecification: ITicketPriceSpecification;
155
- itemOffered?: OfferFactory.IItemOffered;
156
+ itemOffered?: UnitPriceOfferFactory.IItemOffered;
156
157
  }
157
158
  export interface ICOAInfo {
158
159
  theaterCode: string;
package/lib/index.d.ts CHANGED
@@ -110,6 +110,7 @@ import * as WebAPIServiceFactory from './service/webAPI';
110
110
  import { SortType } from './sortType';
111
111
  import * as ThingFactory from './thing';
112
112
  import { UnitCode } from './unitCode';
113
+ import * as UnitPriceOfferFactory from './unitPriceOffer';
113
114
  import * as TaskFactory from './task';
114
115
  import * as AccountMoneyTransferTaskFactory from './task/accountMoneyTransfer';
115
116
  import * as AggregateScreeningEventTaskFactory from './task/aggregateScreeningEvent';
@@ -449,3 +450,4 @@ export import transactionStatusType = TransactionStatusType;
449
450
  export import transactionTasksExportationStatus = TransactionTasksExportationStatus;
450
451
  export import assetTransactionType = AssetTransactionType;
451
452
  export import unitCode = UnitCode;
453
+ export import unitPriceOffer = UnitPriceOfferFactory;
package/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.project = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = exports.permit = exports.paymentStatusType = exports.paymentMethod = exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.order = exports.offerType = exports.offerCatalog = exports.offer = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.iam = exports.eventType = exports.eventStatusType = exports.encodingFormat = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.categoryCode = exports.authorization = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.errorCode = exports.errors = exports.waiter = exports.cognito = void 0;
4
- exports.unitCode = exports.assetTransactionType = exports.transactionTasksExportationStatus = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = void 0;
4
+ exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionTasksExportationStatus = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = void 0;
5
5
  /**
6
6
  * factory
7
7
  */
@@ -100,6 +100,7 @@ var WebAPIServiceFactory = require("./service/webAPI");
100
100
  var sortType_1 = require("./sortType");
101
101
  var ThingFactory = require("./thing");
102
102
  var unitCode_1 = require("./unitCode");
103
+ var UnitPriceOfferFactory = require("./unitPriceOffer");
103
104
  var AccountMoneyTransferTaskFactory = require("./task/accountMoneyTransfer");
104
105
  var AggregateScreeningEventTaskFactory = require("./task/aggregateScreeningEvent");
105
106
  var AggregateUseActionsOnEventTaskFactory = require("./task/aggregateUseActionsOnEvent");
@@ -389,3 +390,4 @@ exports.transactionStatusType = transactionStatusType_1.TransactionStatusType;
389
390
  exports.transactionTasksExportationStatus = transactionTasksExportationStatus_1.TransactionTasksExportationStatus;
390
391
  exports.assetTransactionType = assetTransactionType_1.AssetTransactionType;
391
392
  exports.unitCode = unitCode_1.UnitCode;
393
+ exports.unitPriceOffer = UnitPriceOfferFactory;
package/lib/offer.d.ts CHANGED
@@ -1,27 +1,17 @@
1
- import { ActionType } from './actionType';
2
1
  import { ICategoryCode } from './categoryCode';
3
2
  import { ItemAvailability } from './itemAvailability';
4
3
  import { IMonetaryAmount } from './monetaryAmount';
5
4
  import { OfferType } from './offerType';
6
5
  import { OrganizationType } from './organizationType';
7
- import { IAmount as IPermitAmount, IDepositAmount, IPaymentAmount } from './permit';
8
6
  import { PriceCurrency } from './priceCurrency';
9
7
  import { IPriceSpecification } from './priceSpecification';
10
- import { IPriceSpecification as ICategoryCodeChargeSpecification } from './priceSpecification/categoryCodeChargeSpecification';
11
- import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
12
- import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from './priceSpecification/movieTicketTypeChargeSpecification';
13
- import { IAppliesToMovieTicket, IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
14
8
  import { PriceSpecificationType } from './priceSpecificationType';
15
- import { IPointAwardAmount, ProductType } from './product';
16
9
  import { IProject } from './project';
17
10
  import { IPropertyValue } from './propertyValue';
18
11
  import { IQuantitativeValue } from './quantitativeValue';
19
12
  import * as WebAPIFactory from './service/webAPI';
20
- import { SortType } from './sortType';
21
13
  import { IThing } from './thing';
22
14
  import { UnitCode } from './unitCode';
23
- import { IOfferMerchantReturnPolicy, IOfferMerchantReturnPolicySearchConditions, IOfferMerchantReturnPolicySortOrder } from './offer/merchantReturnPolicy';
24
- import * as SeatReservationOfferFactory from './offer/seatReservation';
25
15
  /**
26
16
  * オファーカテゴリー
27
17
  */
@@ -30,10 +20,6 @@ export interface ICategory {
30
20
  id?: string;
31
21
  codeValue?: string;
32
22
  }
33
- /**
34
- * アドオン
35
- */
36
- export declare type IAddOn = IOffer;
37
23
  export declare type IEligibleCategoryCode = Pick<ICategoryCode, 'project' | 'typeOf' | 'id' | 'codeValue' | 'inCodeSet'>;
38
24
  export declare type IEligibleMonetaryAmount = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'>;
39
25
  /**
@@ -67,17 +53,30 @@ export interface IValidRateLimit {
67
53
  scope: string;
68
54
  unitInSeconds: number;
69
55
  }
70
- export declare type IHasMerchantReturnPolicy = (Pick<IOfferMerchantReturnPolicy, 'typeOf' | 'id' | 'identifier' | 'name'> & {
71
- id: string;
72
- identifier: string;
73
- })[];
74
- export { IOfferMerchantReturnPolicy, IOfferMerchantReturnPolicySearchConditions, IOfferMerchantReturnPolicySortOrder };
75
56
  export interface IAvailableAtOrFrom {
76
57
  /**
77
58
  * アプリケーションID
78
59
  */
79
60
  id: string;
80
61
  }
62
+ /**
63
+ * アドオン
64
+ */
65
+ export interface IAddOn {
66
+ /**
67
+ * コード
68
+ */
69
+ identifier?: string;
70
+ project: Pick<IProject, 'id' | 'typeOf'>;
71
+ typeOf: OfferType.Offer;
72
+ id?: string;
73
+ availableAtOrFrom?: IAvailableAtOrFrom[];
74
+ itemOffered?: any;
75
+ priceCurrency: PriceCurrency;
76
+ priceSpecification?: IPriceSpecification<PriceSpecificationType>;
77
+ validFrom?: Date;
78
+ validThrough?: Date;
79
+ }
81
80
  /**
82
81
  * offer interface
83
82
  * An offer to transfer some rights to an item or to provide a service
@@ -121,7 +120,6 @@ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternate
121
120
  /**
122
121
  * 有効な顧客タイプ
123
122
  */
124
- eligibleCustomerType?: any;
125
123
  /**
126
124
  * 有効なメンバーシップタイプ
127
125
  */
@@ -147,10 +145,6 @@ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternate
147
145
  * オファーの有効となる数
148
146
  */
149
147
  eligibleQuantity?: IQuantitativeValue<UnitCode>;
150
- /**
151
- * オファーが有効となる地域
152
- */
153
- hasMerchantReturnPolicy?: IHasMerchantReturnPolicy;
154
148
  /**
155
149
  * The item being offered.
156
150
  */
@@ -198,204 +192,3 @@ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternate
198
192
  */
199
193
  additionalProperty?: IPropertyValue<string>[];
200
194
  }
201
- /**
202
- * 単価オファーの提供アイテム
203
- */
204
- export interface IItemOffered {
205
- typeOf: ProductType;
206
- serviceOutput?: {
207
- /**
208
- * アウトプットタイプ
209
- * メンバーシップ区分、決済方法区分など
210
- * プロダクト側で定義されるはず
211
- */
212
- /**
213
- * ペイメントカード初期金額
214
- */
215
- amount?: IPermitAmount;
216
- /**
217
- * ペイメントカード入金設定
218
- */
219
- depositAmount?: IDepositAmount;
220
- /**
221
- * ペイメントカード決済設定
222
- */
223
- paymentAmount?: IPaymentAmount;
224
- };
225
- /**
226
- * 特典
227
- */
228
- pointAward?: {
229
- /**
230
- * 付与金額
231
- */
232
- amount?: IPointAwardAmount;
233
- /**
234
- * 特典説明
235
- */
236
- description?: string;
237
- typeOf: ActionType.MoneyTransfer;
238
- };
239
- }
240
- /**
241
- * 単価オファーの価格仕様
242
- */
243
- export declare type IUnitPriceOfferPriceSpecification = Omit<IUnitPriceSpecification, 'appliesToMovieTicket'> & {
244
- appliesToMovieTicket?: IAppliesToMovieTicket[];
245
- };
246
- /**
247
- * 単価オファー
248
- */
249
- export interface IUnitPriceOffer extends Omit<IOffer, 'seller'> {
250
- /**
251
- * コード
252
- */
253
- identifier: string;
254
- /**
255
- * 単価仕様
256
- */
257
- priceSpecification?: IUnitPriceOfferPriceSpecification;
258
- itemOffered?: IItemOffered;
259
- }
260
- /**
261
- * ソート条件
262
- */
263
- export interface ISortOrder {
264
- 'priceSpecification.price'?: SortType;
265
- }
266
- /**
267
- * 価格仕様検索条件
268
- */
269
- export interface IPriceSpecificationSearchConditions {
270
- appliesToMovieTicket?: {
271
- /**
272
- * 適用決済カード区分
273
- */
274
- serviceType?: {
275
- $eq?: string;
276
- };
277
- serviceOutput?: {
278
- /**
279
- * 適用決済方法タイプ
280
- */
281
- typeOf?: {
282
- $eq?: string;
283
- };
284
- };
285
- };
286
- price?: {
287
- $gte?: number;
288
- $lte?: number;
289
- };
290
- referenceQuantity?: {
291
- value?: {
292
- $eq?: number;
293
- };
294
- };
295
- accounting?: {
296
- accountsReceivable?: {
297
- $gte?: number;
298
- $lte?: number;
299
- };
300
- operatingRevenue?: {
301
- codeValue?: {
302
- $eq?: string;
303
- $in?: string[];
304
- };
305
- };
306
- };
307
- }
308
- /**
309
- * 検索条件
310
- */
311
- export interface ISearchConditions {
312
- limit?: number;
313
- page?: number;
314
- sort?: ISortOrder;
315
- addOn?: {
316
- itemOffered?: {
317
- /**
318
- * アドオンプロダクトID
319
- */
320
- id?: {
321
- $eq?: string;
322
- };
323
- };
324
- };
325
- availableAtOrFrom?: {
326
- id?: {
327
- $eq?: string;
328
- $in?: string[];
329
- };
330
- };
331
- project?: {
332
- id?: {
333
- $eq?: string;
334
- };
335
- };
336
- eligibleMembershipType?: {
337
- /**
338
- * 適用メンバーシップ区分
339
- */
340
- codeValue?: {
341
- $eq?: string;
342
- };
343
- };
344
- eligibleMonetaryAmount?: {
345
- /**
346
- * 適用通貨区分
347
- */
348
- currency?: {
349
- $eq?: string;
350
- };
351
- };
352
- eligibleSeatingType?: {
353
- /**
354
- * 適用座席区分
355
- */
356
- codeValue?: {
357
- $eq?: string;
358
- };
359
- };
360
- hasMerchantReturnPolicy?: {
361
- id?: {
362
- $eq?: string;
363
- };
364
- };
365
- id?: {
366
- $eq?: string;
367
- $in?: string[];
368
- };
369
- identifier?: {
370
- $eq?: string;
371
- $in?: string[];
372
- $regex?: string;
373
- };
374
- name?: {
375
- $regex?: string;
376
- };
377
- priceSpecification?: IPriceSpecificationSearchConditions;
378
- category?: {
379
- codeValue?: {
380
- $in?: string[];
381
- };
382
- };
383
- itemOffered?: {
384
- typeOf?: {
385
- $eq?: string;
386
- };
387
- };
388
- }
389
- /**
390
- * 承認時に提供される価格仕様要素
391
- */
392
- export declare type ITicketPriceComponent = ICategoryCodeChargeSpecification | IMovieTicketTypeChargeSpecification | IUnitPriceOfferPriceSpecification;
393
- /**
394
- * 承認時に提供される価格仕様
395
- */
396
- export declare type ITicketPriceSpecification = ICompoundPriceSpecification<ITicketPriceComponent>;
397
- export declare namespace seatReservation {
398
- export import ICOATicketInfo = SeatReservationOfferFactory.ICOATicketInfo;
399
- export import ICOATicketInfoWithDetails = SeatReservationOfferFactory.ICOATicketInfoWithDetails;
400
- export import ICOAOffer = SeatReservationOfferFactory.IOffer;
401
- }
package/lib/offer.js CHANGED
@@ -1,6 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.seatReservation = void 0;
4
- var seatReservation;
5
- (function (seatReservation) {
6
- })(seatReservation = exports.seatReservation || (exports.seatReservation = {}));
package/lib/order.d.ts CHANGED
@@ -7,7 +7,7 @@ import { ICreativeWork as IWebApplication } from './creativeWork/softwareApplica
7
7
  import { ICustomer as ICustomerOrganization } from './customer';
8
8
  import { EventType } from './eventType';
9
9
  import { IMultilingualString } from './multilingualString';
10
- import { IOffer, ITicketPriceSpecification } from './offer';
10
+ import { IOffer } from './offer';
11
11
  import { OrderStatus } from './orderStatus';
12
12
  import { OrganizationType } from './organizationType';
13
13
  import * as PermitFactory from './permit';
@@ -22,6 +22,7 @@ import * as EventReservationFactory from './reservation/event';
22
22
  import { ReservationType } from './reservationType';
23
23
  import { SortType } from './sortType';
24
24
  import { IThing } from './thing';
25
+ import { ITicketPriceSpecification } from './unitPriceOffer';
25
26
  export interface IProject {
26
27
  typeOf: OrganizationType.Project;
27
28
  id: string;
@@ -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
  */
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,215 @@
1
+ import { ActionType } from './actionType';
2
+ import { IAddOn, IOffer } from './offer';
3
+ import { OfferType } from './offerType';
4
+ import { IAmount as IPermitAmount, IDepositAmount, IPaymentAmount } from './permit';
5
+ import { IPriceSpecification as ICategoryCodeChargeSpecification } from './priceSpecification/categoryCodeChargeSpecification';
6
+ import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
7
+ import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from './priceSpecification/movieTicketTypeChargeSpecification';
8
+ import { IAppliesToMovieTicket, IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
9
+ import { IPointAwardAmount, IProduct, ProductType } from './product';
10
+ import { SortType } from './sortType';
11
+ import { IOfferMerchantReturnPolicy, IOfferMerchantReturnPolicySearchConditions, IOfferMerchantReturnPolicySortOrder } from './unitPriceOffer/merchantReturnPolicy';
12
+ export declare type IHasMerchantReturnPolicy = (Pick<IOfferMerchantReturnPolicy, 'typeOf' | 'id' | 'identifier' | 'name'> & {
13
+ id: string;
14
+ identifier: string;
15
+ })[];
16
+ export { IOfferMerchantReturnPolicy, IOfferMerchantReturnPolicySearchConditions, IOfferMerchantReturnPolicySortOrder };
17
+ /**
18
+ * 単価オファーの提供アイテム
19
+ */
20
+ export interface IItemOffered {
21
+ typeOf: ProductType;
22
+ serviceOutput?: {
23
+ /**
24
+ * ペイメントカード初期金額
25
+ */
26
+ amount?: IPermitAmount;
27
+ /**
28
+ * ペイメントカード入金設定
29
+ */
30
+ depositAmount?: IDepositAmount;
31
+ /**
32
+ * ペイメントカード決済設定
33
+ */
34
+ paymentAmount?: IPaymentAmount;
35
+ };
36
+ /**
37
+ * 特典
38
+ */
39
+ pointAward?: {
40
+ /**
41
+ * 付与金額
42
+ */
43
+ amount?: IPointAwardAmount;
44
+ /**
45
+ * 特典説明
46
+ */
47
+ description?: string;
48
+ typeOf: ActionType.MoneyTransfer;
49
+ };
50
+ }
51
+ /**
52
+ * 単価オファーの価格仕様
53
+ */
54
+ export declare type IUnitPriceOfferPriceSpecification = Omit<IUnitPriceSpecification, 'appliesToMovieTicket'> & {
55
+ appliesToMovieTicket?: IAppliesToMovieTicket[];
56
+ };
57
+ export interface IAddOnItemOffered extends Pick<IProduct, 'typeOf' | 'id' | 'name'> {
58
+ }
59
+ export interface IAddOn4unitPriceOffer extends Pick<IAddOn, 'project' | 'typeOf' | 'priceCurrency'> {
60
+ itemOffered: IAddOnItemOffered;
61
+ }
62
+ /**
63
+ * 単価オファー
64
+ */
65
+ export interface IUnitPriceOffer extends Pick<IOffer, 'project' | 'typeOf' | 'priceCurrency' | 'id' | 'identifier' | 'name' | 'description' | 'alternateName' | 'availability' | 'availableAtOrFrom' | 'itemOffered' | 'priceSpecification' | 'addOn' | 'additionalProperty' | 'color' | 'category' | 'eligibleSeatingType' | 'eligibleMembershipType' | 'eligibleMonetaryAmount' | 'eligibleSubReservation' | 'validFrom' | 'validThrough' | 'validRateLimit'> {
66
+ /**
67
+ * コード
68
+ */
69
+ identifier: string;
70
+ /**
71
+ * 単価仕様
72
+ */
73
+ priceSpecification?: IUnitPriceOfferPriceSpecification;
74
+ itemOffered?: IItemOffered;
75
+ addOn?: IAddOn4unitPriceOffer[];
76
+ typeOf: OfferType.Offer;
77
+ hasMerchantReturnPolicy?: IHasMerchantReturnPolicy;
78
+ }
79
+ /**
80
+ * ソート条件
81
+ */
82
+ export interface ISortOrder {
83
+ 'priceSpecification.price'?: SortType;
84
+ }
85
+ /**
86
+ * 価格仕様検索条件
87
+ */
88
+ export interface IPriceSpecificationSearchConditions {
89
+ appliesToMovieTicket?: {
90
+ /**
91
+ * 適用決済カード区分
92
+ */
93
+ serviceType?: {
94
+ $eq?: string;
95
+ };
96
+ serviceOutput?: {
97
+ /**
98
+ * 適用決済方法タイプ
99
+ */
100
+ typeOf?: {
101
+ $eq?: string;
102
+ };
103
+ };
104
+ };
105
+ price?: {
106
+ $gte?: number;
107
+ $lte?: number;
108
+ };
109
+ referenceQuantity?: {
110
+ value?: {
111
+ $eq?: number;
112
+ };
113
+ };
114
+ accounting?: {
115
+ accountsReceivable?: {
116
+ $gte?: number;
117
+ $lte?: number;
118
+ };
119
+ operatingRevenue?: {
120
+ codeValue?: {
121
+ $eq?: string;
122
+ $in?: string[];
123
+ };
124
+ };
125
+ };
126
+ }
127
+ /**
128
+ * 検索条件
129
+ */
130
+ export interface ISearchConditions {
131
+ limit?: number;
132
+ page?: number;
133
+ sort?: ISortOrder;
134
+ addOn?: {
135
+ itemOffered?: {
136
+ /**
137
+ * アドオンプロダクトID
138
+ */
139
+ id?: {
140
+ $eq?: string;
141
+ };
142
+ };
143
+ };
144
+ availableAtOrFrom?: {
145
+ id?: {
146
+ $eq?: string;
147
+ $in?: string[];
148
+ };
149
+ };
150
+ project?: {
151
+ id?: {
152
+ $eq?: string;
153
+ };
154
+ };
155
+ eligibleMembershipType?: {
156
+ /**
157
+ * 適用メンバーシップ区分
158
+ */
159
+ codeValue?: {
160
+ $eq?: string;
161
+ };
162
+ };
163
+ eligibleMonetaryAmount?: {
164
+ /**
165
+ * 適用通貨区分
166
+ */
167
+ currency?: {
168
+ $eq?: string;
169
+ };
170
+ };
171
+ eligibleSeatingType?: {
172
+ /**
173
+ * 適用座席区分
174
+ */
175
+ codeValue?: {
176
+ $eq?: string;
177
+ };
178
+ };
179
+ hasMerchantReturnPolicy?: {
180
+ id?: {
181
+ $eq?: string;
182
+ };
183
+ };
184
+ id?: {
185
+ $eq?: string;
186
+ $in?: string[];
187
+ };
188
+ identifier?: {
189
+ $eq?: string;
190
+ $in?: string[];
191
+ $regex?: string;
192
+ };
193
+ name?: {
194
+ $regex?: string;
195
+ };
196
+ priceSpecification?: IPriceSpecificationSearchConditions;
197
+ category?: {
198
+ codeValue?: {
199
+ $in?: string[];
200
+ };
201
+ };
202
+ itemOffered?: {
203
+ typeOf?: {
204
+ $eq?: string;
205
+ };
206
+ };
207
+ }
208
+ /**
209
+ * 承認時に提供される価格仕様要素
210
+ */
211
+ export declare type ITicketPriceComponent = ICategoryCodeChargeSpecification | IMovieTicketTypeChargeSpecification | IUnitPriceOfferPriceSpecification;
212
+ /**
213
+ * 承認時に提供される価格仕様
214
+ */
215
+ export declare type ITicketPriceSpecification = ICompoundPriceSpecification<ITicketPriceComponent>;
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",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",