@chevre/factory 4.360.0-alpha.6 → 4.361.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
  * 興行オファー承認アクション
@@ -14,14 +14,6 @@ export type IRecipient = ActionFactory.IParticipantAsSeller;
14
14
  export declare enum ResultType {
15
15
  Payment = "Payment"
16
16
  }
17
- /**
18
- * 進行中取引
19
- */
20
- export interface IObjectPendingTransaction {
21
- typeOf: AssetTransactionType.MoneyTransfer;
22
- id?: string;
23
- transactionNumber?: string;
24
- }
25
17
  export { ICreditCard, IFromLocation, ITokenizedPaymentCard };
26
18
  export import IPurchaseNumberAuthResult = CheckMovieTicketActionFactory.IPurchaseNumberAuthResult;
27
19
  /**
@@ -64,10 +56,6 @@ export interface IObject {
64
56
  */
65
57
  id: string;
66
58
  };
67
- /**
68
- * 進行中取引(ペイメントカード決済)
69
- */
70
- pendingTransaction?: IObjectPendingTransaction;
71
59
  /**
72
60
  * 転送元(PaymentCard決済)
73
61
  */
@@ -140,11 +128,16 @@ export interface IPurpose {
140
128
  export declare enum ServiceIdentifier {
141
129
  Chevre = "Chevre"
142
130
  }
143
- export interface IService {
131
+ export interface IInstrumentAsService {
144
132
  typeOf: 'WebAPI';
145
133
  identifier: ServiceIdentifier;
146
134
  }
147
- export type IInstrument = IService;
135
+ export interface IInstrumentAsAssetTransaction {
136
+ typeOf: AssetTransactionType.Pay;
137
+ transactionNumber: string;
138
+ identifier: ServiceIdentifier;
139
+ }
140
+ export type IInstrument = IInstrumentAsAssetTransaction | IInstrumentAsService;
148
141
  /**
149
142
  * 決済承認アクション属性
150
143
  */
@@ -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 { IInformParams, IProject } from '../project';
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 Omit<TransactionFactory.IStartParams<TransactionType.PlaceOrder, IAgent, undefined, IObject>, 'expires'> {
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
  * インセンティブ付与パラメータ
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.360.0-alpha.6",
3
+ "version": "4.361.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",