@chevre/factory 4.375.0-alpha.16 → 4.375.0-alpha.18
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.
|
@@ -3,7 +3,7 @@ import * as ActionFactory from '../../../action';
|
|
|
3
3
|
import { ActionType } from '../../../actionType';
|
|
4
4
|
import * as ReserveTransactionFactory from '../../../assetTransaction/reserve';
|
|
5
5
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
6
|
-
import
|
|
6
|
+
import { IEvent } from '../../../event/screeningEvent';
|
|
7
7
|
import * as OfferFactory from '../../../offer';
|
|
8
8
|
import { OfferType } from '../../../offerType';
|
|
9
9
|
import * as OrderFactory from '../../../order';
|
|
@@ -19,33 +19,20 @@ export type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFact
|
|
|
19
19
|
export declare enum ObjectType {
|
|
20
20
|
SeatReservation = "SeatReservation"
|
|
21
21
|
}
|
|
22
|
-
/**
|
|
23
|
-
* IInstrumentAsAssetTransactionへ移行前のinstrument(~2024-03-08)
|
|
24
|
-
* @deprecated use IInstrumentAsAssetTransaction
|
|
25
|
-
*/
|
|
26
|
-
export type IInstrument<T extends WebAPIFactory.Identifier> = WebAPIFactory.IService<T> & {
|
|
27
|
-
/**
|
|
28
|
-
* Chevre->予約取引番号
|
|
29
|
-
* COA->仮予約番号
|
|
30
|
-
*/
|
|
31
|
-
transactionNumber?: string;
|
|
32
|
-
};
|
|
33
22
|
export type IInstrumentAsAssetTransaction<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? {
|
|
34
23
|
typeOf: 'COAReserveTransaction';
|
|
35
24
|
identifier: T;
|
|
36
25
|
/**
|
|
37
|
-
*
|
|
38
|
-
* COA->仮予約番号
|
|
26
|
+
* 仮予約番号
|
|
39
27
|
*/
|
|
40
|
-
transactionNumber
|
|
28
|
+
transactionNumber: string;
|
|
41
29
|
} : T extends WebAPIFactory.Identifier.Chevre ? {
|
|
42
30
|
typeOf: AssetTransactionType.Reserve;
|
|
43
31
|
identifier: T;
|
|
44
32
|
/**
|
|
45
|
-
*
|
|
46
|
-
* COA->仮予約番号
|
|
33
|
+
* 予約取引番号
|
|
47
34
|
*/
|
|
48
|
-
transactionNumber
|
|
35
|
+
transactionNumber: string;
|
|
49
36
|
} : never;
|
|
50
37
|
export type IRequestBody<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? COA.factory.reserve.IUpdTmpReserveSeatArgs : T extends WebAPIFactory.Identifier.Chevre ? {} : never;
|
|
51
38
|
export type IResponseBody<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? COA.factory.reserve.IUpdTmpReserveSeatResult : T extends WebAPIFactory.Identifier.Chevre ? {} : never;
|
|
@@ -153,47 +140,39 @@ export type ICOAPendingTransaction = Pick<COA.factory.reserve.IDelTmpReserveArgs
|
|
|
153
140
|
transactionNumber: string;
|
|
154
141
|
typeOf: 'COAReserveTransaction';
|
|
155
142
|
};
|
|
156
|
-
export
|
|
157
|
-
transactionNumber: string;
|
|
158
|
-
typeOf: AssetTransactionType.Reserve;
|
|
159
|
-
}
|
|
160
|
-
export type IPendingTransaction<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? ICOAPendingTransaction : T extends WebAPIFactory.Identifier.Chevre ? IChevrePendingTransaction : never;
|
|
161
|
-
export type IEvent = Pick<ScreeningEventFactory.IEvent, 'id' | 'typeOf'> & {
|
|
162
|
-
offers: {
|
|
163
|
-
offeredThrough: ScreeningEventFactory.IOfferedThrough;
|
|
164
|
-
};
|
|
165
|
-
};
|
|
143
|
+
export type IEventInObject = Pick<IEvent, 'id' | 'typeOf'> & {};
|
|
166
144
|
/**
|
|
167
145
|
* 興行オファー承認アクション対象
|
|
168
146
|
*/
|
|
169
|
-
export type IObject
|
|
147
|
+
export type IObject = {
|
|
170
148
|
typeOf: ObjectType;
|
|
171
|
-
event?:
|
|
149
|
+
event?: IEventInObject;
|
|
172
150
|
/**
|
|
173
151
|
* recipe有(仮予約時)のCOA興行オファー採用アクションID(2024-06-11~)
|
|
174
152
|
*/
|
|
175
153
|
id?: string;
|
|
176
154
|
/**
|
|
177
|
-
* 進行中取引
|
|
155
|
+
* COA進行中取引(仮予約削除時に利用)
|
|
156
|
+
* discontinue on Chevre(2024-06-22~)
|
|
178
157
|
*/
|
|
179
|
-
pendingTransaction
|
|
158
|
+
pendingTransaction?: ICOAPendingTransaction;
|
|
180
159
|
/**
|
|
181
160
|
* result.acceptedOffers廃止に際して使用有無を保管
|
|
182
161
|
*/
|
|
183
162
|
useResultAcceptedOffers?: boolean;
|
|
184
|
-
} &
|
|
163
|
+
} & Pick<IObjectWithoutDetail<WebAPIFactory.Identifier.Chevre>, 'broker'>;
|
|
185
164
|
export interface IPurpose {
|
|
186
165
|
typeOf: TransactionType.PlaceOrder;
|
|
187
166
|
id: string;
|
|
188
167
|
}
|
|
189
168
|
export type IError = any;
|
|
190
|
-
export interface IAttributes<T extends WebAPIFactory.Identifier> extends AuthorizeActionFactory.IAttributes<IObject
|
|
169
|
+
export interface IAttributes<T extends WebAPIFactory.Identifier> extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
|
|
191
170
|
typeOf: ActionType.AuthorizeAction;
|
|
192
171
|
agent: IAgent;
|
|
193
172
|
recipient: IRecipient;
|
|
194
|
-
object: IObject
|
|
173
|
+
object: IObject;
|
|
195
174
|
purpose: IPurpose;
|
|
196
|
-
instrument:
|
|
175
|
+
instrument: IInstrumentAsAssetTransaction<T>;
|
|
197
176
|
}
|
|
198
177
|
/**
|
|
199
178
|
* 興行オファー承認アクション
|
|
@@ -83,7 +83,7 @@ export type IObjectWithoutDetail = Pick<IObjectIncludingPaymentMethodDetails, 'a
|
|
|
83
83
|
*/
|
|
84
84
|
paymentMethodId?: string;
|
|
85
85
|
};
|
|
86
|
-
export type IObject = Pick<IObjectIncludingPaymentMethodDetails, '
|
|
86
|
+
export type IObject = Pick<IObjectIncludingPaymentMethodDetails, 'typeOf' | 'paymentMethodId' | 'accountId'>;
|
|
87
87
|
export interface IResultPaymentMethod {
|
|
88
88
|
/**
|
|
89
89
|
* 決済方法区分
|