@chevre/factory 4.360.0-alpha.6 → 4.360.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.
|
@@ -17,6 +17,10 @@ export type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFact
|
|
|
17
17
|
export declare enum ObjectType {
|
|
18
18
|
SeatReservation = "SeatReservation"
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* IInstrumentAsAssetTransactionへ移行前のinstrument(~2024-03-08)
|
|
22
|
+
* @deprecated use IInstrumentAsAssetTransaction
|
|
23
|
+
*/
|
|
20
24
|
export type IInstrument<T extends WebAPIFactory.Identifier> = WebAPIFactory.IService<T> & {
|
|
21
25
|
/**
|
|
22
26
|
* Chevre->予約取引番号
|
|
@@ -24,6 +28,23 @@ export type IInstrument<T extends WebAPIFactory.Identifier> = WebAPIFactory.ISer
|
|
|
24
28
|
*/
|
|
25
29
|
transactionNumber?: string;
|
|
26
30
|
};
|
|
31
|
+
export type IInstrumentAsAssetTransaction<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? {
|
|
32
|
+
typeOf: 'COAReserveTransaction';
|
|
33
|
+
identifier: T;
|
|
34
|
+
/**
|
|
35
|
+
* Chevre->予約取引番号
|
|
36
|
+
* COA->仮予約番号
|
|
37
|
+
*/
|
|
38
|
+
transactionNumber?: string;
|
|
39
|
+
} : T extends WebAPIFactory.Identifier.Chevre ? {
|
|
40
|
+
typeOf: AssetTransactionType.Reserve;
|
|
41
|
+
identifier: T;
|
|
42
|
+
/**
|
|
43
|
+
* Chevre->予約取引番号
|
|
44
|
+
* COA->仮予約番号
|
|
45
|
+
*/
|
|
46
|
+
transactionNumber?: string;
|
|
47
|
+
} : never;
|
|
27
48
|
export type IRequestBody<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? COA.factory.reserve.IUpdTmpReserveSeatArgs : T extends WebAPIFactory.Identifier.Chevre ? {} : never;
|
|
28
49
|
export type IResponseBody<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? COA.factory.reserve.IUpdTmpReserveSeatResult : T extends WebAPIFactory.Identifier.Chevre ? {} : never;
|
|
29
50
|
export type IResultAcceptedOffer = OrderFactory.IAcceptedOffer<OrderFactory.IReservation>;
|
|
@@ -156,7 +177,7 @@ export interface IAttributes<T extends WebAPIFactory.Identifier> extends Authori
|
|
|
156
177
|
recipient: IRecipient;
|
|
157
178
|
object: IObject<T>;
|
|
158
179
|
purpose: IPurpose;
|
|
159
|
-
instrument: IInstrument<T>;
|
|
180
|
+
instrument: IInstrument<T> | IInstrumentAsAssetTransaction<T>;
|
|
160
181
|
}
|
|
161
182
|
/**
|
|
162
183
|
* 興行オファー承認アクション
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import * as waiter from '@waiter/factory';
|
|
2
2
|
import { AccountType } from '../accountType';
|
|
3
|
-
import { IObject as IConfirmReservationObject } from '../action/interact/confirm/reservation';
|
|
4
3
|
import { IAttributes as IOrderActionAttributes } from '../action/trade/order';
|
|
5
4
|
import { IObject as IGivePointAwardObject } from '../action/transfer/give/pointAward';
|
|
6
5
|
import { IEntryTranArgs, IEntryTranResult, IExecTran3dsResult, IExecTranArgs, IExecTranResult, IPaymentMethodWithoutDetail } from '../assetTransaction/pay';
|
|
7
6
|
import { IExtendId } from '../autoGenerated';
|
|
8
7
|
import { IClientUser } from '../clientUser';
|
|
9
8
|
import * as OrderFactory from '../order';
|
|
10
|
-
import {
|
|
11
|
-
import * as WebAPIFactory from '../service/webAPI';
|
|
9
|
+
import { IProject } from '../project';
|
|
12
10
|
import * as TransactionFactory from '../transaction';
|
|
13
11
|
import { TransactionType } from '../transactionType';
|
|
14
12
|
export interface IMemberOfPayload {
|
|
13
|
+
iss: string;
|
|
15
14
|
sub: string;
|
|
16
15
|
}
|
|
17
16
|
/**
|
|
@@ -104,26 +103,13 @@ export type ISeller = TransactionFactory.ISeller & Pick<OrderFactory.ISeller, 'a
|
|
|
104
103
|
/**
|
|
105
104
|
* 取引開始パラメーター
|
|
106
105
|
*/
|
|
107
|
-
export interface IStartParams extends
|
|
106
|
+
export interface IStartParams extends Pick<TransactionFactory.IStartParams<TransactionType.PlaceOrder, IAgent, undefined, IObject>, 'agent' | 'project' | 'object' | 'typeOf'> {
|
|
108
107
|
/**
|
|
109
108
|
* 販売者
|
|
110
109
|
*/
|
|
111
110
|
seller: ISeller;
|
|
112
111
|
expiresInSeconds: number;
|
|
113
112
|
}
|
|
114
|
-
/**
|
|
115
|
-
* 注文通知パラメータ
|
|
116
|
-
*/
|
|
117
|
-
export type IInformOrderParams = IInformParams;
|
|
118
|
-
/**
|
|
119
|
-
* 予約確定パラメータ
|
|
120
|
-
*/
|
|
121
|
-
export interface IConfirmReservationParams {
|
|
122
|
-
/**
|
|
123
|
-
* 確定対象
|
|
124
|
-
*/
|
|
125
|
-
object?: IConfirmReservationObject<WebAPIFactory.Identifier>;
|
|
126
|
-
}
|
|
127
113
|
type ISendEmailMessageParams = TransactionFactory.ISendEmailMessageParams;
|
|
128
114
|
/**
|
|
129
115
|
* インセンティブ付与パラメータ
|