@chevre/factory 4.231.0 → 4.234.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/factory/action/trade/pay.d.ts +1 -5
- package/lib/factory/action/trade/refund.d.ts +1 -1
- package/lib/factory/action/transfer/moneyTransfer.d.ts +1 -1
- package/lib/factory/action.d.ts +11 -7
- package/lib/factory/assetTransaction/pay.d.ts +31 -24
- package/lib/factory/assetTransaction/refund.d.ts +14 -15
- package/lib/factory/event/screeningEvent.d.ts +1 -1
- package/lib/factory/event/screeningEventSeries.d.ts +7 -9
- package/lib/factory/reservation/event.d.ts +2 -1
- package/package.json +1 -1
|
@@ -7,16 +7,12 @@ import { AssetTransactionType } from '../../assetTransactionType';
|
|
|
7
7
|
import { IPaymentServiceOutput } from '../../invoice';
|
|
8
8
|
import { IMonetaryAmount } from '../../monetaryAmount';
|
|
9
9
|
import { OrderType } from '../../order';
|
|
10
|
-
import { OrganizationType } from '../../organizationType';
|
|
11
10
|
import { IMovieTicket } from '../../paymentMethod/paymentCard/movieTicket';
|
|
12
11
|
import { IPropertyValue } from '../../propertyValue';
|
|
13
12
|
import { PaymentServiceType } from '../../service/paymentService';
|
|
14
13
|
import { TransactionType } from '../../transactionType';
|
|
15
14
|
import { IAttributes as IInformActionAttributes } from '../interact/inform';
|
|
16
|
-
export
|
|
17
|
-
id: string;
|
|
18
|
-
typeOf: OrganizationType.Project;
|
|
19
|
-
}
|
|
15
|
+
export declare type IAgent = ActionFactory.IParticipantAsProject;
|
|
20
16
|
export import IRecipient = ActionFactory.IParticipantAsSeller;
|
|
21
17
|
export interface IOrderAsPayPurpose {
|
|
22
18
|
typeOf: OrderType.Order;
|
|
@@ -2,7 +2,7 @@ import * as ActionFactory from '../../action';
|
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
3
|
import { IAttributes as IInformActionAttributes } from '../interact/inform';
|
|
4
4
|
import { IPaymentService as IPaymentServiceOnPay, IPayPurpose } from './pay';
|
|
5
|
-
export declare type IAgent = ActionFactory.
|
|
5
|
+
export declare type IAgent = ActionFactory.IParticipantAsSeller | ActionFactory.IParticipantAsPerson;
|
|
6
6
|
export declare type IRecipient = ActionFactory.IParticipant;
|
|
7
7
|
export declare type IPaymentService = IPaymentServiceOnPay & {
|
|
8
8
|
refundFee?: number;
|
|
@@ -13,7 +13,7 @@ export interface IPendingTransaction {
|
|
|
13
13
|
identifier?: string;
|
|
14
14
|
transactionNumber?: string;
|
|
15
15
|
}
|
|
16
|
-
export declare type IAgent = ActionFactory.
|
|
16
|
+
export declare type IAgent = ActionFactory.IParticipantAsProject | ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsSeller;
|
|
17
17
|
export declare type IRecipient = ActionFactory.IParticipant;
|
|
18
18
|
/**
|
|
19
19
|
* 匿名ロケーション
|
package/lib/factory/action.d.ts
CHANGED
|
@@ -2,12 +2,10 @@ import { ActionStatusType } from './actionStatusType';
|
|
|
2
2
|
import { ActionType } from './actionType';
|
|
3
3
|
import { IExtendId } from './autoGenerated';
|
|
4
4
|
import { CreativeWorkType } from './creativeWorkType';
|
|
5
|
-
import { ICustomer } from './customer';
|
|
6
5
|
import { OrganizationType } from './organizationType';
|
|
7
6
|
import { IPersonAttributes } from './person';
|
|
8
7
|
import { IProject } from './project';
|
|
9
8
|
import { IPropertyValue } from './propertyValue';
|
|
10
|
-
import { ISeller } from './seller';
|
|
11
9
|
import { SortType } from './sortType';
|
|
12
10
|
export interface IParticipantAsWebApplication {
|
|
13
11
|
typeOf: CreativeWorkType.WebApplication;
|
|
@@ -15,22 +13,28 @@ export interface IParticipantAsWebApplication {
|
|
|
15
13
|
name?: string;
|
|
16
14
|
url?: string;
|
|
17
15
|
}
|
|
18
|
-
export declare type IParticipantAsPerson = IPersonAttributes & {
|
|
16
|
+
export declare type IParticipantAsPerson = Omit<IPersonAttributes, 'identifier' | 'memberOf'> & {
|
|
19
17
|
name?: string;
|
|
20
18
|
url?: string;
|
|
21
19
|
};
|
|
22
|
-
export
|
|
20
|
+
export interface IParticipantAsSeller {
|
|
21
|
+
typeOf: OrganizationType.Corporation;
|
|
22
|
+
id: string;
|
|
23
23
|
name?: string;
|
|
24
|
-
|
|
24
|
+
url?: string;
|
|
25
|
+
}
|
|
25
26
|
export interface IParticipantAsProject {
|
|
26
27
|
typeOf: OrganizationType.Project;
|
|
27
28
|
id: string;
|
|
28
29
|
name?: string;
|
|
29
30
|
url?: string;
|
|
30
31
|
}
|
|
31
|
-
export
|
|
32
|
+
export interface IParticipantAsCustomer {
|
|
33
|
+
typeOf: OrganizationType.Organization;
|
|
34
|
+
id: string;
|
|
32
35
|
name?: string;
|
|
33
|
-
|
|
36
|
+
url?: string;
|
|
37
|
+
}
|
|
34
38
|
/**
|
|
35
39
|
* アクションへの関係者
|
|
36
40
|
*/
|
|
@@ -11,30 +11,6 @@ import { IPropertyValue } from '../propertyValue';
|
|
|
11
11
|
import { PaymentServiceType } from '../service/paymentService';
|
|
12
12
|
export import IAgent = AssetTransactionFactory.IAgent;
|
|
13
13
|
export declare type IRecipient = IPayRecipient;
|
|
14
|
-
export declare type IObjectWithoutDetail = IObject;
|
|
15
|
-
export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> & {
|
|
16
|
-
recipient: IRecipient;
|
|
17
|
-
purpose?: IPayPurpose;
|
|
18
|
-
};
|
|
19
|
-
export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> {
|
|
20
|
-
recipient: IRecipient;
|
|
21
|
-
}
|
|
22
|
-
export interface IPotentialActionsParams {
|
|
23
|
-
pay: {
|
|
24
|
-
purpose: IOrderAsPayPurpose;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* 確定パラメータ
|
|
29
|
-
*/
|
|
30
|
-
export interface IConfirmParams {
|
|
31
|
-
id?: string;
|
|
32
|
-
transactionNumber?: string;
|
|
33
|
-
endDate?: Date;
|
|
34
|
-
potentialActions: IPotentialActionsParams;
|
|
35
|
-
}
|
|
36
|
-
export declare type IResult = any;
|
|
37
|
-
export declare type IError = any;
|
|
38
14
|
/**
|
|
39
15
|
* ペイメントカードトークン
|
|
40
16
|
*/
|
|
@@ -103,6 +79,8 @@ export interface IPaymentMethod {
|
|
|
103
79
|
* 取引対象物
|
|
104
80
|
*/
|
|
105
81
|
export interface IObject {
|
|
82
|
+
accountId: string;
|
|
83
|
+
paymentMethodId: string;
|
|
106
84
|
typeOf: PaymentServiceType;
|
|
107
85
|
/**
|
|
108
86
|
* 発行決済サービスID
|
|
@@ -117,14 +95,43 @@ export interface IObject {
|
|
|
117
95
|
payAction?: any;
|
|
118
96
|
onPaymentStatusChanged?: IOnPaymentStatusChanged;
|
|
119
97
|
}
|
|
98
|
+
export declare type IObjectWithoutDetail = Omit<IObject, 'accountId' | 'paymentMethodId'>;
|
|
99
|
+
export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObjectWithoutDetail> & {
|
|
100
|
+
recipient: IRecipient;
|
|
101
|
+
purpose?: IPayPurpose;
|
|
102
|
+
};
|
|
103
|
+
export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> {
|
|
104
|
+
recipient: IRecipient;
|
|
105
|
+
}
|
|
120
106
|
export interface IPotentialActions {
|
|
121
107
|
/**
|
|
122
108
|
* 決済アクション
|
|
123
109
|
*/
|
|
124
110
|
pay: IPayActionAttributes[];
|
|
125
111
|
}
|
|
112
|
+
export interface IPotentialActionsParams {
|
|
113
|
+
pay: {
|
|
114
|
+
purpose: IOrderAsPayPurpose;
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* 確定パラメータ
|
|
119
|
+
*/
|
|
120
|
+
export interface IConfirmParams {
|
|
121
|
+
id?: string;
|
|
122
|
+
transactionNumber?: string;
|
|
123
|
+
endDate?: Date;
|
|
124
|
+
potentialActions: IPotentialActionsParams;
|
|
125
|
+
}
|
|
126
|
+
export declare type IResult = any;
|
|
127
|
+
export declare type IError = any;
|
|
126
128
|
export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
|
|
127
129
|
}
|
|
128
130
|
export declare type ITransaction = IExtendId<IAttributes>;
|
|
129
131
|
export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.Pay> {
|
|
132
|
+
object?: {
|
|
133
|
+
accountId?: {
|
|
134
|
+
$eq?: string;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
130
137
|
}
|
|
@@ -7,15 +7,23 @@ import { IOnPaymentStatusChanged } from '../project';
|
|
|
7
7
|
import { PaymentServiceType } from '../service/paymentService';
|
|
8
8
|
export import IAgent = AssetTransactionFactory.IAgent;
|
|
9
9
|
export declare type IRecipient = IRefundRecipient;
|
|
10
|
-
export
|
|
10
|
+
export declare type IAnyPaymentMethod = AvailablePaymentMethodType;
|
|
11
|
+
/**
|
|
12
|
+
* 取引対象物
|
|
13
|
+
*/
|
|
14
|
+
export interface IObject {
|
|
15
|
+
accountId: string;
|
|
16
|
+
paymentMethodId: string;
|
|
11
17
|
typeOf: PaymentServiceType;
|
|
12
18
|
/**
|
|
13
19
|
* 発行決済サービスID
|
|
14
20
|
*/
|
|
15
21
|
id: string;
|
|
22
|
+
onPaymentStatusChanged?: IOnPaymentStatusChanged;
|
|
16
23
|
paymentMethod: IPaymentMethod;
|
|
17
24
|
refundFee?: number;
|
|
18
25
|
}
|
|
26
|
+
export declare type IObjectWithoutDetail = Omit<IObject, 'accountId' | 'paymentMethodId' | 'onPaymentStatusChanged'>;
|
|
19
27
|
export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObjectWithoutDetail>;
|
|
20
28
|
export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObject> {
|
|
21
29
|
}
|
|
@@ -35,20 +43,6 @@ export interface IConfirmParams {
|
|
|
35
43
|
}
|
|
36
44
|
export declare type IResult = any;
|
|
37
45
|
export declare type IError = any;
|
|
38
|
-
export declare type IAnyPaymentMethod = AvailablePaymentMethodType;
|
|
39
|
-
/**
|
|
40
|
-
* 取引対象物
|
|
41
|
-
*/
|
|
42
|
-
export interface IObject {
|
|
43
|
-
typeOf: PaymentServiceType;
|
|
44
|
-
/**
|
|
45
|
-
* 発行決済サービスID
|
|
46
|
-
*/
|
|
47
|
-
id: string;
|
|
48
|
-
onPaymentStatusChanged?: IOnPaymentStatusChanged;
|
|
49
|
-
paymentMethod: IPaymentMethod;
|
|
50
|
-
refundFee?: number;
|
|
51
|
-
}
|
|
52
46
|
export interface IPotentialActions {
|
|
53
47
|
/**
|
|
54
48
|
* 返金アクション
|
|
@@ -62,4 +56,9 @@ export declare type ITransaction = IExtendId<IAttributes>;
|
|
|
62
56
|
export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
|
|
63
57
|
}
|
|
64
58
|
export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.Refund> {
|
|
59
|
+
object?: {
|
|
60
|
+
accountId?: {
|
|
61
|
+
$eq?: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
65
64
|
}
|
|
@@ -234,7 +234,7 @@ export interface ILocation {
|
|
|
234
234
|
*/
|
|
235
235
|
maximumAttendeeCapacity?: number;
|
|
236
236
|
}
|
|
237
|
-
export declare type ISuperEvent = ScreeningEventSeriesFactory.IEvent
|
|
237
|
+
export declare type ISuperEvent = Omit<ScreeningEventSeriesFactory.IEvent, 'eventStatus' | 'offers'>;
|
|
238
238
|
export declare type IName = IMultilingualString;
|
|
239
239
|
/**
|
|
240
240
|
* イベント属性
|
|
@@ -10,7 +10,7 @@ import { PlaceType } from '../placeType';
|
|
|
10
10
|
import { PriceCurrency } from '../priceCurrency';
|
|
11
11
|
import { IProject } from '../project';
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* 施設コンテンツに対するオファー
|
|
14
14
|
*/
|
|
15
15
|
export interface IOffer {
|
|
16
16
|
project: IProject;
|
|
@@ -27,7 +27,7 @@ export interface ISoundFormat {
|
|
|
27
27
|
name: string;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* コンテンツ
|
|
31
31
|
*/
|
|
32
32
|
export declare type IWorkPerformed = IMovie;
|
|
33
33
|
export interface IOrganizer {
|
|
@@ -65,7 +65,7 @@ export interface ICOAInfo {
|
|
|
65
65
|
*/
|
|
66
66
|
dateMvtkBegin: string;
|
|
67
67
|
}
|
|
68
|
-
export interface
|
|
68
|
+
export interface IEventSeriesAttributes extends EventFactory.IAttributes<EventType.ScreeningEventSeries> {
|
|
69
69
|
/**
|
|
70
70
|
* 字幕利用可能言語
|
|
71
71
|
*/
|
|
@@ -91,9 +91,6 @@ export interface IAttributes extends EventFactory.IAttributes<EventType.Screenin
|
|
|
91
91
|
*/
|
|
92
92
|
location: {
|
|
93
93
|
project: IProject;
|
|
94
|
-
/**
|
|
95
|
-
* スキーマタイプ
|
|
96
|
-
*/
|
|
97
94
|
typeOf: PlaceType.MovieTheater;
|
|
98
95
|
/**
|
|
99
96
|
* 場所ID
|
|
@@ -144,16 +141,17 @@ export interface IAttributes extends EventFactory.IAttributes<EventType.Screenin
|
|
|
144
141
|
*/
|
|
145
142
|
coaInfo?: ICOAInfo;
|
|
146
143
|
}
|
|
144
|
+
export declare type IAttributes = Omit<IEventSeriesAttributes, 'hasOfferCatalog' | 'maximumAttendeeCapacity' | 'remainingAttendeeCapacity'>;
|
|
147
145
|
/**
|
|
148
|
-
*
|
|
146
|
+
* 施設コンテンツ
|
|
149
147
|
*/
|
|
150
148
|
export declare type IEvent = EventFactory.IEvent<IAttributes>;
|
|
151
149
|
/**
|
|
152
|
-
*
|
|
150
|
+
* ソート条件
|
|
153
151
|
*/
|
|
154
152
|
export declare type ISortOrder = EventFactory.ISortOrder;
|
|
155
153
|
/**
|
|
156
|
-
*
|
|
154
|
+
* 検索条件
|
|
157
155
|
*/
|
|
158
156
|
export interface ISearchConditions extends EventFactory.ISearchConditions<EventType.ScreeningEventSeries> {
|
|
159
157
|
sort?: ISortOrder;
|
|
@@ -8,6 +8,7 @@ import { IPriceSpecification as IUnitPriceSpecification } from '../priceSpecific
|
|
|
8
8
|
import { IProject } from '../project';
|
|
9
9
|
import * as ReservationFactory from '../reservation';
|
|
10
10
|
import { ReservationType } from '../reservationType';
|
|
11
|
+
export declare type IOptimizedSuperEvent = Omit<ISuperEvent, 'subtitleLanguage' | 'dubLanguage' | 'organizer' | 'offers' | 'endDate' | 'startDate' | 'doorDate' | 'eventStatus'>;
|
|
11
12
|
export interface IReservationFor {
|
|
12
13
|
endDate: Date;
|
|
13
14
|
eventStatus: EventStatusType;
|
|
@@ -25,7 +26,7 @@ export interface IReservationFor {
|
|
|
25
26
|
name: IEventName;
|
|
26
27
|
project: IProject;
|
|
27
28
|
startDate: Date;
|
|
28
|
-
superEvent:
|
|
29
|
+
superEvent: IOptimizedSuperEvent;
|
|
29
30
|
typeOf: EventType.ScreeningEvent;
|
|
30
31
|
doorTime?: Date;
|
|
31
32
|
}
|