@chevre/factory 4.272.0-alpha.2 → 4.273.1
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/action/authorize/offer/product.d.ts +3 -2
- package/lib/{offer/seatReservation.d.ts → action/authorize/offer/seatReservation/coa.d.ts} +0 -0
- package/lib/{offer/merchantReturnPolicy.js → action/authorize/offer/seatReservation/coa.js} +0 -0
- package/lib/action/authorize/offer/seatReservation.d.ts +8 -5
- package/lib/event/screeningEvent.d.ts +5 -4
- package/lib/index.d.ts +2 -1
- package/lib/index.js +3 -1
- package/lib/offer.d.ts +0 -228
- package/lib/offer.js +0 -4
- package/lib/order.d.ts +3 -2
- package/lib/place/seat.d.ts +1 -1
- package/lib/priceSpecification/compoundPriceSpecification.d.ts +3 -14
- package/lib/reservation/event.d.ts +1 -1
- package/lib/reservation/reservationPackage.d.ts +1 -1
- package/lib/reservation.d.ts +1 -1
- package/lib/{offer → unitPriceOffer}/merchantReturnPolicy.d.ts +0 -0
- package/lib/unitPriceOffer/merchantReturnPolicy.js +2 -0
- package/lib/unitPriceOffer.d.ts +215 -0
- package/lib/{offer/seatReservation.js → unitPriceOffer.js} +0 -0
- package/package.json +1 -1
|
@@ -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
|
|
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;
|
|
@@ -17,7 +18,7 @@ export declare type IItemOffered = Pick<IProduct, 'project' | 'typeOf' | 'id' |
|
|
|
17
18
|
};
|
|
18
19
|
export declare type IAcceptedOfferWithoutDetail = RegisterServiceTransactionFactory.IAcceptedOfferWithoutDetail;
|
|
19
20
|
export declare type ISellerMakesOffer = Pick<ISeller, 'project' | 'id' | 'name' | 'typeOf'>;
|
|
20
|
-
export interface IAcceptedOffer extends Pick<IOffer, 'project' | 'typeOf' | 'id' | 'identifier' | 'itemOffered' | 'name' | 'priceCurrency' | '
|
|
21
|
+
export interface IAcceptedOffer extends Pick<IOffer, 'project' | 'typeOf' | 'id' | 'identifier' | 'itemOffered' | 'name' | 'priceCurrency' | 'seller'> {
|
|
21
22
|
/**
|
|
22
23
|
* オファーコード
|
|
23
24
|
*/
|
|
File without changes
|
|
File without changes
|
|
@@ -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 {
|
|
@@ -60,23 +62,24 @@ export declare type IAcceptedOfferPriceSpecification = ScreeningEventFactory.ITi
|
|
|
60
62
|
export declare type IAcceptedOffer4chevre = Pick<ScreeningEventFactory.ITicketOffer, 'id' | 'identifier' | 'typeOf' | 'priceCurrency' | 'itemOffered' | 'addOn' | 'additionalProperty'> & Pick<ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail, 'id' | 'addOn' | 'additionalProperty' | 'paymentMethod'> & {
|
|
61
63
|
itemOffered?: ReserveTransactionFactory.IAcceptedTicketOfferItemOffered;
|
|
62
64
|
priceSpecification: IAcceptedOfferPriceSpecification;
|
|
63
|
-
movieTicketIdentifire?: string;
|
|
64
65
|
};
|
|
65
66
|
export declare type IAcceptedOfferWithoutDetail4chevre = ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail;
|
|
66
67
|
export declare type IObjectWithoutDetail4chevre = ReserveTransactionFactory.IObjectWithoutDetail;
|
|
68
|
+
export import ICOATicketInfo = COAReservationOfferFactory.ICOATicketInfo;
|
|
69
|
+
export import ICOATicketInfoWithDetails = COAReservationOfferFactory.ICOATicketInfoWithDetails;
|
|
67
70
|
/**
|
|
68
|
-
* COA
|
|
71
|
+
* 受入COA興行オファー
|
|
69
72
|
*/
|
|
70
73
|
export declare type IAcceptedOffer4COA = Pick<ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail, 'id' | 'itemOffered' | 'additionalProperty'> & Pick<OfferFactory.IOffer, 'typeOf' | 'id' | 'identifier' | 'name' | 'priceCurrency' | 'seller' | 'additionalProperty' | 'eligibleMonetaryAmount'> & {
|
|
71
74
|
itemOffered: ReserveTransactionFactory.IAcceptedTicketOfferItemOffered;
|
|
72
|
-
ticketInfo:
|
|
75
|
+
ticketInfo: ICOATicketInfoWithDetails;
|
|
73
76
|
/**
|
|
74
77
|
* COAイベントでは、priceSpecificationで価格を表現しきれないので、numberとしてのpriceが必要
|
|
75
78
|
*/
|
|
76
79
|
price: number;
|
|
77
|
-
priceSpecification?:
|
|
80
|
+
priceSpecification?: ITicketPriceSpecification;
|
|
78
81
|
};
|
|
79
|
-
export declare type IAcceptedOfferWithoutDetail4COA =
|
|
82
|
+
export declare type IAcceptedOfferWithoutDetail4COA = COAReservationOfferFactory.IOffer;
|
|
80
83
|
export interface IObjectWithoutDetail4COA {
|
|
81
84
|
acceptedOffer: IAcceptedOfferWithoutDetail4COA[];
|
|
82
85
|
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 =
|
|
148
|
-
export import ITicketPriceSpecification =
|
|
148
|
+
export import ITicketPriceComponent = UnitPriceOfferFactory.ITicketPriceComponent;
|
|
149
|
+
export import ITicketPriceSpecification = UnitPriceOfferFactory.ITicketPriceSpecification;
|
|
149
150
|
/**
|
|
150
151
|
* チケットオファー
|
|
151
152
|
*/
|
|
152
|
-
export interface ITicketOffer extends OfferFactory.IOffer {
|
|
153
|
+
export interface ITicketOffer extends Omit<OfferFactory.IOffer, 'priceSpecification'> {
|
|
153
154
|
identifier: string;
|
|
154
155
|
priceSpecification: ITicketPriceSpecification;
|
|
155
|
-
itemOffered?:
|
|
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';
|
|
@@ -346,7 +347,6 @@ export declare namespace priceSpecification {
|
|
|
346
347
|
}
|
|
347
348
|
export declare namespace compoundPriceSpecification {
|
|
348
349
|
type IPriceSpecification<T extends PriceSpecificationType> = CompoundPriceSpecificationFactory.IPriceSpecification<priceSpecification.IPriceSpecification<T>>;
|
|
349
|
-
type ISearchConditions<T extends PriceSpecificationType> = CompoundPriceSpecificationFactory.ISearchConditions<T>;
|
|
350
350
|
}
|
|
351
351
|
export import priceSpecificationType = PriceSpecificationType;
|
|
352
352
|
export import programMembership = ProgramMembershipFactory;
|
|
@@ -449,3 +449,4 @@ export import transactionStatusType = TransactionStatusType;
|
|
|
449
449
|
export import transactionTasksExportationStatus = TransactionTasksExportationStatus;
|
|
450
450
|
export import assetTransactionType = AssetTransactionType;
|
|
451
451
|
export import unitCode = UnitCode;
|
|
452
|
+
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, IProduct, 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
|
*/
|
|
@@ -63,11 +53,6 @@ export interface IValidRateLimit {
|
|
|
63
53
|
scope: string;
|
|
64
54
|
unitInSeconds: number;
|
|
65
55
|
}
|
|
66
|
-
export declare type IHasMerchantReturnPolicy = (Pick<IOfferMerchantReturnPolicy, 'typeOf' | 'id' | 'identifier' | 'name'> & {
|
|
67
|
-
id: string;
|
|
68
|
-
identifier: string;
|
|
69
|
-
})[];
|
|
70
|
-
export { IOfferMerchantReturnPolicy, IOfferMerchantReturnPolicySearchConditions, IOfferMerchantReturnPolicySortOrder };
|
|
71
56
|
export interface IAvailableAtOrFrom {
|
|
72
57
|
/**
|
|
73
58
|
* アプリケーションID
|
|
@@ -135,7 +120,6 @@ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternate
|
|
|
135
120
|
/**
|
|
136
121
|
* 有効な顧客タイプ
|
|
137
122
|
*/
|
|
138
|
-
eligibleCustomerType?: any;
|
|
139
123
|
/**
|
|
140
124
|
* 有効なメンバーシップタイプ
|
|
141
125
|
*/
|
|
@@ -161,10 +145,6 @@ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternate
|
|
|
161
145
|
* オファーの有効となる数
|
|
162
146
|
*/
|
|
163
147
|
eligibleQuantity?: IQuantitativeValue<UnitCode>;
|
|
164
|
-
/**
|
|
165
|
-
* オファーが有効となる地域
|
|
166
|
-
*/
|
|
167
|
-
hasMerchantReturnPolicy?: IHasMerchantReturnPolicy;
|
|
168
148
|
/**
|
|
169
149
|
* The item being offered.
|
|
170
150
|
*/
|
|
@@ -212,211 +192,3 @@ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternate
|
|
|
212
192
|
*/
|
|
213
193
|
additionalProperty?: IPropertyValue<string>[];
|
|
214
194
|
}
|
|
215
|
-
/**
|
|
216
|
-
* 単価オファーの提供アイテム
|
|
217
|
-
*/
|
|
218
|
-
export interface IItemOffered {
|
|
219
|
-
typeOf: ProductType;
|
|
220
|
-
serviceOutput?: {
|
|
221
|
-
/**
|
|
222
|
-
* アウトプットタイプ
|
|
223
|
-
* メンバーシップ区分、決済方法区分など
|
|
224
|
-
* プロダクト側で定義されるはず
|
|
225
|
-
*/
|
|
226
|
-
/**
|
|
227
|
-
* ペイメントカード初期金額
|
|
228
|
-
*/
|
|
229
|
-
amount?: IPermitAmount;
|
|
230
|
-
/**
|
|
231
|
-
* ペイメントカード入金設定
|
|
232
|
-
*/
|
|
233
|
-
depositAmount?: IDepositAmount;
|
|
234
|
-
/**
|
|
235
|
-
* ペイメントカード決済設定
|
|
236
|
-
*/
|
|
237
|
-
paymentAmount?: IPaymentAmount;
|
|
238
|
-
};
|
|
239
|
-
/**
|
|
240
|
-
* 特典
|
|
241
|
-
*/
|
|
242
|
-
pointAward?: {
|
|
243
|
-
/**
|
|
244
|
-
* 付与金額
|
|
245
|
-
*/
|
|
246
|
-
amount?: IPointAwardAmount;
|
|
247
|
-
/**
|
|
248
|
-
* 特典説明
|
|
249
|
-
*/
|
|
250
|
-
description?: string;
|
|
251
|
-
typeOf: ActionType.MoneyTransfer;
|
|
252
|
-
};
|
|
253
|
-
}
|
|
254
|
-
/**
|
|
255
|
-
* 単価オファーの価格仕様
|
|
256
|
-
*/
|
|
257
|
-
export declare type IUnitPriceOfferPriceSpecification = Omit<IUnitPriceSpecification, 'appliesToMovieTicket'> & {
|
|
258
|
-
appliesToMovieTicket?: IAppliesToMovieTicket[];
|
|
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
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* 単価オファー
|
|
267
|
-
*/
|
|
268
|
-
export interface IUnitPriceOffer extends Omit<IOffer, 'seller'> {
|
|
269
|
-
/**
|
|
270
|
-
* コード
|
|
271
|
-
*/
|
|
272
|
-
identifier: string;
|
|
273
|
-
/**
|
|
274
|
-
* 単価仕様
|
|
275
|
-
*/
|
|
276
|
-
priceSpecification?: IUnitPriceOfferPriceSpecification;
|
|
277
|
-
itemOffered?: IItemOffered;
|
|
278
|
-
addOn?: IAddOn4unitPriceOffer[];
|
|
279
|
-
typeOf: OfferType.Offer;
|
|
280
|
-
}
|
|
281
|
-
/**
|
|
282
|
-
* ソート条件
|
|
283
|
-
*/
|
|
284
|
-
export interface ISortOrder {
|
|
285
|
-
'priceSpecification.price'?: SortType;
|
|
286
|
-
}
|
|
287
|
-
/**
|
|
288
|
-
* 価格仕様検索条件
|
|
289
|
-
*/
|
|
290
|
-
export interface IPriceSpecificationSearchConditions {
|
|
291
|
-
appliesToMovieTicket?: {
|
|
292
|
-
/**
|
|
293
|
-
* 適用決済カード区分
|
|
294
|
-
*/
|
|
295
|
-
serviceType?: {
|
|
296
|
-
$eq?: string;
|
|
297
|
-
};
|
|
298
|
-
serviceOutput?: {
|
|
299
|
-
/**
|
|
300
|
-
* 適用決済方法タイプ
|
|
301
|
-
*/
|
|
302
|
-
typeOf?: {
|
|
303
|
-
$eq?: string;
|
|
304
|
-
};
|
|
305
|
-
};
|
|
306
|
-
};
|
|
307
|
-
price?: {
|
|
308
|
-
$gte?: number;
|
|
309
|
-
$lte?: number;
|
|
310
|
-
};
|
|
311
|
-
referenceQuantity?: {
|
|
312
|
-
value?: {
|
|
313
|
-
$eq?: number;
|
|
314
|
-
};
|
|
315
|
-
};
|
|
316
|
-
accounting?: {
|
|
317
|
-
accountsReceivable?: {
|
|
318
|
-
$gte?: number;
|
|
319
|
-
$lte?: number;
|
|
320
|
-
};
|
|
321
|
-
operatingRevenue?: {
|
|
322
|
-
codeValue?: {
|
|
323
|
-
$eq?: string;
|
|
324
|
-
$in?: string[];
|
|
325
|
-
};
|
|
326
|
-
};
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
|
-
/**
|
|
330
|
-
* 検索条件
|
|
331
|
-
*/
|
|
332
|
-
export interface ISearchConditions {
|
|
333
|
-
limit?: number;
|
|
334
|
-
page?: number;
|
|
335
|
-
sort?: ISortOrder;
|
|
336
|
-
addOn?: {
|
|
337
|
-
itemOffered?: {
|
|
338
|
-
/**
|
|
339
|
-
* アドオンプロダクトID
|
|
340
|
-
*/
|
|
341
|
-
id?: {
|
|
342
|
-
$eq?: string;
|
|
343
|
-
};
|
|
344
|
-
};
|
|
345
|
-
};
|
|
346
|
-
availableAtOrFrom?: {
|
|
347
|
-
id?: {
|
|
348
|
-
$eq?: string;
|
|
349
|
-
$in?: string[];
|
|
350
|
-
};
|
|
351
|
-
};
|
|
352
|
-
project?: {
|
|
353
|
-
id?: {
|
|
354
|
-
$eq?: string;
|
|
355
|
-
};
|
|
356
|
-
};
|
|
357
|
-
eligibleMembershipType?: {
|
|
358
|
-
/**
|
|
359
|
-
* 適用メンバーシップ区分
|
|
360
|
-
*/
|
|
361
|
-
codeValue?: {
|
|
362
|
-
$eq?: string;
|
|
363
|
-
};
|
|
364
|
-
};
|
|
365
|
-
eligibleMonetaryAmount?: {
|
|
366
|
-
/**
|
|
367
|
-
* 適用通貨区分
|
|
368
|
-
*/
|
|
369
|
-
currency?: {
|
|
370
|
-
$eq?: string;
|
|
371
|
-
};
|
|
372
|
-
};
|
|
373
|
-
eligibleSeatingType?: {
|
|
374
|
-
/**
|
|
375
|
-
* 適用座席区分
|
|
376
|
-
*/
|
|
377
|
-
codeValue?: {
|
|
378
|
-
$eq?: string;
|
|
379
|
-
};
|
|
380
|
-
};
|
|
381
|
-
hasMerchantReturnPolicy?: {
|
|
382
|
-
id?: {
|
|
383
|
-
$eq?: string;
|
|
384
|
-
};
|
|
385
|
-
};
|
|
386
|
-
id?: {
|
|
387
|
-
$eq?: string;
|
|
388
|
-
$in?: string[];
|
|
389
|
-
};
|
|
390
|
-
identifier?: {
|
|
391
|
-
$eq?: string;
|
|
392
|
-
$in?: string[];
|
|
393
|
-
$regex?: string;
|
|
394
|
-
};
|
|
395
|
-
name?: {
|
|
396
|
-
$regex?: string;
|
|
397
|
-
};
|
|
398
|
-
priceSpecification?: IPriceSpecificationSearchConditions;
|
|
399
|
-
category?: {
|
|
400
|
-
codeValue?: {
|
|
401
|
-
$in?: string[];
|
|
402
|
-
};
|
|
403
|
-
};
|
|
404
|
-
itemOffered?: {
|
|
405
|
-
typeOf?: {
|
|
406
|
-
$eq?: string;
|
|
407
|
-
};
|
|
408
|
-
};
|
|
409
|
-
}
|
|
410
|
-
/**
|
|
411
|
-
* 承認時に提供される価格仕様要素
|
|
412
|
-
*/
|
|
413
|
-
export declare type ITicketPriceComponent = ICategoryCodeChargeSpecification | IMovieTicketTypeChargeSpecification | IUnitPriceOfferPriceSpecification;
|
|
414
|
-
/**
|
|
415
|
-
* 承認時に提供される価格仕様
|
|
416
|
-
*/
|
|
417
|
-
export declare type ITicketPriceSpecification = ICompoundPriceSpecification<ITicketPriceComponent>;
|
|
418
|
-
export declare namespace seatReservation {
|
|
419
|
-
export import ICOATicketInfo = SeatReservationOfferFactory.ICOATicketInfo;
|
|
420
|
-
export import ICOATicketInfoWithDetails = SeatReservationOfferFactory.ICOATicketInfoWithDetails;
|
|
421
|
-
export import ICOAOffer = SeatReservationOfferFactory.IOffer;
|
|
422
|
-
}
|
package/lib/offer.js
CHANGED
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
|
|
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;
|
|
@@ -129,7 +130,7 @@ export interface IMoneyTransfer {
|
|
|
129
130
|
* 注文アイテム
|
|
130
131
|
*/
|
|
131
132
|
export declare type IItemOffered = IMoneyTransfer | IReservation | IPermit;
|
|
132
|
-
export declare type IOfferOptimized4acceptedOffer = Pick<IOffer, 'project' | 'typeOf' | 'id' | 'itemOffered' | 'offeredThrough' | 'priceCurrency'
|
|
133
|
+
export declare type IOfferOptimized4acceptedOffer = Pick<IOffer, 'project' | 'typeOf' | 'id' | 'itemOffered' | 'offeredThrough' | 'priceCurrency'>;
|
|
133
134
|
/**
|
|
134
135
|
* 受け入れオファー
|
|
135
136
|
*/
|
package/lib/place/seat.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare type IPriceSpecification = ICompoundPriceSpecification<IPriceComp
|
|
|
16
16
|
/**
|
|
17
17
|
* 座席オファーインターフェース
|
|
18
18
|
*/
|
|
19
|
-
export interface IOffer extends OfferFactory.IOffer {
|
|
19
|
+
export interface IOffer extends Omit<OfferFactory.IOffer, 'priceSpecification'> {
|
|
20
20
|
availability: ItemAvailability;
|
|
21
21
|
priceSpecification?: IPriceSpecification;
|
|
22
22
|
}
|
|
@@ -1,22 +1,11 @@
|
|
|
1
|
-
import { IPriceSpecification as BaseSpecification
|
|
1
|
+
import { IPriceSpecification as BaseSpecification } from '../priceSpecification';
|
|
2
2
|
import { PriceSpecificationType } from '../priceSpecificationType';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* 複合価格仕様
|
|
5
5
|
*/
|
|
6
|
-
export declare type IPriceSpecification<T extends BaseSpecification<PriceSpecificationType>> = BaseSpecification<PriceSpecificationType.CompoundPriceSpecification> & {
|
|
6
|
+
export declare type IPriceSpecification<T extends BaseSpecification<PriceSpecificationType>> = Pick<BaseSpecification<PriceSpecificationType.CompoundPriceSpecification>, 'typeOf' | 'priceCurrency' | 'valueAddedTaxIncluded'> & {
|
|
7
7
|
/**
|
|
8
8
|
* 価格要素
|
|
9
9
|
*/
|
|
10
10
|
priceComponent: T[];
|
|
11
11
|
};
|
|
12
|
-
/**
|
|
13
|
-
* 検索条件インターフェース
|
|
14
|
-
*/
|
|
15
|
-
export interface ISearchConditions<T extends PriceSpecificationType> extends IBaseSearchConditions<PriceSpecificationType.CompoundPriceSpecification> {
|
|
16
|
-
/**
|
|
17
|
-
* 価格仕様要素
|
|
18
|
-
*/
|
|
19
|
-
priceComponent?: {
|
|
20
|
-
typeOf: T;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
@@ -38,7 +38,7 @@ export interface IReservationFor {
|
|
|
38
38
|
doorTime?: Date;
|
|
39
39
|
}
|
|
40
40
|
export declare type IPriceComponentSpecification = ICategoryCodeChargeSpecification | IMovieTicketTypeChargeSpecification | IUnitPriceSpecification;
|
|
41
|
-
export declare type IPriceSpecification = ICompoundPriceSpecification<IPriceComponentSpecification>;
|
|
41
|
+
export declare type IPriceSpecification = Omit<ICompoundPriceSpecification<IPriceComponentSpecification>, 'project'>;
|
|
42
42
|
export interface ISubReservation {
|
|
43
43
|
reservedTicket: {
|
|
44
44
|
typeOf: ReservationFactory.TicketType;
|
|
@@ -2,7 +2,7 @@ import { IPriceSpecification as IGenericPriceSpecification } from '../priceSpeci
|
|
|
2
2
|
import { PriceSpecificationType } from '../priceSpecificationType';
|
|
3
3
|
import * as ReservationFactory from '../reservation';
|
|
4
4
|
import { ReservationType } from '../reservationType';
|
|
5
|
-
export declare type IPriceSpecification = IGenericPriceSpecification<PriceSpecificationType>;
|
|
5
|
+
export declare type IPriceSpecification = Omit<IGenericPriceSpecification<PriceSpecificationType>, 'project'>;
|
|
6
6
|
export declare type ISubReservation = ReservationFactory.IReservation<IPriceSpecification>;
|
|
7
7
|
/**
|
|
8
8
|
* 予約パッケージインターフェース
|
package/lib/reservation.d.ts
CHANGED
|
@@ -180,7 +180,7 @@ export interface IIssuedThrough {
|
|
|
180
180
|
* For offers of tickets, restaurant reservations, flights, or rental cars, use Offer.
|
|
181
181
|
* {@link https://schema.org/Reservation}
|
|
182
182
|
*/
|
|
183
|
-
export interface IReservation<T extends IPriceSpecification
|
|
183
|
+
export interface IReservation<T extends Omit<IPriceSpecification, 'project'>> extends Pick<IThing, 'identifier' | 'name'> {
|
|
184
184
|
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
185
185
|
/**
|
|
186
186
|
* type of object
|
|
File without changes
|
|
@@ -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 = Omit<ICompoundPriceSpecification<ITicketPriceComponent>, 'project'>;
|
|
File without changes
|