@chevre/factory 4.375.0-alpha.9 → 4.375.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.
- package/lib/action/accept/coaOffer.d.ts +2 -1
- package/lib/action/authorize/offer/eventService.d.ts +18 -43
- package/lib/action/authorize/paymentMethod/any.d.ts +4 -5
- package/lib/action/check/paymentMethod/movieTicket.d.ts +1 -1
- package/lib/action/interact/confirm/reservation.d.ts +1 -1
- package/lib/action/trade/order.d.ts +11 -5
- package/lib/action/transfer/return/invoice.d.ts +2 -1
- package/lib/action/transfer/return/order.d.ts +5 -3
- package/lib/action/transfer/return/reserveTransaction.d.ts +1 -1
- package/lib/action/transfer/send/message/email.d.ts +1 -4
- package/lib/action/transfer/send/order.d.ts +1 -11
- package/lib/assetTransaction.d.ts +0 -11
- package/lib/assetTransactionType.d.ts +5 -1
- package/lib/assetTransactionType.js +4 -0
- package/lib/index.d.ts +0 -2
- package/lib/index.js +2 -3
- package/lib/project.d.ts +6 -1
- package/lib/seller.d.ts +4 -0
- package/lib/task/checkMovieTicket.d.ts +4 -2
- package/lib/task/onAssetTransactionStatusChanged.d.ts +1 -1
- package/lib/task/sendEmailMessage.d.ts +3 -2
- package/lib/transaction/placeOrder.d.ts +4 -10
- package/lib/transaction/returnOrder.d.ts +5 -0
- package/lib/transaction.d.ts +0 -11
- package/package.json +1 -1
- package/lib/transactionTasksExportationStatus.d.ts +0 -17
- package/lib/transactionTasksExportationStatus.js +0 -21
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as ActionFactory from '../../action';
|
|
2
2
|
import { IAcceptedOfferBeforeAuthorize4COA, IAction as IAuthorizeOfferAction, IObjectWithoutDetail, IPurpose } from '../../action/authorize/offer/eventService';
|
|
3
3
|
import { ActionType } from '../../actionType';
|
|
4
|
+
import { AssetTransactionType } from '../../assetTransactionType';
|
|
4
5
|
import { OfferType } from '../../offerType';
|
|
5
6
|
import { IRecipe, IUpdTmpReserveSeatArgs, IUpdTmpReserveSeatResult } from '../../recipe/acceptCOAOffer';
|
|
6
7
|
import { Identifier } from '../../service/webAPI';
|
|
@@ -62,7 +63,7 @@ export interface IPotentialActions {
|
|
|
62
63
|
typeOf: IAuthorizeOfferAction<Identifier.COA>['typeOf'];
|
|
63
64
|
}
|
|
64
65
|
export interface IInstrument {
|
|
65
|
-
typeOf:
|
|
66
|
+
typeOf: AssetTransactionType.COAReserveTransaction;
|
|
66
67
|
}
|
|
67
68
|
export interface IAttributes extends Pick<AcceptActionFactory.IAttributes<IObject, IResult>, 'agent' | 'error' | 'instrument' | 'object' | 'potentialActions' | 'purpose' | 'result' | 'project' | 'sameAs' | 'typeOf'> {
|
|
68
69
|
agent: IAgent;
|
|
@@ -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,21 @@ 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
|
-
typeOf:
|
|
23
|
+
typeOf: AssetTransactionType.COAReserveTransaction;
|
|
35
24
|
identifier: T;
|
|
36
25
|
/**
|
|
37
|
-
*
|
|
38
|
-
*
|
|
26
|
+
* 仮予約番号
|
|
27
|
+
* ある時期(2023-09-12頃)以前では空文字のケースがあるので中止
|
|
39
28
|
*/
|
|
40
|
-
transactionNumber
|
|
29
|
+
transactionNumber: string;
|
|
41
30
|
} : T extends WebAPIFactory.Identifier.Chevre ? {
|
|
42
31
|
typeOf: AssetTransactionType.Reserve;
|
|
43
32
|
identifier: T;
|
|
44
33
|
/**
|
|
45
|
-
*
|
|
46
|
-
* COA->仮予約番号
|
|
34
|
+
* 予約取引番号
|
|
47
35
|
*/
|
|
48
|
-
transactionNumber
|
|
36
|
+
transactionNumber: string;
|
|
49
37
|
} : never;
|
|
50
38
|
export type IRequestBody<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? COA.factory.reserve.IUpdTmpReserveSeatArgs : T extends WebAPIFactory.Identifier.Chevre ? {} : never;
|
|
51
39
|
export type IResponseBody<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? COA.factory.reserve.IUpdTmpReserveSeatResult : T extends WebAPIFactory.Identifier.Chevre ? {} : never;
|
|
@@ -151,50 +139,37 @@ export type IAcceptedOfferWithoutDetail<T extends WebAPIFactory.Identifier> = T
|
|
|
151
139
|
export type IObjectWithoutDetail<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IObjectWithoutDetail4COA : T extends WebAPIFactory.Identifier.Chevre ? IObjectWithoutDetail4chevre : never;
|
|
152
140
|
export type ICOAPendingTransaction = Pick<COA.factory.reserve.IDelTmpReserveArgs, 'theaterCode' | 'dateJouei' | 'titleCode' | 'titleBranchNum' | 'timeBegin' | 'tmpReserveNum'> & {
|
|
153
141
|
transactionNumber: string;
|
|
154
|
-
typeOf:
|
|
155
|
-
};
|
|
156
|
-
export interface IChevrePendingTransaction {
|
|
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
|
-
};
|
|
142
|
+
typeOf: AssetTransactionType.COAReserveTransaction;
|
|
165
143
|
};
|
|
144
|
+
export type IEventInObject = Pick<IEvent, 'id' | 'typeOf'> & {};
|
|
166
145
|
/**
|
|
167
146
|
* 興行オファー承認アクション対象
|
|
168
147
|
*/
|
|
169
|
-
export
|
|
148
|
+
export interface IObject {
|
|
170
149
|
typeOf: ObjectType;
|
|
171
|
-
event?:
|
|
172
|
-
acceptedOffer?: IAcceptedOffer<T>[];
|
|
150
|
+
event?: IEventInObject;
|
|
173
151
|
/**
|
|
174
152
|
* recipe有(仮予約時)のCOA興行オファー採用アクションID(2024-06-11~)
|
|
175
153
|
*/
|
|
176
154
|
id?: string;
|
|
177
155
|
/**
|
|
178
|
-
* 進行中取引
|
|
156
|
+
* COA進行中取引(仮予約削除時に利用)
|
|
157
|
+
* discontinue on Chevre(2024-06-22~)
|
|
179
158
|
*/
|
|
180
|
-
pendingTransaction
|
|
181
|
-
|
|
182
|
-
* result.acceptedOffers廃止に際して使用有無を保管
|
|
183
|
-
*/
|
|
184
|
-
useResultAcceptedOffers?: boolean;
|
|
185
|
-
} & Omit<IObjectWithoutDetail<T>, 'acceptedOffer' | 'reservationFor'>;
|
|
159
|
+
pendingTransaction?: ICOAPendingTransaction;
|
|
160
|
+
}
|
|
186
161
|
export interface IPurpose {
|
|
187
162
|
typeOf: TransactionType.PlaceOrder;
|
|
188
163
|
id: string;
|
|
189
164
|
}
|
|
190
165
|
export type IError = any;
|
|
191
|
-
export interface IAttributes<T extends WebAPIFactory.Identifier> extends AuthorizeActionFactory.IAttributes<IObject
|
|
166
|
+
export interface IAttributes<T extends WebAPIFactory.Identifier> extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
|
|
192
167
|
typeOf: ActionType.AuthorizeAction;
|
|
193
168
|
agent: IAgent;
|
|
194
169
|
recipient: IRecipient;
|
|
195
|
-
object: IObject
|
|
170
|
+
object: IObject;
|
|
196
171
|
purpose: IPurpose;
|
|
197
|
-
instrument:
|
|
172
|
+
instrument: IInstrumentAsAssetTransaction<T>;
|
|
198
173
|
}
|
|
199
174
|
/**
|
|
200
175
|
* 興行オファー承認アクション
|
|
@@ -16,10 +16,7 @@ export declare enum ResultType {
|
|
|
16
16
|
}
|
|
17
17
|
export { ICreditCard, IFromLocation, ITokenizedPaymentCard };
|
|
18
18
|
export import IPurchaseNumberAuthResult = CheckMovieTicketActionFactory.IPurchaseNumberAuthResult;
|
|
19
|
-
|
|
20
|
-
* 承認対象
|
|
21
|
-
*/
|
|
22
|
-
export interface IObject {
|
|
19
|
+
export interface IObjectIncludingPaymentMethodDetails {
|
|
23
20
|
/**
|
|
24
21
|
* The identifier for the account the payment will be applied to.
|
|
25
22
|
* MovieTicket->購入管理番号
|
|
@@ -79,13 +76,14 @@ export interface IObject {
|
|
|
79
76
|
*/
|
|
80
77
|
movieTickets?: IMovieTicket[];
|
|
81
78
|
}
|
|
82
|
-
export type IObjectWithoutDetail = Pick<
|
|
79
|
+
export type IObjectWithoutDetail = Pick<IObjectIncludingPaymentMethodDetails, 'additionalProperty' | 'amount' | 'issuedThrough' | 'paymentMethod' | 'description' | 'name' | 'creditCard' | 'method' | 'movieTickets' | 'fromLocation'> & {
|
|
83
80
|
/**
|
|
84
81
|
* 外部決済URL発行の場合に指定
|
|
85
82
|
* CreditCardのみ対応
|
|
86
83
|
*/
|
|
87
84
|
paymentMethodId?: string;
|
|
88
85
|
};
|
|
86
|
+
export type IObject = Pick<IObjectIncludingPaymentMethodDetails, 'typeOf' | 'paymentMethodId' | 'accountId'>;
|
|
89
87
|
export interface IResultPaymentMethod {
|
|
90
88
|
/**
|
|
91
89
|
* 決済方法区分
|
|
@@ -143,6 +141,7 @@ export declare enum ServiceIdentifier {
|
|
|
143
141
|
}
|
|
144
142
|
export interface IInstrumentAsService {
|
|
145
143
|
typeOf: 'WebAPI';
|
|
144
|
+
transactionNumber: never;
|
|
146
145
|
identifier: ServiceIdentifier;
|
|
147
146
|
}
|
|
148
147
|
export interface IInstrumentAsAssetTransaction {
|
|
@@ -12,7 +12,7 @@ export type IObject4COA = IUpdReserveArgs & {
|
|
|
12
12
|
* 取引番号は必須
|
|
13
13
|
*/
|
|
14
14
|
transactionNumber: string;
|
|
15
|
-
typeOf:
|
|
15
|
+
typeOf: AssetTransactionType.COAReserveTransaction;
|
|
16
16
|
};
|
|
17
17
|
export type IObject4Chevre = Pick<ReserveTransactionFactory.IConfirmParams, 'transactionNumber' | 'potentialActions'> & {
|
|
18
18
|
/**
|
|
@@ -2,20 +2,26 @@ import * as ActionFactory from '../../action';
|
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
3
|
import { ISimpleOrder } from '../../order';
|
|
4
4
|
import { TransactionType } from '../../transactionType';
|
|
5
|
-
import { IAttributes as
|
|
5
|
+
import { IAttributes as ISendEmailMessageActionAttributes } from '../transfer/send/message/email';
|
|
6
6
|
export type IAgent = ActionFactory.IParticipant;
|
|
7
7
|
export type IRecipient = ActionFactory.IParticipant;
|
|
8
8
|
export type IObject = ISimpleOrder;
|
|
9
|
-
export
|
|
10
|
-
|
|
9
|
+
export interface IResult {
|
|
10
|
+
}
|
|
11
|
+
export type IPotentialSendEmailMessageAction = Pick<ISendEmailMessageActionAttributes, 'object'>;
|
|
12
|
+
export interface IPotentialSendOrderAction {
|
|
13
|
+
potentialActions?: {
|
|
14
|
+
sendEmailMessage?: IPotentialSendEmailMessageAction[];
|
|
15
|
+
};
|
|
16
|
+
}
|
|
11
17
|
export interface IPotentialActions {
|
|
12
|
-
sendOrder?:
|
|
18
|
+
sendOrder?: IPotentialSendOrderAction;
|
|
13
19
|
}
|
|
14
20
|
export interface IPurpose {
|
|
15
21
|
typeOf: TransactionType.PlaceOrder;
|
|
16
22
|
id: string;
|
|
17
23
|
}
|
|
18
|
-
export interface IAttributes extends ActionFactory.IAttributes<ActionType.OrderAction, IObject, IResult> {
|
|
24
|
+
export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.OrderAction, IObject, IResult>, 'typeOf' | 'result' | 'purpose' | 'project' | 'potentialActions' | 'object' | 'error' | 'agent'> {
|
|
19
25
|
potentialActions?: IPotentialActions;
|
|
20
26
|
purpose?: IPurpose;
|
|
21
27
|
}
|
|
@@ -10,11 +10,12 @@ export type IRecipient = Pick<ActionFactory.IParticipantAsCustomer, IRecipientAt
|
|
|
10
10
|
export type IObject = Pick<IReferencedInvoice, 'accountId' | 'issuedThrough' | 'paymentMethod' | 'paymentMethodId' | 'totalPaymentDue' | 'name' | 'additionalProperty'> & Pick<IInvoice, 'typeOf'>;
|
|
11
11
|
export interface IResult {
|
|
12
12
|
}
|
|
13
|
+
export type IPotentialSendEmailMessageAction = Pick<ISendEmailMessageActionAttributes, 'object'>;
|
|
13
14
|
export interface IPotentialActions {
|
|
14
15
|
/**
|
|
15
16
|
* 返金処理完了を通知するEメール送信アクション
|
|
16
17
|
*/
|
|
17
|
-
sendEmailMessage?:
|
|
18
|
+
sendEmailMessage?: IPotentialSendEmailMessageAction[];
|
|
18
19
|
}
|
|
19
20
|
export type IPurpose = ISimpleOrder;
|
|
20
21
|
export interface IInstrument {
|
|
@@ -16,7 +16,9 @@ export type IObject = OrderFactory.ISimpleOrder & {
|
|
|
16
16
|
dateReturned: Date;
|
|
17
17
|
};
|
|
18
18
|
export type IResult = any;
|
|
19
|
-
export type IPotentialReturnInvoiceAction = Pick<IReturnInvoiceActionAttributes, '
|
|
19
|
+
export type IPotentialReturnInvoiceAction = Pick<IReturnInvoiceActionAttributes, 'object' | 'potentialActions'>;
|
|
20
|
+
export type IPotentialReturnPointAwardAction = ReturnPointAwardActionFactory.IAttributes;
|
|
21
|
+
export type IPotentialSendEmailMessageAction = Pick<ISendEmailMessageActionAttributes, 'object'>;
|
|
20
22
|
export interface IPotentialActions {
|
|
21
23
|
/**
|
|
22
24
|
* 決済返却アクション
|
|
@@ -26,11 +28,11 @@ export interface IPotentialActions {
|
|
|
26
28
|
/**
|
|
27
29
|
* ポイントインセンティブ返却アクション
|
|
28
30
|
*/
|
|
29
|
-
returnPointAward:
|
|
31
|
+
returnPointAward: IPotentialReturnPointAwardAction[];
|
|
30
32
|
/**
|
|
31
33
|
* Eメール送信アクション
|
|
32
34
|
*/
|
|
33
|
-
sendEmailMessage?:
|
|
35
|
+
sendEmailMessage?: IPotentialSendEmailMessageAction[];
|
|
34
36
|
}
|
|
35
37
|
export interface IAttributes extends ReturnActionFactory.IAttributes<IObject, IResult> {
|
|
36
38
|
agent: IAgent;
|
|
@@ -8,7 +8,7 @@ export { IRecipe as IReturnCOAReserveRecipe };
|
|
|
8
8
|
export type IAgent = ActionFactory.IParticipantAsProject;
|
|
9
9
|
export type IRecipient = ActionFactory.IParticipantAsSeller;
|
|
10
10
|
export type IObject4COA = IStateReserveArgs & {
|
|
11
|
-
typeOf:
|
|
11
|
+
typeOf: AssetTransactionType.COAReserveTransaction;
|
|
12
12
|
};
|
|
13
13
|
export interface IObject4Chevre {
|
|
14
14
|
typeOf: AssetTransactionType.Reserve;
|
|
@@ -15,12 +15,9 @@ export interface IResult {
|
|
|
15
15
|
statusMessage?: string;
|
|
16
16
|
}
|
|
17
17
|
export type IPurpose = ISimpleOrder;
|
|
18
|
-
export interface
|
|
19
|
-
}
|
|
20
|
-
export interface IAttributes extends SendActionFactory.IAttributes<IObject, IResult> {
|
|
18
|
+
export interface IAttributes extends Pick<SendActionFactory.IAttributes<IObject, IResult>, 'typeOf' | 'sameAs' | 'result' | 'recipient' | 'purpose' | 'project' | 'object' | 'error' | 'agent'> {
|
|
21
19
|
agent: IAgent;
|
|
22
20
|
purpose: IPurpose;
|
|
23
|
-
potentialActions?: IPotentialActions;
|
|
24
21
|
recipient: IRecipient;
|
|
25
22
|
}
|
|
26
23
|
/**
|
|
@@ -2,7 +2,6 @@ import { IParticipantAsCustomer, IParticipantAsPerson, IParticipantAsProject, IP
|
|
|
2
2
|
import * as OrderFactory from '../../../order';
|
|
3
3
|
import { IGood, IOwnershipInfo } from '../../../ownershipInfo';
|
|
4
4
|
import * as SendActionFactory from '../send';
|
|
5
|
-
import { IAttributes as ISendEmailMessageActionAttributes } from './message/email';
|
|
6
5
|
export type IAgent = IParticipantAsPerson | IParticipantAsProject | IParticipantAsWebApplication;
|
|
7
6
|
export type IRecipient = IParticipantAsWebApplication | IParticipantAsPerson | IParticipantAsCustomer;
|
|
8
7
|
export type IObject = OrderFactory.ISimpleOrder & {
|
|
@@ -18,18 +17,9 @@ export type IObject = OrderFactory.ISimpleOrder & {
|
|
|
18
17
|
* 注文配送結果としての所有権
|
|
19
18
|
*/
|
|
20
19
|
export type IResult = IOwnershipInfo<IGood>[];
|
|
21
|
-
export
|
|
22
|
-
export interface IPotentialActions {
|
|
23
|
-
/**
|
|
24
|
-
* Eメール送信アクション
|
|
25
|
-
* 注文処理後のメッセージ送信として機能しているので注意
|
|
26
|
-
*/
|
|
27
|
-
sendEmailMessage?: ISendEmailMessage[];
|
|
28
|
-
}
|
|
29
|
-
export interface IAttributes extends SendActionFactory.IAttributes<IObject, IResult> {
|
|
20
|
+
export interface IAttributes extends Pick<SendActionFactory.IAttributes<IObject, IResult>, 'typeOf' | 'result' | 'recipient' | 'project' | 'object' | 'error' | 'agent'> {
|
|
30
21
|
agent: IAgent;
|
|
31
22
|
recipient: IRecipient;
|
|
32
|
-
potentialActions?: IPotentialActions;
|
|
33
23
|
}
|
|
34
24
|
/**
|
|
35
25
|
* 注文配送アクション
|
|
@@ -5,7 +5,6 @@ import { OrganizationType } from './organizationType';
|
|
|
5
5
|
import { PersonType } from './personType';
|
|
6
6
|
import { SortType } from './sortType';
|
|
7
7
|
import { TransactionStatusType } from './transactionStatusType';
|
|
8
|
-
import { TransactionTasksExportationStatus } from './transactionTasksExportationStatus';
|
|
9
8
|
/**
|
|
10
9
|
* 販売者主体
|
|
11
10
|
*/
|
|
@@ -103,16 +102,6 @@ export type IAttributes<TStartParams, TResult, TError, TPotentialActions> = TSta
|
|
|
103
102
|
*/
|
|
104
103
|
endDate?: Date;
|
|
105
104
|
tasksExportAction?: ITasksExportAction;
|
|
106
|
-
/**
|
|
107
|
-
* タスクエクスポート日時
|
|
108
|
-
* @deprecated use tasksExportAction
|
|
109
|
-
*/
|
|
110
|
-
tasksExportedAt?: Date;
|
|
111
|
-
/**
|
|
112
|
-
* タスクエクスポート状態
|
|
113
|
-
* @deprecated use tasksExportAction
|
|
114
|
-
*/
|
|
115
|
-
tasksExportationStatus: TransactionTasksExportationStatus;
|
|
116
105
|
/**
|
|
117
106
|
* 事後に発生するアクション
|
|
118
107
|
*/
|
|
@@ -26,5 +26,9 @@ export declare enum AssetTransactionType {
|
|
|
26
26
|
* サービス登録
|
|
27
27
|
* Service: MembershipService,PaymentCard...
|
|
28
28
|
*/
|
|
29
|
-
RegisterService = "RegisterService"
|
|
29
|
+
RegisterService = "RegisterService",
|
|
30
|
+
/**
|
|
31
|
+
* 資産取引docは存在しない
|
|
32
|
+
*/
|
|
33
|
+
COAReserveTransaction = "COAReserveTransaction"
|
|
30
34
|
}
|
|
@@ -31,4 +31,8 @@ var AssetTransactionType;
|
|
|
31
31
|
* Service: MembershipService,PaymentCard...
|
|
32
32
|
*/
|
|
33
33
|
AssetTransactionType["RegisterService"] = "RegisterService";
|
|
34
|
+
/**
|
|
35
|
+
* 資産取引docは存在しない
|
|
36
|
+
*/
|
|
37
|
+
AssetTransactionType["COAReserveTransaction"] = "COAReserveTransaction";
|
|
34
38
|
})(AssetTransactionType = exports.AssetTransactionType || (exports.AssetTransactionType = {}));
|
package/lib/index.d.ts
CHANGED
|
@@ -189,7 +189,6 @@ import * as RegisterServiceAssetTransactionFactory from './assetTransaction/regi
|
|
|
189
189
|
import * as ReserveAssetTransactionFactory from './assetTransaction/reserve';
|
|
190
190
|
import { AssetTransactionType } from './assetTransactionType';
|
|
191
191
|
import { TransactionStatusType } from './transactionStatusType';
|
|
192
|
-
import { TransactionTasksExportationStatus } from './transactionTasksExportationStatus';
|
|
193
192
|
import * as TransactionFactory from './transaction';
|
|
194
193
|
import * as MoneyTransferTransactionFactory from './transaction/moneyTransfer';
|
|
195
194
|
import * as PlaceOrderTransactionFactory from './transaction/placeOrder';
|
|
@@ -515,7 +514,6 @@ export declare namespace transaction {
|
|
|
515
514
|
}
|
|
516
515
|
export import transactionType = TransactionType;
|
|
517
516
|
export import transactionStatusType = TransactionStatusType;
|
|
518
|
-
export import transactionTasksExportationStatus = TransactionTasksExportationStatus;
|
|
519
517
|
export import assetTransactionType = AssetTransactionType;
|
|
520
518
|
export import unitCode = UnitCode;
|
|
521
519
|
export import unitPriceOffer = UnitPriceOfferFactory;
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.project = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = exports.permit = exports.paymentStatusType = exports.paymentMethod = exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.order = exports.offerType = exports.offerItemCondition = exports.offerCatalog = exports.offer = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.iam = exports.eventType = exports.eventStatusType = exports.encodingFormat = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.categoryCode = exports.authorization = exports.aggregateOffer = exports.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.errorCode = exports.errors = exports.waiter = exports.cognito = void 0;
|
|
4
|
-
exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.
|
|
4
|
+
exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = void 0;
|
|
5
5
|
/**
|
|
6
6
|
* factory
|
|
7
7
|
*/
|
|
@@ -158,7 +158,6 @@ var RegisterServiceAssetTransactionFactory = require("./assetTransaction/registe
|
|
|
158
158
|
var ReserveAssetTransactionFactory = require("./assetTransaction/reserve");
|
|
159
159
|
var assetTransactionType_1 = require("./assetTransactionType");
|
|
160
160
|
var transactionStatusType_1 = require("./transactionStatusType");
|
|
161
|
-
var transactionTasksExportationStatus_1 = require("./transactionTasksExportationStatus");
|
|
162
161
|
var MoneyTransferTransactionFactory = require("./transaction/moneyTransfer");
|
|
163
162
|
var PlaceOrderTransactionFactory = require("./transaction/placeOrder");
|
|
164
163
|
var ReturnOrderTransactionFactory = require("./transaction/returnOrder");
|
|
@@ -449,7 +448,7 @@ var transaction;
|
|
|
449
448
|
})(transaction = exports.transaction || (exports.transaction = {}));
|
|
450
449
|
exports.transactionType = transactionType_1.TransactionType;
|
|
451
450
|
exports.transactionStatusType = transactionStatusType_1.TransactionStatusType;
|
|
452
|
-
|
|
451
|
+
// export import transactionTasksExportationStatus = TransactionTasksExportationStatus; // discontinue(2024-06-20~)
|
|
453
452
|
exports.assetTransactionType = assetTransactionType_1.AssetTransactionType;
|
|
454
453
|
exports.unitCode = unitCode_1.UnitCode;
|
|
455
454
|
exports.unitPriceOffer = UnitPriceOfferFactory;
|
package/lib/project.d.ts
CHANGED
|
@@ -75,7 +75,12 @@ export interface ISubscription {
|
|
|
75
75
|
*/
|
|
76
76
|
useOfferCatalogItem?: boolean;
|
|
77
77
|
}
|
|
78
|
-
export type IHasMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'sameAs' | 'typeOf'
|
|
78
|
+
export type IHasMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'sameAs' | 'typeOf'> & {
|
|
79
|
+
/**
|
|
80
|
+
* ポリシー識別子(プロジェクト自動生成)
|
|
81
|
+
*/
|
|
82
|
+
identifier?: string;
|
|
83
|
+
};
|
|
79
84
|
export interface IMakesOffer extends Pick<IOffer, 'typeOf' | 'availableAtOrFrom'> {
|
|
80
85
|
availableAtOrFrom: IAvailableAtOrFrom[];
|
|
81
86
|
/**
|
package/lib/seller.d.ts
CHANGED
|
@@ -11,6 +11,10 @@ import { SortType } from './sortType';
|
|
|
11
11
|
import { UnitCode } from './unitCode';
|
|
12
12
|
export type ISellerMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'itemCondition' | 'typeOf' | 'merchantReturnDays' | 'restockingFee' | 'url' | 'applicablePaymentMethod'> & {
|
|
13
13
|
restockingFee: IRestockingFee;
|
|
14
|
+
/**
|
|
15
|
+
* ポリシー識別子(プロジェクト自動生成)
|
|
16
|
+
*/
|
|
17
|
+
identifier?: string;
|
|
14
18
|
};
|
|
15
19
|
export type IHasMerchantReturnPolicy = ISellerMerchantReturnPolicy[];
|
|
16
20
|
/**
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { IAttributes as ICheckMovieTicketActionAttributes } from '../action/check/paymentMethod/movieTicket';
|
|
1
|
+
import { IAttributes as ICheckMovieTicketActionAttributes, IPurpose } from '../action/check/paymentMethod/movieTicket';
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
3
|
import * as TaskFactory from '../task';
|
|
4
4
|
import { TaskName } from '../taskName';
|
|
5
|
-
export
|
|
5
|
+
export interface IData extends Pick<ICheckMovieTicketActionAttributes, 'agent' | 'object' | 'project' | 'purpose' | 'typeOf'> {
|
|
6
|
+
purpose: IPurpose;
|
|
7
|
+
}
|
|
6
8
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
7
9
|
name: TaskName.CheckMovieTicket;
|
|
8
10
|
data: IData;
|
|
@@ -21,7 +21,7 @@ export interface IObjectAsPayTransaction {
|
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
export interface IObjectAsReserveTransaction {
|
|
24
|
-
typeOf: AssetTransactionType.Reserve |
|
|
24
|
+
typeOf: AssetTransactionType.Reserve | AssetTransactionType.COAReserveTransaction;
|
|
25
25
|
transactionNumber: string;
|
|
26
26
|
status: TransactionStatusType.Confirmed;
|
|
27
27
|
}
|
|
@@ -2,17 +2,18 @@ import { IAttributes as ISendEmailMessageActionAttributest } from '../action/tra
|
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
3
|
import * as TaskFactory from '../task';
|
|
4
4
|
import { TaskName } from '../taskName';
|
|
5
|
+
export type IActionAttributes = Pick<ISendEmailMessageActionAttributest, 'agent' | 'object' | 'project' | 'purpose' | 'recipient' | 'typeOf'>;
|
|
5
6
|
export interface IData {
|
|
6
7
|
/**
|
|
7
8
|
* Eメール送信アクション属性
|
|
8
9
|
*/
|
|
9
|
-
actionAttributes:
|
|
10
|
+
actionAttributes: IActionAttributes;
|
|
10
11
|
}
|
|
11
12
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
12
13
|
name: TaskName.SendEmailMessage;
|
|
13
14
|
data: IData;
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
16
|
-
* E
|
|
17
|
+
* Eメール送信タスク
|
|
17
18
|
*/
|
|
18
19
|
export type ITask = IExtendId<IAttributes>;
|
|
@@ -22,7 +22,7 @@ export type IAgent = TransactionFactory.IAgent & {
|
|
|
22
22
|
memberOfToken?: string;
|
|
23
23
|
memberOfPayload?: IMemberOfPayload;
|
|
24
24
|
};
|
|
25
|
-
export type
|
|
25
|
+
export type ICustomerInObject = Pick<OrderFactory.ICustomer, 'id' | 'identifier' | 'typeOf'>;
|
|
26
26
|
export interface IPaymentMethodByPaymentUrl {
|
|
27
27
|
/**
|
|
28
28
|
* 決済採用時に発行済の決済方法ID
|
|
@@ -39,8 +39,8 @@ export interface IAwardAccount {
|
|
|
39
39
|
}
|
|
40
40
|
export interface IObject {
|
|
41
41
|
clientUser?: Omit<IClientUser, 'scope' | 'scopes'>;
|
|
42
|
-
broker?: OrderFactory.IBroker
|
|
43
|
-
customer?:
|
|
42
|
+
broker?: Pick<OrderFactory.IBroker, 'id' | 'typeOf'>;
|
|
43
|
+
customer?: ICustomerInObject;
|
|
44
44
|
identifier?: OrderFactory.IIdentifier;
|
|
45
45
|
/**
|
|
46
46
|
* 確認番号
|
|
@@ -75,7 +75,7 @@ export interface IStartParamsWithoutDetail {
|
|
|
75
75
|
};
|
|
76
76
|
object: {
|
|
77
77
|
clientUser?: Omit<IClientUser, 'scope' | 'scopes'>;
|
|
78
|
-
customer?:
|
|
78
|
+
customer?: ICustomerInObject;
|
|
79
79
|
passport?: TransactionFactory.IPassportBeforeStart;
|
|
80
80
|
/**
|
|
81
81
|
* 注文名称
|
|
@@ -180,12 +180,6 @@ export interface IResult {
|
|
|
180
180
|
* オファー数(2024-01-17~)
|
|
181
181
|
*/
|
|
182
182
|
numAcceptedOffers?: number;
|
|
183
|
-
options?: {
|
|
184
|
-
/**
|
|
185
|
-
* 取引resultの注文オファーを無視する(Orderに適用しない)
|
|
186
|
-
*/
|
|
187
|
-
ignoreAccpetedOffersFromResult?: boolean;
|
|
188
|
-
};
|
|
189
183
|
}
|
|
190
184
|
/**
|
|
191
185
|
* エラー
|
|
@@ -139,6 +139,7 @@ export interface IReturnFeesMovieTicket {
|
|
|
139
139
|
export type IReturnPolicyItemCondition = IOfferItemCondition;
|
|
140
140
|
/**
|
|
141
141
|
* 取引に適用される返品ポリシー
|
|
142
|
+
* 販売者の返品ポリシー、あるいは、プロジェクトの返品ポリシーから選択される
|
|
142
143
|
*/
|
|
143
144
|
export type IReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'merchantReturnDays' | 'restockingFee' | 'returnFees' | 'applicablePaymentMethod'> & {
|
|
144
145
|
returnFees: ReturnFeesEnumeration;
|
|
@@ -147,6 +148,10 @@ export type IReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'merchantRetu
|
|
|
147
148
|
*/
|
|
148
149
|
returnFeesMovieTicket?: IReturnFeesMovieTicket[];
|
|
149
150
|
itemCondition?: IReturnPolicyItemCondition;
|
|
151
|
+
/**
|
|
152
|
+
* ポリシー識別子(プロジェクト自動生成)
|
|
153
|
+
*/
|
|
154
|
+
identifier?: string;
|
|
150
155
|
};
|
|
151
156
|
/**
|
|
152
157
|
* 取引対象物
|
package/lib/transaction.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ import { IIdentifier, IPersonAttributes } from './person';
|
|
|
9
9
|
import { PersonType } from './personType';
|
|
10
10
|
import { SortType } from './sortType';
|
|
11
11
|
import { TransactionStatusType } from './transactionStatusType';
|
|
12
|
-
import { TransactionTasksExportationStatus } from './transactionTasksExportationStatus';
|
|
13
12
|
import { TransactionType } from './transactionType';
|
|
14
13
|
export interface IAgentAsWebApplication extends Pick<IWebApplication, 'id' | 'identifier' | 'typeOf'> {
|
|
15
14
|
name?: string;
|
|
@@ -116,16 +115,6 @@ export type IAttributes<TStartParams, TResult, TError, TPotentialActions> = TSta
|
|
|
116
115
|
*/
|
|
117
116
|
endDate?: Date;
|
|
118
117
|
tasksExportAction?: ITasksExportAction;
|
|
119
|
-
/**
|
|
120
|
-
* タスクエクスポート日時
|
|
121
|
-
* @deprecated use tasksExportAction
|
|
122
|
-
*/
|
|
123
|
-
tasksExportedAt?: Date;
|
|
124
|
-
/**
|
|
125
|
-
* タスクエクスポート状態
|
|
126
|
-
* @deprecated use tasksExportAction
|
|
127
|
-
*/
|
|
128
|
-
tasksExportationStatus: TransactionTasksExportationStatus;
|
|
129
118
|
/**
|
|
130
119
|
* 事後に発生するアクション
|
|
131
120
|
*/
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 取引タスクエクスポートステータス
|
|
3
|
-
*/
|
|
4
|
-
export declare enum TransactionTasksExportationStatus {
|
|
5
|
-
/**
|
|
6
|
-
* 未エクスポート
|
|
7
|
-
*/
|
|
8
|
-
Unexported = "Unexported",
|
|
9
|
-
/**
|
|
10
|
-
* エクスポート中
|
|
11
|
-
*/
|
|
12
|
-
Exporting = "Exporting",
|
|
13
|
-
/**
|
|
14
|
-
* エクスポート済
|
|
15
|
-
*/
|
|
16
|
-
Exported = "Exported"
|
|
17
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TransactionTasksExportationStatus = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* 取引タスクエクスポートステータス
|
|
6
|
-
*/
|
|
7
|
-
var TransactionTasksExportationStatus;
|
|
8
|
-
(function (TransactionTasksExportationStatus) {
|
|
9
|
-
/**
|
|
10
|
-
* 未エクスポート
|
|
11
|
-
*/
|
|
12
|
-
TransactionTasksExportationStatus["Unexported"] = "Unexported";
|
|
13
|
-
/**
|
|
14
|
-
* エクスポート中
|
|
15
|
-
*/
|
|
16
|
-
TransactionTasksExportationStatus["Exporting"] = "Exporting";
|
|
17
|
-
/**
|
|
18
|
-
* エクスポート済
|
|
19
|
-
*/
|
|
20
|
-
TransactionTasksExportationStatus["Exported"] = "Exported";
|
|
21
|
-
})(TransactionTasksExportationStatus = exports.TransactionTasksExportationStatus || (exports.TransactionTasksExportationStatus = {}));
|