@chevre/factory 5.4.0-alpha.4 → 5.4.0-alpha.6
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as ActionFactory from '../../action';
|
|
2
|
-
import { IPaymentMethodTicketAsInstrument } from '../../action/trade/pay';
|
|
2
|
+
import { IAcceptedPaymentMethodOfferAsInstrument, IPaymentMethodTicketAsInstrument } from '../../action/trade/pay';
|
|
3
3
|
import { ActionType } from '../../actionType';
|
|
4
4
|
import { IAgent, IObjectWithoutDetail, IPaymentMethodWithoutDetail } from '../../assetTransaction/pay';
|
|
5
5
|
import { AssetTransactionType } from '../../assetTransactionType';
|
|
@@ -30,7 +30,7 @@ export interface IPurpose {
|
|
|
30
30
|
typeOf: TransactionType.PlaceOrder;
|
|
31
31
|
id: string;
|
|
32
32
|
}
|
|
33
|
-
export type IInstrument = IPaymentMethodTicketAsInstrument;
|
|
33
|
+
export type IInstrument = IPaymentMethodTicketAsInstrument | IAcceptedPaymentMethodOfferAsInstrument;
|
|
34
34
|
/**
|
|
35
35
|
* 決済採用アクション属性
|
|
36
36
|
*/
|
|
@@ -132,6 +132,10 @@ export type IAuthorizePaymentCardObject = Pick<IObjectIncludingPaymentMethodDeta
|
|
|
132
132
|
* 決済承認リクエストの承認対象オブジェクト
|
|
133
133
|
*/
|
|
134
134
|
export type IObjectWithoutDetail = IAuthorizeAnyPaymentObject | IAuthorizeCreditCardObject | IAuthorizeMovieTicketObject | IAuthorizePaymentCardObject;
|
|
135
|
+
/**
|
|
136
|
+
* 決済承認アクションオブジェクト
|
|
137
|
+
* paymentMethodIdが決済取引の取引番号に等しい
|
|
138
|
+
*/
|
|
135
139
|
export type IObject = Pick<IObjectIncludingPaymentMethodDetails, 'typeOf' | 'paymentMethodId' | 'accountId'>;
|
|
136
140
|
export interface IResultPaymentMethod {
|
|
137
141
|
/**
|
|
@@ -205,10 +209,14 @@ export interface IInstrumentAsAssetTransaction {
|
|
|
205
209
|
identifier: ServiceIdentifier;
|
|
206
210
|
}
|
|
207
211
|
export type IInstrument = IInstrumentAsAssetTransaction;
|
|
208
|
-
export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
|
|
212
|
+
export interface IAttributes extends Pick<AuthorizeActionFactory.IAttributes<IObject, IResult>, 'typeOf' | 'sameAs' | 'result' | 'recipient' | 'purpose' | 'project' | 'object' | 'identifier' | 'error' | 'agent'> {
|
|
209
213
|
typeOf: ActionType.AuthorizeAction;
|
|
210
214
|
object: IObject;
|
|
211
215
|
agent: IAgent;
|
|
216
|
+
/**
|
|
217
|
+
* 決済取引としてのinstrument
|
|
218
|
+
* @deprecated object.paymentMethodIdに依存すること
|
|
219
|
+
*/
|
|
212
220
|
instrument: IInstrument;
|
|
213
221
|
recipient: IRecipient;
|
|
214
222
|
purpose: IPurpose;
|
|
@@ -5,6 +5,7 @@ import { ActionType } from '../../actionType';
|
|
|
5
5
|
import { AssetTransactionType } from '../../assetTransactionType';
|
|
6
6
|
import { CreativeWorkType } from '../../creativeWorkType';
|
|
7
7
|
import { IPaymentServiceOutput } from '../../invoice';
|
|
8
|
+
import { OfferType } from '../../offerType';
|
|
8
9
|
import { IOrder, ITotalPaymentDue, OrderType } from '../../order';
|
|
9
10
|
import { IMovieTicketPaymentCard } from '../../paymentMethod/paymentCard/movieTicket';
|
|
10
11
|
import { IPropertyValue } from '../../propertyValue';
|
|
@@ -118,16 +119,26 @@ export interface IPayTransactionAsInstrument {
|
|
|
118
119
|
}
|
|
119
120
|
export type IRefundActionAsInstrument = Pick<IRefundAction, 'id' | 'typeOf'>;
|
|
120
121
|
/**
|
|
121
|
-
*
|
|
122
|
+
* ツールとしての決済方法チケット
|
|
122
123
|
*/
|
|
123
124
|
export interface IPaymentMethodTicketAsInstrument {
|
|
124
125
|
ticketToken: string;
|
|
125
126
|
typeOf: 'Ticket';
|
|
126
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
* ツールとしての対応決済方法オファー
|
|
130
|
+
*/
|
|
131
|
+
export interface IAcceptedPaymentMethodOfferAsInstrument {
|
|
132
|
+
/**
|
|
133
|
+
* 対応決済方法オファーID
|
|
134
|
+
*/
|
|
135
|
+
id: string;
|
|
136
|
+
typeOf: OfferType.Offer;
|
|
137
|
+
}
|
|
127
138
|
/**
|
|
128
139
|
* 注文時の決済アクションツール
|
|
129
140
|
*/
|
|
130
|
-
export type IPlaceOrderRelatedInstrument = IPayTransactionAsInstrument | IOrderAsInstrument | IAuthorizeActionAsInstrument | IPaymentMethodTicketAsInstrument;
|
|
141
|
+
export type IPlaceOrderRelatedInstrument = IPayTransactionAsInstrument | IOrderAsInstrument | IAuthorizeActionAsInstrument | IPaymentMethodTicketAsInstrument | IAcceptedPaymentMethodOfferAsInstrument;
|
|
131
142
|
/**
|
|
132
143
|
* 注文返品時の決済アクションツール
|
|
133
144
|
*/
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { IParticipantAsPerson, IParticipantAsSoftwareApplication, IParticipantAsWebApplication } from '../action';
|
|
1
2
|
import { IExtendId } from '../autoGenerated';
|
|
2
3
|
import { EventType } from '../eventType';
|
|
3
4
|
import * as TaskFactory from '../task';
|
|
4
5
|
import { TaskName } from '../taskName';
|
|
5
|
-
export
|
|
6
|
+
export type IAgent = IParticipantAsPerson | IParticipantAsSoftwareApplication | IParticipantAsWebApplication;
|
|
7
|
+
export interface IReplaceEventSeriesAction {
|
|
8
|
+
agent: IAgent;
|
|
6
9
|
object: {
|
|
7
10
|
locationBranchCode: string;
|
|
8
11
|
titleCode: string;
|
|
@@ -10,7 +13,8 @@ export interface ISyncEventSeriesAction {
|
|
|
10
13
|
typeOf: EventType.ScreeningEventSeries;
|
|
11
14
|
};
|
|
12
15
|
}
|
|
13
|
-
export interface
|
|
16
|
+
export interface IReplaceEventsAction {
|
|
17
|
+
agent: IAgent;
|
|
14
18
|
object: {
|
|
15
19
|
locationBranchCode: string;
|
|
16
20
|
roomCode: string;
|
|
@@ -20,7 +24,7 @@ export interface ISyncEventsAction {
|
|
|
20
24
|
typeOf: EventType.ScreeningEvent;
|
|
21
25
|
};
|
|
22
26
|
}
|
|
23
|
-
export type IData =
|
|
27
|
+
export type IData = IReplaceEventSeriesAction | IReplaceEventsAction;
|
|
24
28
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
25
29
|
name: TaskName.SyncResourcesFromCOA;
|
|
26
30
|
data: IData;
|