@chevre/factory 8.2.0-alpha.6 → 8.2.0-alpha.8
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/action/accept/coaOffer.d.ts +7 -2
- package/lib/chevre/assetTransaction/reserve.d.ts +8 -14
- package/lib/chevre/paymentMethod/paymentCard/movieTicket.d.ts +6 -3
- package/lib/chevre/reservation/pendingReservationPackage.js +0 -12
- package/lib/chevre/reservation.d.ts +1 -1
- package/lib/chevre/transaction/placeOrder.d.ts +7 -10
- package/lib/chevre/unitPriceOffer.d.ts +0 -4
- package/package.json +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { COAFactory } from '@coasystems/factory';
|
|
2
2
|
import { IParticipantAsWebApplication, IAction as IBaseAction } from '../../action';
|
|
3
3
|
import { ActionType } from '../../actionType';
|
|
4
|
-
import { IAcceptedTicketOfferItemOffered, IAcceptedTicketOfferWithoutDetail as IAcceptedOfferWithoutDetail4chevre } from '../../assetTransaction/reserve';
|
|
4
|
+
import { IItemOfferedServiceOutput, IAcceptedTicketOfferItemOffered, IAcceptedTicketOfferWithoutDetail as IAcceptedOfferWithoutDetail4chevre } from '../../assetTransaction/reserve';
|
|
5
5
|
import { AssetTransactionType } from '../../assetTransactionType';
|
|
6
6
|
import { IOffer } from '../../offer';
|
|
7
7
|
import { OfferType } from '../../offerType';
|
|
8
8
|
import { ITicketPriceSpecification } from '../../order';
|
|
9
|
+
import { IPropertyValue } from '../../propertyValue';
|
|
9
10
|
import { IRecipe, IUpdTmpReserveSeatArgs, IUpdTmpReserveSeatResult } from '../../recipe/acceptCOAOffer';
|
|
10
11
|
import { TransactionType } from '../../transactionType';
|
|
11
12
|
import { IAttributes as IBaseAttributes } from '../accept';
|
|
@@ -166,7 +167,11 @@ export type IAcceptedOffer4COA = Pick<IAcceptedOfferWithoutDetail4chevre, 'id' |
|
|
|
166
167
|
* 単価オファーコード
|
|
167
168
|
*/
|
|
168
169
|
identifier: string;
|
|
169
|
-
itemOffered:
|
|
170
|
+
itemOffered: {
|
|
171
|
+
serviceOutput?: IItemOfferedServiceOutput & {
|
|
172
|
+
additionalProperty?: IPropertyValue<string>[];
|
|
173
|
+
};
|
|
174
|
+
};
|
|
170
175
|
ticketInfo: ICOATicketInfoWithDetails;
|
|
171
176
|
/**
|
|
172
177
|
* COAイベントでは、priceSpecificationで価格を表現しきれないので、numberとしてのpriceが必要
|
|
@@ -123,24 +123,17 @@ export type ITokenizedProgramMembershipUsed = string;
|
|
|
123
123
|
*/
|
|
124
124
|
export type IAcceptedProgramMembershipUsed = IPermitIssuedThroughFaceToFace | IPermitIssuedThroughMembershipService | IProgramMembershipUsedAsTicket | ITokenizedProgramMembershipUsed;
|
|
125
125
|
export type IAcceptedSubReservation = ISubReservation4eventReservation;
|
|
126
|
+
/**
|
|
127
|
+
* 予約取引開始前の指定予約属性
|
|
128
|
+
*/
|
|
126
129
|
export interface IEventReservatonAsItemOfferedServiceOutput {
|
|
127
130
|
typeOf: ReservationType.EventReservation;
|
|
128
|
-
/**
|
|
129
|
-
* 追加特性
|
|
130
|
-
*/
|
|
131
|
-
additionalProperty?: IPropertyValue<string>[];
|
|
132
131
|
/**
|
|
133
132
|
* 予約追加テキスト
|
|
134
133
|
*/
|
|
135
134
|
additionalTicketText?: string;
|
|
136
135
|
programMembershipUsed?: IAcceptedProgramMembershipUsed;
|
|
137
136
|
reservedTicket?: {
|
|
138
|
-
/**
|
|
139
|
-
* チケット識別子
|
|
140
|
-
* 指定された場合、決済カードの対象チケット識別子と関連付けされます
|
|
141
|
-
* /^[0-9a-zA-Z]{8,16}$/
|
|
142
|
-
*/
|
|
143
|
-
identifier?: string;
|
|
144
137
|
issuedBy?: Pick<ITicketIssuedBy, 'name' | 'typeOf'>;
|
|
145
138
|
typeOf: TicketType;
|
|
146
139
|
/**
|
|
@@ -152,14 +145,12 @@ export interface IEventReservatonAsItemOfferedServiceOutput {
|
|
|
152
145
|
}
|
|
153
146
|
export type IItemOfferedServiceOutput = IEventReservatonAsItemOfferedServiceOutput;
|
|
154
147
|
/**
|
|
155
|
-
*
|
|
148
|
+
* 予約取引開始前の指定オファーのアイテム
|
|
156
149
|
*/
|
|
157
150
|
export interface IAcceptedTicketOfferItemOffered {
|
|
158
|
-
pointAward?: never;
|
|
159
151
|
serviceOutput?: IItemOfferedServiceOutput;
|
|
160
152
|
}
|
|
161
153
|
export interface IAcceptedTicketOfferItemOffered4object {
|
|
162
|
-
pointAward?: never;
|
|
163
154
|
serviceOutput: {
|
|
164
155
|
id: string;
|
|
165
156
|
};
|
|
@@ -209,7 +200,7 @@ export type IMultipleAcceptedAppliesToMovieTicket = {
|
|
|
209
200
|
*/
|
|
210
201
|
export type IAcceptedAppliesToMovieTicket = ISingleAcceptedAppliesToMovieTicket | IMultipleAcceptedAppliesToMovieTicket;
|
|
211
202
|
/**
|
|
212
|
-
*
|
|
203
|
+
* 予約取引開始前の指定チケットオファー(詳細なし)
|
|
213
204
|
*/
|
|
214
205
|
export interface IAcceptedTicketOfferWithoutDetail {
|
|
215
206
|
/**
|
|
@@ -327,6 +318,9 @@ export interface IEventOfferTokenPayload {
|
|
|
327
318
|
* トークンの中身については @see IEventOfferTokenPayload
|
|
328
319
|
*/
|
|
329
320
|
export type IEventOfferToken = string;
|
|
321
|
+
/**
|
|
322
|
+
* 予約取引開始前の指定オブジェクト
|
|
323
|
+
*/
|
|
330
324
|
export interface IObjectWithoutDetail {
|
|
331
325
|
acceptedOffer?: IAcceptedTicketOfferWithoutDetail[];
|
|
332
326
|
broker?: IBroker;
|
|
@@ -16,11 +16,14 @@ export interface IMovieTicketServiceOutput {
|
|
|
16
16
|
reservedTicket: {
|
|
17
17
|
/**
|
|
18
18
|
* チケット識別子
|
|
19
|
-
*
|
|
20
|
-
*
|
|
19
|
+
* 予約のチケット識別子と関連付けされる
|
|
20
|
+
* 指定は不可
|
|
21
21
|
*/
|
|
22
22
|
identifier?: string;
|
|
23
|
-
|
|
23
|
+
/**
|
|
24
|
+
* 決済カードと関連付ける座席
|
|
25
|
+
*/
|
|
26
|
+
ticketedSeat: Pick<ISeat, 'seatNumber' | 'seatRow' | 'seatSection' | 'typeOf'>;
|
|
24
27
|
};
|
|
25
28
|
}
|
|
26
29
|
/**
|
|
@@ -1,14 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
// public async lockIfNotLimitExceeded
|
|
4
|
-
// reservationCount<=nであれば$push+$incする
|
|
5
|
-
// public async lock
|
|
6
|
-
// [reservationFor.id+seatNumber+seatSection][reservationNumber][subReservation.id]にunique indexを作成した上で$push+$incする
|
|
7
|
-
// public async unlock
|
|
8
|
-
// [id]あるいは[seatNumber+seatSection]でreservations.subReservationsから$pull+$incする
|
|
9
|
-
// public async countUnavailableOffers
|
|
10
|
-
// reservationCountを返す
|
|
11
|
-
// public async getHolder
|
|
12
|
-
// [id]あるいは[seatNumber+seatSection]でreservationNumberを返す
|
|
13
|
-
// public async searchHolders
|
|
14
|
-
// [id]あるいは[seatNumber+seatSection]のリストでreservationNumberのリストを返す
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { passport } from '@waiter/factory';
|
|
2
1
|
import { IAttributes as ISendEmailMessageActionAttributes } from '../action/transfer/send/message/email';
|
|
3
2
|
import { IExtendId } from '../autoGenerated';
|
|
4
3
|
import { IClientUser } from '../clientUser';
|
|
@@ -19,7 +18,7 @@ export type IAgent = IBaseAgent & {
|
|
|
19
18
|
* 外部メンバーシップトークン
|
|
20
19
|
*/
|
|
21
20
|
memberOfToken?: string;
|
|
22
|
-
memberOfPayload?:
|
|
21
|
+
memberOfPayload?: never;
|
|
23
22
|
};
|
|
24
23
|
export type ICustomerInObject = Pick<IOrderCustomer, 'id' | 'identifier' | 'typeOf'>;
|
|
25
24
|
export interface IPaymentMethodByPaymentUrl {
|
|
@@ -30,10 +29,8 @@ export interface IPaymentMethodByPaymentUrl {
|
|
|
30
29
|
paymentMethodId: string;
|
|
31
30
|
}
|
|
32
31
|
export interface IObject {
|
|
33
|
-
clientUser?: Omit<IClientUser, 'scope' | 'scopes'>;
|
|
34
32
|
broker?: Pick<IBroker, 'id' | 'typeOf'>;
|
|
35
33
|
customer?: ICustomerInObject;
|
|
36
|
-
identifier?: IOrderIdentifier;
|
|
37
34
|
/**
|
|
38
35
|
* 確認番号
|
|
39
36
|
*/
|
|
@@ -50,11 +47,11 @@ export interface IObject {
|
|
|
50
47
|
* 決済URLでの決済情報
|
|
51
48
|
*/
|
|
52
49
|
paymentMethods?: IPaymentMethodByPaymentUrl;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
passport?: passport.IPassport;
|
|
50
|
+
identifier?: never;
|
|
51
|
+
clientUser?: never;
|
|
52
|
+
passport?: never;
|
|
57
53
|
}
|
|
54
|
+
export type IClientUserBeforeStart = Pick<IClientUser, 'aud' | 'client_id' | 'exp' | 'iat' | 'iss' | 'jti' | 'sub' | 'token_use' | 'username'>;
|
|
58
55
|
export interface IStartParamsWithoutDetail {
|
|
59
56
|
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
60
57
|
agent: IAgent;
|
|
@@ -62,7 +59,7 @@ export interface IStartParamsWithoutDetail {
|
|
|
62
59
|
id: string;
|
|
63
60
|
};
|
|
64
61
|
object: {
|
|
65
|
-
clientUser?:
|
|
62
|
+
clientUser?: IClientUserBeforeStart;
|
|
66
63
|
customer?: ICustomerInObject;
|
|
67
64
|
passport?: IPassportBeforeStart;
|
|
68
65
|
/**
|
|
@@ -143,7 +140,7 @@ export interface IConfirmParams {
|
|
|
143
140
|
*/
|
|
144
141
|
result?: IResultParams;
|
|
145
142
|
}
|
|
146
|
-
export type IOrderAsResult = Pick<IOrder, 'confirmationNumber' | 'identifier' | 'orderDate' | 'orderNumber' | 'orderStatus' | 'price' | 'priceCurrency' | 'typeOf' | 'url'
|
|
143
|
+
export type IOrderAsResult = Pick<IOrder, 'confirmationNumber' | 'identifier' | 'orderDate' | 'orderNumber' | 'orderStatus' | 'price' | 'priceCurrency' | 'typeOf' | 'url'> & {};
|
|
147
144
|
export interface IAuthorizeActionAsResult {
|
|
148
145
|
id: string;
|
|
149
146
|
}
|