@chevre/factory 11.0.0 → 11.1.0-alpha.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/chevre/acceptedOffer.d.ts +171 -0
- package/lib/chevre/acceptedOffer.js +3 -0
- package/lib/chevre/action/accept/coaOffer.d.ts +1 -1
- package/lib/chevre/action/interact/inform.d.ts +2 -2
- package/lib/chevre/index.d.ts +2 -0
- package/lib/chevre/index.js +4 -2
- package/lib/chevre/invoice.d.ts +2 -1
- package/lib/chevre/notification/order.d.ts +12 -7
- package/lib/chevre/notification/place.d.ts +3 -3
- package/lib/chevre/order.d.ts +1 -176
- package/lib/chevre/task/triggerWebhook.d.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import type { COAFactory } from '@coasystems/factory';
|
|
2
|
+
import { ICategoryChargePriceComponent, IMovieTicketTypeChargePriceComponent, IUnitPriceComponent, IIssuedThrough, ITicketType, IOptimizedSuperEventLegacy, IOptimizedWorkPerformedLegacy, IReservationForLegacy } from './assetTransaction/reserve';
|
|
3
|
+
import { ICOAInfo, ISuperEvent as IEventSeries } from './event/screeningEvent';
|
|
4
|
+
import { OfferType } from './offerType';
|
|
5
|
+
import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
|
|
6
|
+
import { ProductType } from './product';
|
|
7
|
+
import { IPropertyValue } from './propertyValue';
|
|
8
|
+
import { IReservation as IRawReservation, IReservedTicket as IRawReservedTicket } from './reservation/event';
|
|
9
|
+
import { IService, Identifier } from './service/webAPI';
|
|
10
|
+
export type IWorkPerformed = Pick<IOptimizedWorkPerformedLegacy, 'typeOf' | 'id' | 'identifier' | 'name' | 'duration'>;
|
|
11
|
+
export type ISuperEvent = Pick<IOptimizedSuperEventLegacy, 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'headline'> & {
|
|
12
|
+
workPerformed: IWorkPerformed;
|
|
13
|
+
identifier?: never;
|
|
14
|
+
alternativeHeadline?: never;
|
|
15
|
+
duration?: never;
|
|
16
|
+
coaInfo?: never;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* COAの場合の施設コンテンツ
|
|
20
|
+
*/
|
|
21
|
+
export type ICOASuperEvent = Pick<IOptimizedSuperEventLegacy, 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'headline'> & Pick<IEventSeries, 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
|
|
22
|
+
workPerformed: IWorkPerformed;
|
|
23
|
+
};
|
|
24
|
+
export type IEventAsReservationFor = Omit<IReservationForLegacy, 'superEvent' | 'identifier' | 'coaInfo'> & {
|
|
25
|
+
superEvent: ISuperEvent;
|
|
26
|
+
/**
|
|
27
|
+
* COA予約でのみ使用されている
|
|
28
|
+
*/
|
|
29
|
+
identifier?: never;
|
|
30
|
+
/**
|
|
31
|
+
* その他COA情報
|
|
32
|
+
* 基本的にsskts対応
|
|
33
|
+
*/
|
|
34
|
+
coaInfo?: never;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* COAの場合のイベント
|
|
38
|
+
*/
|
|
39
|
+
export type ICOAEventAsReservationFor = Omit<IReservationForLegacy, 'superEvent' | 'identifier' | 'coaInfo'> & {
|
|
40
|
+
superEvent: ICOASuperEvent;
|
|
41
|
+
/**
|
|
42
|
+
* COA予約でのみ使用されている
|
|
43
|
+
*/
|
|
44
|
+
identifier?: string;
|
|
45
|
+
/**
|
|
46
|
+
* その他COA情報
|
|
47
|
+
* 基本的にsskts対応
|
|
48
|
+
*/
|
|
49
|
+
coaInfo?: ICOAInfo;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* COA券種情報
|
|
53
|
+
*/
|
|
54
|
+
export type ICOATicketInfoWithDetails = COAFactory.reserve.IUpdReserveTicket & {
|
|
55
|
+
/**
|
|
56
|
+
* チケット名
|
|
57
|
+
*/
|
|
58
|
+
ticketName: string;
|
|
59
|
+
/**
|
|
60
|
+
* チケット名(カナ)
|
|
61
|
+
*/
|
|
62
|
+
ticketNameKana: string;
|
|
63
|
+
/**
|
|
64
|
+
* チケット名(英)
|
|
65
|
+
*/
|
|
66
|
+
ticketNameEng: string;
|
|
67
|
+
/**
|
|
68
|
+
* ポイント割引の場合の消費ポイント
|
|
69
|
+
*/
|
|
70
|
+
usePoint: number;
|
|
71
|
+
};
|
|
72
|
+
export type ITicketTypeInOrder = Pick<ITicketType, 'id' | 'identifier' | 'name' | 'typeOf' | 'additionalProperty' | 'description'>;
|
|
73
|
+
export type IReservedTicket = Pick<IRawReservedTicket, 'typeOf' | 'ticketedSeat' | 'identifier'> & {
|
|
74
|
+
ticketType: ITicketTypeInOrder;
|
|
75
|
+
ticketNumber?: never;
|
|
76
|
+
dateIssued?: never;
|
|
77
|
+
ticketToken?: never;
|
|
78
|
+
coaTicketInfo?: never;
|
|
79
|
+
coaReserveAmount?: never;
|
|
80
|
+
};
|
|
81
|
+
export type ICOATicketType = Pick<ITicketType, 'id' | 'identifier' | 'name' | 'typeOf'>;
|
|
82
|
+
/**
|
|
83
|
+
* COAの場合の予約チケット
|
|
84
|
+
*/
|
|
85
|
+
export type ICOAReservedTicket = Pick<IRawReservedTicket, 'typeOf' | 'ticketedSeat' | 'identifier' | // 追加(2024-04-15~)
|
|
86
|
+
'dateIssued'> & {
|
|
87
|
+
ticketType: ICOATicketType;
|
|
88
|
+
/**
|
|
89
|
+
* COA券種情報
|
|
90
|
+
*/
|
|
91
|
+
coaTicketInfo?: ICOATicketInfoWithDetails;
|
|
92
|
+
coaReserveAmount?: number;
|
|
93
|
+
/**
|
|
94
|
+
* The unique identifier for the ticket.
|
|
95
|
+
*/
|
|
96
|
+
ticketNumber?: string;
|
|
97
|
+
/**
|
|
98
|
+
* If the barcode image is hosted on your site, the value of the field is URL of the image, or a barcode or QR URI,
|
|
99
|
+
* such as "barcode128:AB34" (ISO-15417 barcodes), "qrCode:AB34" (QR codes),
|
|
100
|
+
* "aztecCode:AB34" (Aztec codes), "barcodeEAN:1234" (EAN codes) and "barcodeUPCA:1234" (UPCA codes).
|
|
101
|
+
*/
|
|
102
|
+
ticketToken?: string;
|
|
103
|
+
};
|
|
104
|
+
export interface ICOAIssuedThrough {
|
|
105
|
+
typeOf: ProductType.EventService;
|
|
106
|
+
serviceType?: never;
|
|
107
|
+
/**
|
|
108
|
+
* 興行管理をしていないためid未定義
|
|
109
|
+
*/
|
|
110
|
+
id?: never;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* オファー提供アイテムとしての予約
|
|
114
|
+
*/
|
|
115
|
+
export type IEventReservation = Pick<IRawReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'programMembershipUsed' | 'reservationNumber' | 'typeOf'> & {
|
|
116
|
+
issuedThrough: IIssuedThrough;
|
|
117
|
+
reservationFor: IEventAsReservationFor;
|
|
118
|
+
reservedTicket: IReservedTicket;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* オファー提供アイテムとしてのCOAの場合の予約
|
|
122
|
+
*/
|
|
123
|
+
export type ICOAEventReservation = Pick<IRawReservation, 'additionalTicketText' | 'id' | 'programMembershipUsed' | 'reservationNumber' | 'typeOf'> & {
|
|
124
|
+
issuedThrough: ICOAIssuedThrough;
|
|
125
|
+
reservationFor: ICOAEventAsReservationFor;
|
|
126
|
+
reservedTicket: ICOAReservedTicket;
|
|
127
|
+
additionalProperty?: IPropertyValue<string>[];
|
|
128
|
+
};
|
|
129
|
+
export { ICategoryChargePriceComponent };
|
|
130
|
+
export { IMovieTicketTypeChargePriceComponent };
|
|
131
|
+
export { IUnitPriceComponent };
|
|
132
|
+
export type ITicketPriceComponent = ICategoryChargePriceComponent | IMovieTicketTypeChargePriceComponent | IUnitPriceComponent;
|
|
133
|
+
/**
|
|
134
|
+
* 注文オファーの価格仕様
|
|
135
|
+
*/
|
|
136
|
+
export type ITicketPriceSpecification = Pick<ICompoundPriceSpecification<ITicketPriceComponent>, 'priceComponent' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'>;
|
|
137
|
+
export interface IOfferOptimized4acceptedOffer {
|
|
138
|
+
typeOf: OfferType.Offer;
|
|
139
|
+
id?: string;
|
|
140
|
+
/**
|
|
141
|
+
* 資産取引番号
|
|
142
|
+
* 2024-01-30~
|
|
143
|
+
*/
|
|
144
|
+
serialNumber: string;
|
|
145
|
+
priceSpecification?: ITicketPriceSpecification;
|
|
146
|
+
name?: never;
|
|
147
|
+
}
|
|
148
|
+
export interface ICOAAcceptedOffer extends IOfferOptimized4acceptedOffer {
|
|
149
|
+
/**
|
|
150
|
+
* オファー対象アイテム
|
|
151
|
+
*/
|
|
152
|
+
itemOffered: ICOAEventReservation;
|
|
153
|
+
offeredThrough: Pick<IService<Identifier>, 'typeOf'> & {
|
|
154
|
+
identifier: Identifier.COA;
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
export interface IOptimizedAcceptedOffer extends IOfferOptimized4acceptedOffer {
|
|
158
|
+
/**
|
|
159
|
+
* オファー対象アイテム
|
|
160
|
+
*/
|
|
161
|
+
itemOffered: IEventReservation;
|
|
162
|
+
offeredThrough: Pick<IService<Identifier>, 'typeOf'> & {
|
|
163
|
+
identifier: Identifier.Chevre;
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* 注文オファー
|
|
168
|
+
* 予約取引の情報を結合した上でのオファー
|
|
169
|
+
* 注文ドキュメント内のacceptedOffersについては、schemasに定義
|
|
170
|
+
*/
|
|
171
|
+
export type IAcceptedOffer = ICOAAcceptedOffer | IOptimizedAcceptedOffer;
|
|
@@ -5,7 +5,7 @@ import { IItemOfferedServiceOutput, IAcceptedTicketOfferItemOffered, IAcceptedTi
|
|
|
5
5
|
import { AssetTransactionType } from '../../assetTransactionType';
|
|
6
6
|
import { IOffer } from '../../offer';
|
|
7
7
|
import { OfferType } from '../../offerType';
|
|
8
|
-
import { ITicketPriceSpecification } from '../../
|
|
8
|
+
import { ITicketPriceSpecification } from '../../acceptedOffer';
|
|
9
9
|
import { IPropertyValue } from '../../propertyValue';
|
|
10
10
|
import { IRecipe, IUpdTmpReserveSeatArgs, IUpdTmpReserveSeatResult } from '../../recipe/acceptCOAOffer';
|
|
11
11
|
import { TransactionType } from '../../transactionType';
|
|
@@ -14,7 +14,7 @@ import { IOfferCatalogAsNotification } from '../../notification/offerCatalog';
|
|
|
14
14
|
import { IOrder4inform } from '../../notification/order';
|
|
15
15
|
import { IPayAction4inform } from '../../notification/payAction';
|
|
16
16
|
import { IPersonAsNotification } from '../../notification/person';
|
|
17
|
-
import { IEntranceGateAsNotification,
|
|
17
|
+
import { IEntranceGateAsNotification, IPOSAsNotification, IMovieTheaterAsNotification, IRoomAsNotification } from '../../notification/place';
|
|
18
18
|
import { IProductAsNotification } from '../../notification/product';
|
|
19
19
|
import { IRefundAction4inform } from '../../notification/refundAction';
|
|
20
20
|
import { IReservation4inform } from '../../notification/reservation';
|
|
@@ -30,7 +30,7 @@ export type IRecipient = Pick<IParticipantAsWebApplication, 'name' | 'typeOf'> &
|
|
|
30
30
|
/**
|
|
31
31
|
* 取引、タスク以外の通知対象リソース
|
|
32
32
|
*/
|
|
33
|
-
export type IAnyResourceAsObject = IOfferCatalogAsNotification | IEntranceGateAsNotification |
|
|
33
|
+
export type IAnyResourceAsObject = IOfferCatalogAsNotification | IEntranceGateAsNotification | IPOSAsNotification | IMovieTheaterAsNotification | IRoomAsNotification | IOfferAsNotification | IAccountTitleAsNotification | IProductAsNotification | ICategoryCodeAsNotification | IMovieAsNotification | INoteDigitalDocumentAsNotification | IPersonAsNotification | IEvent4inform2agg | IEventAsNotification | IEventSeriesAsNotification;
|
|
34
34
|
export type IObject = IAnyResourceAsObject | IOrder4inform | IReservation4inform | IPayAction4inform | IRefundAction4inform | ITask4inform;
|
|
35
35
|
export interface IPayTransactionAsPurpose {
|
|
36
36
|
id: string;
|
package/lib/chevre/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * as waiter from '@waiter/factory';
|
|
2
2
|
export * as cognito from './cognito';
|
|
3
|
+
import * as AcceptedOfferFactory from './acceptedOffer';
|
|
3
4
|
import * as ActionFactory from './action';
|
|
4
5
|
import * as AcceptCOAOfferActionFactory from './action/accept/coaOffer';
|
|
5
6
|
import * as AcceptPayActionFactory from './action/accept/pay';
|
|
@@ -194,6 +195,7 @@ import { ErrorCode } from './errorCode';
|
|
|
194
195
|
export * as errors from './errors';
|
|
195
196
|
export * as recipe from './recipe';
|
|
196
197
|
export import errorCode = ErrorCode;
|
|
198
|
+
export import acceptedOffer = AcceptedOfferFactory;
|
|
197
199
|
export import actionStatusType = ActionStatusType;
|
|
198
200
|
export import actionType = ActionType;
|
|
199
201
|
export declare namespace action {
|
package/lib/chevre/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.serviceChannel = exports.service = exports.task = exports.sellerReturnPolicy = exports.seller = exports.schedule = exports.role = exports.RESERVED_CODE_VALUES = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.potentialAction = exports.placeType = exports.place = exports.priceCurrency = exports.personType = void 0;
|
|
3
|
+
exports.permit = exports.paymentStatusType = exports.paymentMethod = exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.offerType = exports.offerItemCondition = exports.offerCatalog = exports.notification = exports.movieTicketType = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.identityProvider = exports.iam = exports.eventType = exports.eventStatusType = exports.entryPoint = exports.encodingFormat = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.CertificationStatusEnumeration = exports.categoryCode = exports.authorization = exports.aggregation = exports.additionalProperty = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.acceptedOffer = exports.errorCode = exports.recipe = exports.errors = exports.unitPriceOffer = exports.project = exports.order = exports.eventOffer = exports.aggregateOffer = exports.offer = exports.eventSeries = exports.cognito = exports.waiter = void 0;
|
|
4
|
+
exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.serviceChannel = exports.service = exports.task = exports.sellerReturnPolicy = exports.seller = exports.schedule = exports.role = exports.RESERVED_CODE_VALUES = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.potentialAction = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = void 0;
|
|
5
5
|
exports.waiter = require("@waiter/factory");
|
|
6
6
|
exports.cognito = require("./cognito");
|
|
7
|
+
const AcceptedOfferFactory = require("./acceptedOffer");
|
|
7
8
|
const AcceptCOAOfferActionFactory = require("./action/accept/coaOffer");
|
|
8
9
|
const AcceptPayActionFactory = require("./action/accept/pay");
|
|
9
10
|
const AuthorizeInvoiceActionFactory = require("./action/authorize/invoice");
|
|
@@ -182,6 +183,7 @@ const errorCode_1 = require("./errorCode");
|
|
|
182
183
|
exports.errors = require("./errors");
|
|
183
184
|
exports.recipe = require("./recipe");
|
|
184
185
|
exports.errorCode = errorCode_1.ErrorCode;
|
|
186
|
+
exports.acceptedOffer = AcceptedOfferFactory;
|
|
185
187
|
exports.actionStatusType = actionStatusType_1.ActionStatusType;
|
|
186
188
|
exports.actionType = actionType_1.ActionType;
|
|
187
189
|
var action;
|
package/lib/chevre/invoice.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IMonetaryAmount } from './monetaryAmount';
|
|
2
|
-
import { ITicketPriceSpecification
|
|
2
|
+
import { ITicketPriceSpecification } from './acceptedOffer';
|
|
3
|
+
import { ICustomer, ITotalPaymentDue } from './order';
|
|
3
4
|
import { PaymentStatusType } from './paymentStatusType';
|
|
4
5
|
import { IPerson } from './person';
|
|
5
6
|
import { IAccounting } from './priceSpecification';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IAction as IReturnOrderAction } from '../action/transfer/return/order';
|
|
2
|
-
import { IAcceptedOffer,
|
|
2
|
+
import { IAcceptedOffer, ICOAEventReservation, IEventReservation } from '../acceptedOffer';
|
|
3
|
+
import { IOrder } from '../order';
|
|
3
4
|
import { OrderStatus } from '../orderStatus';
|
|
4
5
|
/**
|
|
5
6
|
* 返品通知
|
|
@@ -15,16 +16,20 @@ export type IProcessingOrder4inform = Pick<IOrder, 'project' | 'typeOf' | 'selle
|
|
|
15
16
|
numAcceptedOffers: number;
|
|
16
17
|
orderStatus: OrderStatus.OrderProcessing;
|
|
17
18
|
};
|
|
19
|
+
/**
|
|
20
|
+
* 配送中通知における予約
|
|
21
|
+
*/
|
|
22
|
+
export type IEventReservation4inform = Pick<IEventReservation, 'additionalTicketText' | 'id' | 'issuedThrough' | 'reservationNumber' | 'reservedTicket' | 'typeOf'> & {
|
|
23
|
+
reservationFor: Pick<IEventReservation['reservationFor'], 'id' | 'typeOf'>;
|
|
24
|
+
};
|
|
25
|
+
export type IAcceptedOffer4inform = Pick<IAcceptedOffer, 'id' | 'offeredThrough' | 'serialNumber' | 'typeOf' | 'priceSpecification'> & {
|
|
26
|
+
itemOffered: ICOAEventReservation | IEventReservation4inform;
|
|
27
|
+
};
|
|
18
28
|
/**
|
|
19
29
|
* 配送中通知
|
|
20
30
|
*/
|
|
21
31
|
export type IInTransitOrder4inform = Pick<IOrder, 'project' | 'typeOf' | 'orderNumber'> & {
|
|
22
|
-
acceptedOffers:
|
|
23
|
-
/**
|
|
24
|
-
* COA以外では注文ドキュメントにpriceSpecificationが存在しないのでIFを補完
|
|
25
|
-
*/
|
|
26
|
-
priceSpecification?: ITicketPriceSpecification;
|
|
27
|
-
})[];
|
|
32
|
+
acceptedOffers: IAcceptedOffer4inform[];
|
|
28
33
|
id?: string;
|
|
29
34
|
orderStatus: OrderStatus.OrderInTransit;
|
|
30
35
|
};
|
|
@@ -33,11 +33,11 @@ export type IEntranceGateAsNotification = Pick<IMovieTheater, 'id' | 'typeOf'> &
|
|
|
33
33
|
/**
|
|
34
34
|
* 施設のPOS通知
|
|
35
35
|
*/
|
|
36
|
-
export type
|
|
36
|
+
export type IPOSAsNotification = Pick<IMovieTheater, 'id' | 'typeOf'> & {
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* 単一のPOSに対応(2026-09-26~)
|
|
39
39
|
*/
|
|
40
|
-
hasPOS: IPOS
|
|
40
|
+
hasPOS: [IPOS];
|
|
41
41
|
branchCode?: never;
|
|
42
42
|
hasEntranceGate?: never;
|
|
43
43
|
};
|
package/lib/chevre/order.d.ts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import type { COAFactory } from '@coasystems/factory';
|
|
2
1
|
import { IParticipantAsPerson, IParticipantAsProject, IParticipantAsWebApplication } from './action';
|
|
3
|
-
import {
|
|
2
|
+
import { IServiceTypeOfIssuedThrough } from './assetTransaction/reserve';
|
|
4
3
|
import { ICreativeWork as IWebApplication } from './creativeWork/softwareApplication/webApplication';
|
|
5
4
|
import { ICustomer as ICustomerOrganization } from './customer';
|
|
6
|
-
import { ICOAInfo, ISuperEvent as IEventSeries } from './event/screeningEvent';
|
|
7
5
|
import { EventType } from './eventType';
|
|
8
6
|
import { IMonetaryAmount } from './monetaryAmount';
|
|
9
7
|
import { IMultilingualString } from './multilingualString';
|
|
10
|
-
import { IOffer } from './offer';
|
|
11
8
|
import { OrderStatus } from './orderStatus';
|
|
12
9
|
import { OrderType } from './orderType';
|
|
13
10
|
import { OrganizationType } from './organizationType';
|
|
@@ -16,14 +13,11 @@ import { IPerson, IProfile } from './person';
|
|
|
16
13
|
import { PersonType } from './personType';
|
|
17
14
|
import { PlaceType } from './placeType';
|
|
18
15
|
import { PriceCurrency } from './priceCurrency';
|
|
19
|
-
import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
|
|
20
16
|
import { ProductType } from './product';
|
|
21
17
|
import { IPropertyValue } from './propertyValue';
|
|
22
|
-
import { IReservation as IRawReservation, IReservedTicket as IRawReservedTicket } from './reservation/event';
|
|
23
18
|
import { ReservationType } from './reservationType';
|
|
24
19
|
import { ISeller as IBaseSeller } from './seller';
|
|
25
20
|
import { IPaymentMethodAsServiceOutput, PaymentServiceType } from './service/paymentService';
|
|
26
|
-
import { IService, Identifier } from './service/webAPI';
|
|
27
21
|
import { SortType } from './sortType';
|
|
28
22
|
import { UnitCode } from './unitCode';
|
|
29
23
|
export { OrderType };
|
|
@@ -90,175 +84,6 @@ export interface IReferencedInvoice {
|
|
|
90
84
|
issuedThrough: IOrderPaymentMethodIssuedThrough;
|
|
91
85
|
referencesOrder?: never;
|
|
92
86
|
}
|
|
93
|
-
export type IWorkPerformed = Pick<IOptimizedWorkPerformedLegacy, 'typeOf' | 'id' | 'identifier' | 'name' | 'duration'>;
|
|
94
|
-
export type ISuperEvent = Pick<IOptimizedSuperEventLegacy, 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'headline'> & {
|
|
95
|
-
workPerformed: IWorkPerformed;
|
|
96
|
-
identifier?: never;
|
|
97
|
-
alternativeHeadline?: never;
|
|
98
|
-
duration?: never;
|
|
99
|
-
coaInfo?: never;
|
|
100
|
-
};
|
|
101
|
-
/**
|
|
102
|
-
* COAの場合の施設コンテンツ
|
|
103
|
-
*/
|
|
104
|
-
export type ICOASuperEvent = Pick<IOptimizedSuperEventLegacy, 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'headline'> & Pick<IEventSeries, 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
|
|
105
|
-
workPerformed: IWorkPerformed;
|
|
106
|
-
};
|
|
107
|
-
export type IEventAsReservationFor = Omit<IReservationForLegacy, 'superEvent' | 'identifier' | 'coaInfo'> & {
|
|
108
|
-
superEvent: ISuperEvent;
|
|
109
|
-
/**
|
|
110
|
-
* COA予約でのみ使用されている
|
|
111
|
-
*/
|
|
112
|
-
identifier?: never;
|
|
113
|
-
/**
|
|
114
|
-
* その他COA情報
|
|
115
|
-
* 基本的にsskts対応
|
|
116
|
-
*/
|
|
117
|
-
coaInfo?: never;
|
|
118
|
-
};
|
|
119
|
-
/**
|
|
120
|
-
* COAの場合のイベント
|
|
121
|
-
*/
|
|
122
|
-
export type ICOAEventAsReservationFor = Omit<IReservationForLegacy, 'superEvent' | 'identifier' | 'coaInfo'> & {
|
|
123
|
-
superEvent: ICOASuperEvent;
|
|
124
|
-
/**
|
|
125
|
-
* COA予約でのみ使用されている
|
|
126
|
-
*/
|
|
127
|
-
identifier?: string;
|
|
128
|
-
/**
|
|
129
|
-
* その他COA情報
|
|
130
|
-
* 基本的にsskts対応
|
|
131
|
-
*/
|
|
132
|
-
coaInfo?: ICOAInfo;
|
|
133
|
-
};
|
|
134
|
-
/**
|
|
135
|
-
* COA券種情報
|
|
136
|
-
*/
|
|
137
|
-
export type ICOATicketInfoWithDetails = COAFactory.reserve.IUpdReserveTicket & {
|
|
138
|
-
/**
|
|
139
|
-
* チケット名
|
|
140
|
-
*/
|
|
141
|
-
ticketName: string;
|
|
142
|
-
/**
|
|
143
|
-
* チケット名(カナ)
|
|
144
|
-
*/
|
|
145
|
-
ticketNameKana: string;
|
|
146
|
-
/**
|
|
147
|
-
* チケット名(英)
|
|
148
|
-
*/
|
|
149
|
-
ticketNameEng: string;
|
|
150
|
-
/**
|
|
151
|
-
* ポイント割引の場合の消費ポイント
|
|
152
|
-
*/
|
|
153
|
-
usePoint: number;
|
|
154
|
-
};
|
|
155
|
-
export type ITicketTypeInOrder = Pick<ITicketType, 'id' | 'identifier' | 'name' | 'typeOf' | 'additionalProperty' | 'description'>;
|
|
156
|
-
export type IReservedTicket = Pick<IRawReservedTicket, 'typeOf' | 'ticketedSeat' | 'identifier'> & {
|
|
157
|
-
ticketType: ITicketTypeInOrder;
|
|
158
|
-
ticketNumber?: never;
|
|
159
|
-
dateIssued?: never;
|
|
160
|
-
ticketToken?: never;
|
|
161
|
-
coaTicketInfo?: never;
|
|
162
|
-
coaReserveAmount?: never;
|
|
163
|
-
};
|
|
164
|
-
export type ICOATicketType = Pick<ITicketType, 'id' | 'identifier' | 'name' | 'typeOf'>;
|
|
165
|
-
/**
|
|
166
|
-
* COAの場合の予約チケット
|
|
167
|
-
*/
|
|
168
|
-
export type ICOAReservedTicket = Pick<IRawReservedTicket, 'typeOf' | 'ticketedSeat' | 'identifier' | // 追加(2024-04-15~)
|
|
169
|
-
'dateIssued'> & {
|
|
170
|
-
ticketType: ICOATicketType;
|
|
171
|
-
/**
|
|
172
|
-
* COA券種情報
|
|
173
|
-
*/
|
|
174
|
-
coaTicketInfo?: ICOATicketInfoWithDetails;
|
|
175
|
-
coaReserveAmount?: number;
|
|
176
|
-
/**
|
|
177
|
-
* The unique identifier for the ticket.
|
|
178
|
-
*/
|
|
179
|
-
ticketNumber?: string;
|
|
180
|
-
/**
|
|
181
|
-
* If the barcode image is hosted on your site, the value of the field is URL of the image, or a barcode or QR URI,
|
|
182
|
-
* such as "barcode128:AB34" (ISO-15417 barcodes), "qrCode:AB34" (QR codes),
|
|
183
|
-
* "aztecCode:AB34" (Aztec codes), "barcodeEAN:1234" (EAN codes) and "barcodeUPCA:1234" (UPCA codes).
|
|
184
|
-
*/
|
|
185
|
-
ticketToken?: string;
|
|
186
|
-
};
|
|
187
|
-
export interface ICOAIssuedThrough {
|
|
188
|
-
typeOf: ProductType.EventService;
|
|
189
|
-
serviceType?: never;
|
|
190
|
-
/**
|
|
191
|
-
* 興行管理をしていないためid未定義
|
|
192
|
-
*/
|
|
193
|
-
id?: never;
|
|
194
|
-
}
|
|
195
|
-
export type IEventReservation = Pick<IRawReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'programMembershipUsed' | 'reservationNumber' | 'typeOf'> & {
|
|
196
|
-
issuedThrough: IIssuedThrough;
|
|
197
|
-
reservationFor: IEventAsReservationFor;
|
|
198
|
-
reservedTicket: IReservedTicket;
|
|
199
|
-
};
|
|
200
|
-
/**
|
|
201
|
-
* COAの場合の予約
|
|
202
|
-
*/
|
|
203
|
-
export type ICOAEventReservation = Pick<IRawReservation, 'additionalTicketText' | 'id' | 'programMembershipUsed' | 'reservationNumber' | 'typeOf'> & {
|
|
204
|
-
issuedThrough: ICOAIssuedThrough;
|
|
205
|
-
reservationFor: ICOAEventAsReservationFor;
|
|
206
|
-
reservedTicket: ICOAReservedTicket;
|
|
207
|
-
additionalProperty?: IPropertyValue<string>[];
|
|
208
|
-
};
|
|
209
|
-
/**
|
|
210
|
-
* オファー提供アイテムとしての予約
|
|
211
|
-
*/
|
|
212
|
-
export type IReservation = IEventReservation | ICOAEventReservation;
|
|
213
|
-
/**
|
|
214
|
-
* 注文アイテム
|
|
215
|
-
*/
|
|
216
|
-
export type IItemOffered = IReservation;
|
|
217
|
-
export { ICategoryChargePriceComponent };
|
|
218
|
-
export { IMovieTicketTypeChargePriceComponent };
|
|
219
|
-
export { IUnitPriceComponent };
|
|
220
|
-
export type ITicketPriceComponent = ICategoryChargePriceComponent | IMovieTicketTypeChargePriceComponent | IUnitPriceComponent;
|
|
221
|
-
/**
|
|
222
|
-
* 注文オファーの価格仕様
|
|
223
|
-
*/
|
|
224
|
-
export type ITicketPriceSpecification = Pick<ICompoundPriceSpecification<ITicketPriceComponent>, 'priceComponent' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'>;
|
|
225
|
-
export type IOfferOptimized4acceptedOffer = Pick<IOffer, 'typeOf' | 'id' | 'itemOffered' | 'offeredThrough'> & {
|
|
226
|
-
name?: never;
|
|
227
|
-
};
|
|
228
|
-
export interface ICOAAcceptedOffer extends IOfferOptimized4acceptedOffer {
|
|
229
|
-
/**
|
|
230
|
-
* オファー対象アイテム
|
|
231
|
-
*/
|
|
232
|
-
itemOffered: ICOAEventReservation;
|
|
233
|
-
offeredThrough: Pick<IService<Identifier>, 'typeOf'> & {
|
|
234
|
-
identifier: Identifier.COA;
|
|
235
|
-
};
|
|
236
|
-
priceSpecification?: ITicketPriceSpecification;
|
|
237
|
-
/**
|
|
238
|
-
* 資産取引番号
|
|
239
|
-
* 2024-01-30~
|
|
240
|
-
*/
|
|
241
|
-
serialNumber: string;
|
|
242
|
-
}
|
|
243
|
-
export interface IOptimizedAcceptedOffer extends IOfferOptimized4acceptedOffer {
|
|
244
|
-
/**
|
|
245
|
-
* オファー対象アイテム
|
|
246
|
-
*/
|
|
247
|
-
itemOffered: IEventReservation;
|
|
248
|
-
offeredThrough: Pick<IService<Identifier>, 'typeOf'> & {
|
|
249
|
-
identifier: Identifier.Chevre;
|
|
250
|
-
};
|
|
251
|
-
priceSpecification?: ITicketPriceSpecification;
|
|
252
|
-
/**
|
|
253
|
-
* 資産取引番号
|
|
254
|
-
* 2024-01-30~
|
|
255
|
-
*/
|
|
256
|
-
serialNumber: string;
|
|
257
|
-
}
|
|
258
|
-
/**
|
|
259
|
-
* 受け入れオファー
|
|
260
|
-
*/
|
|
261
|
-
export type IAcceptedOffer = ICOAAcceptedOffer | IOptimizedAcceptedOffer;
|
|
262
87
|
/**
|
|
263
88
|
* 販売者
|
|
264
89
|
*/
|
|
@@ -11,7 +11,7 @@ import { IOfferCatalogAsNotification } from '../notification/offerCatalog';
|
|
|
11
11
|
import { IOrder4inform } from '../notification/order';
|
|
12
12
|
import { IPayAction4inform } from '../notification/payAction';
|
|
13
13
|
import { IPersonAsNotification } from '../notification/person';
|
|
14
|
-
import { IEntranceGateAsNotification,
|
|
14
|
+
import { IEntranceGateAsNotification, IPOSAsNotification, IMovieTheaterAsNotification, IRoomAsNotification } from '../notification/place';
|
|
15
15
|
import { IProductAsNotification } from '../notification/product';
|
|
16
16
|
import { IRefundAction4inform } from '../notification/refundAction';
|
|
17
17
|
import { IReservation4inform } from '../notification/reservation';
|
|
@@ -21,7 +21,7 @@ import { TaskName } from '../taskName';
|
|
|
21
21
|
/**
|
|
22
22
|
* define strictly(2025-02-20~)
|
|
23
23
|
*/
|
|
24
|
-
export type IAnyResourceAsObject = IOfferCatalogAsNotification | IEntranceGateAsNotification |
|
|
24
|
+
export type IAnyResourceAsObject = IOfferCatalogAsNotification | IEntranceGateAsNotification | IPOSAsNotification | IMovieTheaterAsNotification | IRoomAsNotification | IOfferAsNotification | IAccountTitleAsNotification | IProductAsNotification | ICategoryCodeAsNotification | IMovieAsNotification | INoteDigitalDocumentAsNotification | IPersonAsNotification | IEvent4inform2agg | IEventAsNotification | IEventSeriesAsNotification;
|
|
25
25
|
export type IInformAnyResourceAction = Pick<IInformActionAttributes, 'about'> & {
|
|
26
26
|
object: IAnyResourceAsObject;
|
|
27
27
|
/**
|