@chevre/factory 4.363.0-alpha.1 → 4.363.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/check/paymentMethod/movieTicket.d.ts +1 -1
- package/lib/action/trade/pay.d.ts +3 -8
- package/lib/action/trade/refund.d.ts +28 -4
- package/lib/action/transfer/return/order.d.ts +1 -0
- package/lib/assetTransaction/refund.d.ts +2 -2
- package/lib/event/anyEvent.d.ts +2 -2
- package/lib/event/screeningEvent.d.ts +2 -3
- package/lib/event/screeningEventSeries.d.ts +3 -2
- package/lib/event.d.ts +1 -0
- package/lib/task/refund.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as surfrock from '@surfrock/sdk';
|
|
1
|
+
import type * as surfrock from '@surfrock/sdk';
|
|
2
2
|
import * as ActionFactory from '../../../action';
|
|
3
3
|
import { OrganizationType } from '../../../organizationType';
|
|
4
4
|
import { IMovieTicket as IMovieTicketPaymentCard, IServiceOutput as IMovieTicketServiceOutput } from '../../../paymentMethod/paymentCard/movieTicket';
|
|
@@ -10,7 +10,6 @@ import { ITotalPaymentDue, OrderType } from '../../order';
|
|
|
10
10
|
import { IMovieTicket as IMovieTicketPaymentCard } from '../../paymentMethod/paymentCard/movieTicket';
|
|
11
11
|
import { IPropertyValue } from '../../propertyValue';
|
|
12
12
|
import { PaymentServiceType } from '../../service/paymentService';
|
|
13
|
-
import { TransactionType } from '../../transactionType';
|
|
14
13
|
import { IAttributes as IInformActionAttributes } from '../interact/inform';
|
|
15
14
|
export import IAgent = ActionFactory.IParticipantAsProject;
|
|
16
15
|
export import IRecipient = ActionFactory.IParticipantAsSeller;
|
|
@@ -19,17 +18,13 @@ export interface IOrderAsPayPurpose {
|
|
|
19
18
|
confirmationNumber: string;
|
|
20
19
|
orderNumber?: string;
|
|
21
20
|
}
|
|
22
|
-
export interface
|
|
21
|
+
export interface IPurposeAsAssetTransaction {
|
|
23
22
|
typeOf: AssetTransactionType.Pay | AssetTransactionType.Refund;
|
|
24
23
|
id?: string;
|
|
25
24
|
transactionNumber?: string;
|
|
26
25
|
}
|
|
27
|
-
export
|
|
28
|
-
|
|
29
|
-
id: string;
|
|
30
|
-
}
|
|
31
|
-
export type IReturnActionAsPayPurpose = IReturnOrderActionAttributes;
|
|
32
|
-
export type IPurpose = IOrderAsPayPurpose | IAssetTransactionAsPayPurpose | IReturnActionAsPayPurpose | ITransactionAsPayPurpose;
|
|
26
|
+
export type IPurposeAsReturnAction = Pick<IReturnOrderActionAttributes, 'object' | 'typeOf'>;
|
|
27
|
+
export type IPurpose = IOrderAsPayPurpose | IPurposeAsAssetTransaction | IPurposeAsReturnAction;
|
|
33
28
|
export type AvailablePaymentMethodType = string;
|
|
34
29
|
export interface IPendingTransaction {
|
|
35
30
|
typeOf: AccountFactory.transactionType;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import type * as GMO from '@motionpicture/gmo-service';
|
|
2
|
+
import type * as surfrock from '@surfrock/sdk';
|
|
1
3
|
import * as ActionFactory from '../../action';
|
|
2
4
|
import { ActionType } from '../../actionType';
|
|
5
|
+
import { TransactionType } from '../../transactionType';
|
|
3
6
|
import { IAttributes as IInformActionAttributes } from '../interact/inform';
|
|
4
|
-
import { IPaymentMethod, IPaymentService as IPaymentServiceOnPay,
|
|
7
|
+
import { IOrderAsPayPurpose, IPaymentMethod, IPaymentService as IPaymentServiceOnPay, IPurposeAsAssetTransaction, IPurposeAsReturnAction } from './pay';
|
|
5
8
|
export type IAgent = ActionFactory.IParticipantAsSeller | ActionFactory.IParticipantAsPerson;
|
|
6
9
|
export type IRecipient = ActionFactory.IParticipant;
|
|
7
10
|
export type IPaymentService = Omit<IPaymentServiceOnPay, 'paymentMethod'> & {
|
|
@@ -9,13 +12,34 @@ export type IPaymentService = Omit<IPaymentServiceOnPay, 'paymentMethod'> & {
|
|
|
9
12
|
paymentMethod: Pick<IPaymentMethod, 'accountId' | 'name' | 'paymentMethodId' | 'typeOf' | 'additionalProperty'>;
|
|
10
13
|
};
|
|
11
14
|
export type IObject = IPaymentService[];
|
|
12
|
-
export type
|
|
15
|
+
export type IAlterTranResult = GMO.factory.credit.IAlterTranResult;
|
|
16
|
+
export interface ISeatInfoSyncResultAsError {
|
|
17
|
+
name: string;
|
|
18
|
+
message: string;
|
|
19
|
+
}
|
|
20
|
+
export type ISeatInfoSyncIn = surfrock.service.seat.factory.ISeatInfoSyncIn;
|
|
21
|
+
export type ISeatInfoSyncResult = surfrock.service.seat.factory.ISeatInfoSyncResult | ISeatInfoSyncResultAsError;
|
|
22
|
+
export interface IResult {
|
|
23
|
+
alterTranResult?: IAlterTranResult[];
|
|
24
|
+
seatInfoSyncIn?: ISeatInfoSyncIn;
|
|
25
|
+
seatInfoSyncResult?: ISeatInfoSyncResult;
|
|
26
|
+
/**
|
|
27
|
+
* ペイメントカード決済の場合
|
|
28
|
+
*/
|
|
29
|
+
accountTransaction?: {
|
|
30
|
+
transactionNumber: string;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
13
33
|
export type IInformPayment = IInformActionAttributes<{}, undefined>;
|
|
14
34
|
export interface IPotentialActions {
|
|
15
35
|
add2report: boolean;
|
|
16
36
|
informPayment?: IInformPayment[];
|
|
17
37
|
}
|
|
18
|
-
export
|
|
38
|
+
export interface IPurposeAsPlaceOrder {
|
|
39
|
+
typeOf: TransactionType.PlaceOrder;
|
|
40
|
+
id: string;
|
|
41
|
+
}
|
|
42
|
+
export type IPurpose = IOrderAsPayPurpose | IPurposeAsAssetTransaction | IPurposeAsReturnAction | IPurposeAsPlaceOrder;
|
|
19
43
|
export interface IAttributes extends ActionFactory.IAttributes<ActionType.RefundAction, IObject, IResult> {
|
|
20
44
|
agent: IAgent;
|
|
21
45
|
recipient?: IRecipient;
|
|
@@ -23,6 +47,6 @@ export interface IAttributes extends ActionFactory.IAttributes<ActionType.Refund
|
|
|
23
47
|
potentialActions?: IPotentialActions;
|
|
24
48
|
}
|
|
25
49
|
/**
|
|
26
|
-
*
|
|
50
|
+
* 返金アクション
|
|
27
51
|
*/
|
|
28
52
|
export type IAction = ActionFactory.IAction<IAttributes>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPaymentMethod,
|
|
1
|
+
import { IPaymentMethod, IPurposeAsReturnAction } from '../action/trade/pay';
|
|
2
2
|
import { IAttributes as IRefundActionAttributes, IRecipient as IRefundRecipient } from '../action/trade/refund';
|
|
3
3
|
import * as AssetTransactionFactory from '../assetTransaction';
|
|
4
4
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
@@ -26,7 +26,7 @@ export type IObjectWithoutDetail = Pick<IObject, 'typeOf' | 'id' | 'paymentMetho
|
|
|
26
26
|
export type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObjectWithoutDetail>;
|
|
27
27
|
export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObject> {
|
|
28
28
|
}
|
|
29
|
-
export type IRefundPurpose =
|
|
29
|
+
export type IRefundPurpose = IPurposeAsReturnAction;
|
|
30
30
|
export interface IPotentialActionsParams {
|
|
31
31
|
refund?: {
|
|
32
32
|
purpose?: IRefundPurpose;
|
package/lib/event/anyEvent.d.ts
CHANGED
|
@@ -155,7 +155,7 @@ export interface IOffer {
|
|
|
155
155
|
* @deprecated Use seller.makesOffer
|
|
156
156
|
*/
|
|
157
157
|
validThrough: Date;
|
|
158
|
-
unacceptedPaymentMethod?:
|
|
158
|
+
unacceptedPaymentMethod?: EventFactory.IUnacceptedPaymentMethodType[];
|
|
159
159
|
seller: ISeller;
|
|
160
160
|
}
|
|
161
161
|
export interface ILocation {
|
|
@@ -184,7 +184,7 @@ export interface IOrganizer {
|
|
|
184
184
|
/**
|
|
185
185
|
* イベント属性
|
|
186
186
|
*/
|
|
187
|
-
export interface IAttributes extends EventFactory.IAttributes<EventType.Event> {
|
|
187
|
+
export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.Event>, 'additionalProperty' | 'project' | 'identifier' | 'description' | 'eventStatus' | 'maximumAttendeeCapacity' | 'remainingAttendeeCapacity' | 'location' | 'name' | 'doorTime' | 'endDate' | 'startDate' | 'typeOf'> {
|
|
188
188
|
/**
|
|
189
189
|
* 上映場所
|
|
190
190
|
*/
|
|
@@ -87,7 +87,7 @@ export interface IOffer {
|
|
|
87
87
|
* @deprecated Use seller.makesOffer
|
|
88
88
|
*/
|
|
89
89
|
validThrough: Date;
|
|
90
|
-
unacceptedPaymentMethod?:
|
|
90
|
+
unacceptedPaymentMethod?: EventFactory.IUnacceptedPaymentMethodType[];
|
|
91
91
|
seller: ISeller;
|
|
92
92
|
}
|
|
93
93
|
export type IOffer4COA = Pick<IOffer, 'typeOf' | 'offeredThrough'> & {
|
|
@@ -169,9 +169,8 @@ export type ISuperEvent = Pick<ScreeningEventSeriesFactory.IEvent, 'typeOf' | 'i
|
|
|
169
169
|
export import IName = AnyEventFactory.IName;
|
|
170
170
|
/**
|
|
171
171
|
* イベント属性
|
|
172
|
-
* workPerformed->superEvent.workPerformed完全移行(2023-02-20~)
|
|
173
172
|
*/
|
|
174
|
-
export interface IAttributes extends
|
|
173
|
+
export interface IAttributes extends Pick<AnyEventFactory.IAttributes, 'additionalProperty' | 'project' | 'identifier' | 'description' | 'eventStatus' | 'maximumAttendeeCapacity' | 'remainingAttendeeCapacity' | 'location' | 'name' | 'doorTime' | 'endDate' | 'startDate' | 'aggregateEntranceGate' | 'aggregateReservation' | 'aggregateOffer' | 'organizer' | 'checkInCount' | 'attendeeCount'> {
|
|
175
174
|
/**
|
|
176
175
|
* 親イベント
|
|
177
176
|
* 施設コンテンツに相当
|
|
@@ -14,7 +14,7 @@ export interface IOffer {
|
|
|
14
14
|
/**
|
|
15
15
|
* 利用不可決済方法区分
|
|
16
16
|
*/
|
|
17
|
-
unacceptedPaymentMethod?:
|
|
17
|
+
unacceptedPaymentMethod?: EventFactory.IUnacceptedPaymentMethodType[];
|
|
18
18
|
}
|
|
19
19
|
export interface IVideoFormat {
|
|
20
20
|
typeOf: string;
|
|
@@ -156,7 +156,7 @@ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.Scr
|
|
|
156
156
|
* 施設コンテンツ
|
|
157
157
|
*/
|
|
158
158
|
export type IEvent = EventFactory.IEvent<IAttributes>;
|
|
159
|
-
export type ICreateParams = Pick<IAttributes, 'typeOf' | 'name' | 'duration' | 'endDate' | 'headline' | '
|
|
159
|
+
export type ICreateParams = Pick<IAttributes, 'typeOf' | 'name' | 'duration' | 'endDate' | 'headline' | 'startDate' | 'additionalProperty' | 'kanaName' | 'eventStatus' | 'description'> & {
|
|
160
160
|
subtitleLanguage?: Pick<ILanguage, 'name'>;
|
|
161
161
|
dubLanguage?: Pick<ILanguage, 'name'>;
|
|
162
162
|
location: {
|
|
@@ -165,6 +165,7 @@ export type ICreateParams = Pick<IAttributes, 'typeOf' | 'name' | 'duration' | '
|
|
|
165
165
|
*/
|
|
166
166
|
id: string;
|
|
167
167
|
};
|
|
168
|
+
offers?: Pick<IOffer, 'unacceptedPaymentMethod'>;
|
|
168
169
|
workPerformed: {
|
|
169
170
|
/**
|
|
170
171
|
* コンテンツコード
|
package/lib/event.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import * as PlaceFactory from './place';
|
|
|
7
7
|
import { IProject } from './project';
|
|
8
8
|
import { IPropertyValue } from './propertyValue';
|
|
9
9
|
import { SortType } from './sortType';
|
|
10
|
+
export type IUnacceptedPaymentMethodType = 'MovieTicket';
|
|
10
11
|
export type IOffer = Pick<OfferFactory.IOffer, 'typeOf' | 'unacceptedPaymentMethod' | 'seller' | 'eligibleQuantity' | 'itemOffered' | 'offeredThrough'>;
|
|
11
12
|
export interface IAttributes<T extends EventType> {
|
|
12
13
|
project: Pick<IProject, 'id' | 'typeOf'>;
|
package/lib/task/refund.d.ts
CHANGED