@chevre/factory 4.367.0-alpha.0 → 4.367.0-alpha.10
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/authorize.d.ts +2 -14
- package/lib/action/check/paymentMethod/movieTicket.d.ts +1 -1
- package/lib/action/consume/use.d.ts +1 -3
- package/lib/action/trade/pay.d.ts +1 -1
- package/lib/assetTransaction/cancelReservation.d.ts +15 -3
- package/lib/assetTransaction/pay.d.ts +6 -0
- package/lib/assetTransaction/reserve.d.ts +14 -10
- package/lib/index.d.ts +1 -1
- package/lib/order.d.ts +10 -40
- package/lib/paymentMethod/paymentCard/movieTicket.d.ts +25 -21
- package/lib/reservation.d.ts +7 -14
- package/package.json +1 -1
|
@@ -1,25 +1,13 @@
|
|
|
1
1
|
import * as ActionFactory from '../action';
|
|
2
2
|
import { ActionType } from '../actionType';
|
|
3
|
-
/**
|
|
4
|
-
* 承認対象インターフェース
|
|
5
|
-
*/
|
|
6
3
|
export type IObject = any;
|
|
7
|
-
/**
|
|
8
|
-
* 承認結果インターフェース
|
|
9
|
-
*/
|
|
10
4
|
export type IResult = any;
|
|
11
|
-
/**
|
|
12
|
-
* 承認目的インターフェース
|
|
13
|
-
*/
|
|
14
5
|
export type IPurpose = any;
|
|
15
|
-
/**
|
|
16
|
-
* アクション属性インターフェース
|
|
17
|
-
*/
|
|
18
6
|
export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes<ActionType.AuthorizeAction, TObject, TResult> {
|
|
19
|
-
purpose
|
|
7
|
+
purpose?: IPurpose;
|
|
20
8
|
recipient: ActionFactory.IParticipant;
|
|
21
9
|
}
|
|
22
10
|
/**
|
|
23
|
-
*
|
|
11
|
+
* 承認アクション
|
|
24
12
|
*/
|
|
25
13
|
export type IAction<TAttributes extends IAttributes<IObject, IResult>> = ActionFactory.IAction<TAttributes>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as surfrock from '@surfrock/sdk';
|
|
2
2
|
import * as ActionFactory from '../../../action';
|
|
3
3
|
import { OrganizationType } from '../../../organizationType';
|
|
4
|
-
import {
|
|
4
|
+
import { IMovieTicketPaymentCard, IMovieTicketServiceOutput } from '../../../paymentMethod/paymentCard/movieTicket';
|
|
5
5
|
import { TransactionType } from '../../../transactionType';
|
|
6
6
|
import * as CheckActionFactory from '../../check';
|
|
7
7
|
import * as PayActionFactory from '../../trade/pay';
|
|
@@ -2,9 +2,7 @@ import * as ActionFactory from '../../action';
|
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
3
|
export type IObject = any;
|
|
4
4
|
export type IResult = any;
|
|
5
|
-
export
|
|
6
|
-
export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes<ActionType.UseAction, TObject, TResult> {
|
|
7
|
-
purpose?: IPurpose;
|
|
5
|
+
export interface IAttributes<TObject, TResult> extends Pick<ActionFactory.IAttributes<ActionType.UseAction, TObject, TResult>, 'typeOf' | 'result' | 'project' | 'object' | 'location' | 'error' | 'instrument' | 'agent'> {
|
|
8
6
|
}
|
|
9
7
|
/**
|
|
10
8
|
* 使用アクション
|
|
@@ -7,7 +7,7 @@ import { AssetTransactionType } from '../../assetTransactionType';
|
|
|
7
7
|
import { CreativeWorkType } from '../../creativeWorkType';
|
|
8
8
|
import { IPaymentServiceOutput } from '../../invoice';
|
|
9
9
|
import { ITotalPaymentDue, OrderType } from '../../order';
|
|
10
|
-
import {
|
|
10
|
+
import { IMovieTicketPaymentCard } from '../../paymentMethod/paymentCard/movieTicket';
|
|
11
11
|
import { IPropertyValue } from '../../propertyValue';
|
|
12
12
|
import { PaymentServiceType } from '../../service/paymentService';
|
|
13
13
|
import { IAttributes as IInformActionAttributes } from '../interact/inform';
|
|
@@ -6,6 +6,7 @@ import { IExtendId } from '../autoGenerated';
|
|
|
6
6
|
import { IClientUser } from '../clientUser';
|
|
7
7
|
import { IReservation as IBusReservation, IReservationFor as IBusReservationFor } from '../reservation/busReservation';
|
|
8
8
|
import { IReservation as IEventReservation, IReservationFor as IEventReservationFor } from '../reservation/event';
|
|
9
|
+
import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
|
|
9
10
|
export import IAgent = AssetTransactionFactory.IAgent;
|
|
10
11
|
export type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.CancelReservation, IAgent, undefined, IObjectWithoutDetail>;
|
|
11
12
|
/**
|
|
@@ -22,11 +23,11 @@ export interface IObjectWithoutDetail {
|
|
|
22
23
|
clientUser?: IClientUser;
|
|
23
24
|
reservation?: {
|
|
24
25
|
/**
|
|
25
|
-
* 予約ID
|
|
26
|
+
* 予約IDで取消
|
|
26
27
|
*/
|
|
27
28
|
id?: string;
|
|
28
29
|
/**
|
|
29
|
-
*
|
|
30
|
+
* 予約番号で取消
|
|
30
31
|
*/
|
|
31
32
|
reservationNumber?: string;
|
|
32
33
|
};
|
|
@@ -45,10 +46,14 @@ export type IEventReservationAsObject = Pick<IEventReservation, 'id' | 'issuedTh
|
|
|
45
46
|
/**
|
|
46
47
|
* 取引対象物
|
|
47
48
|
*/
|
|
48
|
-
export interface IObject {
|
|
49
|
+
export interface IObject extends Pick<IReservationPackage, 'reservationNumber' | 'typeOf'> {
|
|
49
50
|
clientUser?: IClientUser;
|
|
50
51
|
transaction?: IReserveTransactionAsObject;
|
|
51
52
|
reservations?: IBusReservationAsObject[] | IEventReservationAsObject[];
|
|
53
|
+
/**
|
|
54
|
+
* 予約番号
|
|
55
|
+
*/
|
|
56
|
+
reservationNumber: string;
|
|
52
57
|
}
|
|
53
58
|
/**
|
|
54
59
|
* 取引確定パラメータ
|
|
@@ -65,5 +70,12 @@ export type ITransaction = IExtendId<IAttributes>;
|
|
|
65
70
|
*/
|
|
66
71
|
export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
|
|
67
72
|
}
|
|
73
|
+
export interface IObjectSearchConditions {
|
|
74
|
+
reservationNumber?: {
|
|
75
|
+
$eq?: string;
|
|
76
|
+
$in?: string[];
|
|
77
|
+
};
|
|
78
|
+
}
|
|
68
79
|
export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.CancelReservation> {
|
|
80
|
+
object?: IObjectSearchConditions;
|
|
69
81
|
}
|
|
@@ -71,12 +71,16 @@ export interface IBusReservatonAsItemOfferedServiceOutput {
|
|
|
71
71
|
additionalTicketText?: string;
|
|
72
72
|
programMembershipUsed?: IAcceptedProgramMembershipUsed;
|
|
73
73
|
reservedTicket?: {
|
|
74
|
+
/**
|
|
75
|
+
* チケット識別子
|
|
76
|
+
* 指定された場合、決済カードの対象チケット識別子と関連付けされます
|
|
77
|
+
* /^[0-9a-zA-Z]{8,16}$/
|
|
78
|
+
*/
|
|
79
|
+
identifier?: string;
|
|
74
80
|
issuedBy?: ReservationFactory.IUnderName;
|
|
75
81
|
typeOf: ReservationFactory.TicketType;
|
|
76
82
|
/**
|
|
77
|
-
*
|
|
78
|
-
* 指定席イベントの場合、座席を指定
|
|
79
|
-
* 自由席イベントの場合、あるいは、最大収容人数がないイベントの場合は、座席指定不要
|
|
83
|
+
* 座席指定
|
|
80
84
|
*/
|
|
81
85
|
ticketedSeat?: ReservationFactory.ISeat;
|
|
82
86
|
};
|
|
@@ -94,12 +98,16 @@ export interface IEventReservatonAsItemOfferedServiceOutput {
|
|
|
94
98
|
additionalTicketText?: string;
|
|
95
99
|
programMembershipUsed?: IAcceptedProgramMembershipUsed;
|
|
96
100
|
reservedTicket?: {
|
|
101
|
+
/**
|
|
102
|
+
* チケット識別子
|
|
103
|
+
* 指定された場合、決済カードの対象チケット識別子と関連付けされます
|
|
104
|
+
* /^[0-9a-zA-Z]{8,16}$/
|
|
105
|
+
*/
|
|
106
|
+
identifier?: string;
|
|
97
107
|
issuedBy?: ReservationFactory.IUnderName;
|
|
98
108
|
typeOf: ReservationFactory.TicketType;
|
|
99
109
|
/**
|
|
100
|
-
*
|
|
101
|
-
* 指定席イベントの場合、座席を指定
|
|
102
|
-
* 自由席イベントの場合、あるいは、最大収容人数がないイベントの場合は、座席指定不要
|
|
110
|
+
* 座席指定
|
|
103
111
|
*/
|
|
104
112
|
ticketedSeat?: ReservationFactory.ISeat;
|
|
105
113
|
};
|
|
@@ -225,10 +233,6 @@ export interface IObjectWithoutDetail {
|
|
|
225
233
|
export type IReservationFor = IBusReservationReservationFor | IEventReservationReservationFor;
|
|
226
234
|
export type IOmittedReservationProperty = 'reservationFor' | 'broker' | 'issuedThrough' | 'provider' | 'reservationStatus' | 'project' | 'reservationNumber' | 'bookingTime' | 'modifiedTime' | 'underName' | 'checkedIn' | 'attended';
|
|
227
235
|
export type IObjectSubReservation = Omit<IBusReservation, IOmittedReservationProperty> | Omit<IEventReservation, IOmittedReservationProperty>;
|
|
228
|
-
export type IObjectSubReservationReservedTicket = Pick<ReservationFactory.ITicket, 'issuedBy' | 'ticketedSeat' | 'ticketType'>;
|
|
229
|
-
export type IMinimizedObjectSubReservation = Pick<IObjectSubReservation, 'typeOf' | 'id' | 'subReservation'> & {
|
|
230
|
-
reservedTicket: IObjectSubReservationReservedTicket;
|
|
231
|
-
};
|
|
232
236
|
export type IIssuedThrough = IBusReservationIssuedThrough | IEventReservationIssuedThrough;
|
|
233
237
|
/**
|
|
234
238
|
* 取引対象物
|
package/lib/index.d.ts
CHANGED
|
@@ -340,7 +340,7 @@ export import organizationType = OrganizationType;
|
|
|
340
340
|
export import ownershipInfo = OwnershipInfoFactory;
|
|
341
341
|
export declare namespace paymentMethod {
|
|
342
342
|
type ISearchConditions = any;
|
|
343
|
-
type IPaymentMethod = CreditCardFactory.ICheckedCard | MovieTicketFactory.
|
|
343
|
+
type IPaymentMethod = CreditCardFactory.ICheckedCard | MovieTicketFactory.IMovieTicketPaymentCard;
|
|
344
344
|
namespace paymentCard {
|
|
345
345
|
export import IPaymentCard = PaymentCardFactory.IPaymentCard;
|
|
346
346
|
export import creditCard = CreditCardFactory;
|
package/lib/order.d.ts
CHANGED
|
@@ -89,28 +89,6 @@ export interface IReferencedInvoice {
|
|
|
89
89
|
additionalProperty: IPropertyValue<string>[];
|
|
90
90
|
issuedThrough: IOrderPaymentMethodIssuedThrough;
|
|
91
91
|
}
|
|
92
|
-
/**
|
|
93
|
-
* ディスカウント
|
|
94
|
-
*/
|
|
95
|
-
export interface IDiscount {
|
|
96
|
-
/**
|
|
97
|
-
* 割引タイプ
|
|
98
|
-
*/
|
|
99
|
-
typeOf: string;
|
|
100
|
-
name: string;
|
|
101
|
-
/**
|
|
102
|
-
* Any discount applied.
|
|
103
|
-
*/
|
|
104
|
-
discount: number;
|
|
105
|
-
/**
|
|
106
|
-
* Code used to redeem a discount.
|
|
107
|
-
*/
|
|
108
|
-
discountCode: string;
|
|
109
|
-
/**
|
|
110
|
-
* The currency (in 3 - letter ISO 4217 format) of the discount.
|
|
111
|
-
*/
|
|
112
|
-
discountCurrency: string;
|
|
113
|
-
}
|
|
114
92
|
export type IWorkPerformed = Pick<EventReservationFactory.IOptimizedWorkPerformed, 'typeOf' | 'id' | 'identifier' | 'name' | 'duration'>;
|
|
115
93
|
export type ISuperEvent = Pick<EventReservationFactory.IOptimizedSuperEvent, 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'videoFormat' | 'headline' | 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
|
|
116
94
|
workPerformed: IWorkPerformed;
|
|
@@ -119,7 +97,8 @@ export type ITripAsReservationFor = BusReservationFactory.IReservationFor;
|
|
|
119
97
|
export type IEventAsReservationFor = Omit<EventReservationFactory.IReservationFor, 'superEvent'> & {
|
|
120
98
|
superEvent: ISuperEvent;
|
|
121
99
|
};
|
|
122
|
-
export type IReservedTicket = Pick<ITicket, 'typeOf' | 'ticketedSeat' | '
|
|
100
|
+
export type IReservedTicket = Pick<ITicket, 'typeOf' | 'ticketedSeat' | 'identifier' | // 追加(2024-04-15~)
|
|
101
|
+
'ticketNumber' | 'dateIssued' | 'ticketToken' | 'coaTicketInfo' | 'coaReserveAmount'> & {
|
|
123
102
|
ticketType: ITicketType;
|
|
124
103
|
};
|
|
125
104
|
export type IBusReservation = Pick<BusReservationFactory.IReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'issuedThrough' | 'programMembershipUsed' | 'reservationNumber' | 'typeOf'> & {
|
|
@@ -303,10 +282,6 @@ export interface IOrder extends ISimpleOrder {
|
|
|
303
282
|
* Date order was returned.
|
|
304
283
|
*/
|
|
305
284
|
dateReturned?: Date;
|
|
306
|
-
/**
|
|
307
|
-
* discount infos
|
|
308
|
-
*/
|
|
309
|
-
discounts: IDiscount[];
|
|
310
285
|
/**
|
|
311
286
|
* The identifier property represents any kind of identifier for any kind of Thing
|
|
312
287
|
*/
|
|
@@ -528,6 +503,14 @@ export interface IAcceptedOffersSearchConditions {
|
|
|
528
503
|
* 使用メンバーシップ
|
|
529
504
|
*/
|
|
530
505
|
programMembershipUsed?: IProgramMembershipUsedSearchConditions;
|
|
506
|
+
reservedTicket?: {
|
|
507
|
+
/**
|
|
508
|
+
* 予約チケット識別子
|
|
509
|
+
*/
|
|
510
|
+
identifier?: {
|
|
511
|
+
$eq?: string;
|
|
512
|
+
};
|
|
513
|
+
};
|
|
531
514
|
};
|
|
532
515
|
serialNumber?: {
|
|
533
516
|
$eq?: string;
|
|
@@ -545,19 +528,6 @@ export interface ISearchConditions {
|
|
|
545
528
|
$eq?: string;
|
|
546
529
|
};
|
|
547
530
|
};
|
|
548
|
-
additionalProperty?: {
|
|
549
|
-
$all?: IPropertyValue<string>[];
|
|
550
|
-
$in?: IPropertyValue<string>[];
|
|
551
|
-
$nin?: IPropertyValue<string>[];
|
|
552
|
-
$elemMatch?: {
|
|
553
|
-
name?: {
|
|
554
|
-
/**
|
|
555
|
-
* 一致する名称の追加特性がひとつでも存在する
|
|
556
|
-
*/
|
|
557
|
-
$eq?: string;
|
|
558
|
-
};
|
|
559
|
-
};
|
|
560
|
-
};
|
|
561
531
|
broker?: {
|
|
562
532
|
id?: {
|
|
563
533
|
$eq?: string;
|
|
@@ -1,23 +1,43 @@
|
|
|
1
1
|
import { EventType } from '../../eventType';
|
|
2
2
|
import { ISeat } from '../../reservation';
|
|
3
3
|
import { IPaymentCard } from '../paymentCard';
|
|
4
|
-
export interface
|
|
4
|
+
export interface IMovieTicketReservationFor {
|
|
5
5
|
typeOf: EventType.ScreeningEvent;
|
|
6
6
|
id: string;
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
8
|
+
export interface IMovieTicketServiceOutput {
|
|
9
9
|
/**
|
|
10
10
|
* 予約対象イベント
|
|
11
11
|
*/
|
|
12
|
-
reservationFor:
|
|
12
|
+
reservationFor: IMovieTicketReservationFor;
|
|
13
13
|
/**
|
|
14
14
|
* 予約チケット
|
|
15
15
|
*/
|
|
16
16
|
reservedTicket: {
|
|
17
|
+
/**
|
|
18
|
+
* チケット識別子
|
|
19
|
+
* 指定された場合、予約のチケット識別子と関連付けされます
|
|
20
|
+
* /^[0-9a-zA-Z]{8,16}$/
|
|
21
|
+
*/
|
|
22
|
+
identifier?: string;
|
|
17
23
|
ticketedSeat: ISeat;
|
|
18
24
|
};
|
|
19
25
|
}
|
|
20
|
-
|
|
26
|
+
/**
|
|
27
|
+
* 決済カード
|
|
28
|
+
*/
|
|
29
|
+
export interface IMovieTicketPaymentCard extends Pick<IPaymentCard, 'accessCode' | 'amount' | 'serviceOutput' | 'serviceType' | 'identifier' | 'typeOf'> {
|
|
30
|
+
/**
|
|
31
|
+
* 決済方法区分コード
|
|
32
|
+
*/
|
|
33
|
+
typeOf: string;
|
|
34
|
+
category: {
|
|
35
|
+
/**
|
|
36
|
+
* 前売券(カード)の種類
|
|
37
|
+
* 全国券,劇場券など
|
|
38
|
+
*/
|
|
39
|
+
codeValue: string;
|
|
40
|
+
};
|
|
21
41
|
/**
|
|
22
42
|
* 購入管理番号
|
|
23
43
|
*/
|
|
@@ -33,21 +53,5 @@ export interface IAttributes extends IPaymentCard {
|
|
|
33
53
|
/**
|
|
34
54
|
* 利用対象予約
|
|
35
55
|
*/
|
|
36
|
-
serviceOutput:
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* MovieTicket決済カード
|
|
40
|
-
*/
|
|
41
|
-
export interface IMovieTicket extends IAttributes {
|
|
42
|
-
/**
|
|
43
|
-
* 決済方法区分コード
|
|
44
|
-
*/
|
|
45
|
-
typeOf: string;
|
|
46
|
-
category: {
|
|
47
|
-
/**
|
|
48
|
-
* 前売券(カード)の種類
|
|
49
|
-
* 全国券,劇場券など
|
|
50
|
-
*/
|
|
51
|
-
codeValue: string;
|
|
52
|
-
};
|
|
56
|
+
serviceOutput: IMovieTicketServiceOutput;
|
|
53
57
|
}
|
package/lib/reservation.d.ts
CHANGED
|
@@ -19,7 +19,6 @@ import { IPropertyValue } from './propertyValue';
|
|
|
19
19
|
import { ReservationStatusType } from './reservationStatusType';
|
|
20
20
|
import { ReservationType } from './reservationType';
|
|
21
21
|
import { SortType } from './sortType';
|
|
22
|
-
import { IThing } from './thing';
|
|
23
22
|
export type TicketType = 'Ticket';
|
|
24
23
|
export interface ITicketType {
|
|
25
24
|
additionalProperty?: IPropertyValue<string>[];
|
|
@@ -118,6 +117,10 @@ export interface ITicket {
|
|
|
118
117
|
* The date the ticket was used.
|
|
119
118
|
*/
|
|
120
119
|
dateUsed?: Date;
|
|
120
|
+
/**
|
|
121
|
+
* チケット識別子
|
|
122
|
+
*/
|
|
123
|
+
identifier?: string;
|
|
121
124
|
/**
|
|
122
125
|
* The organization issuing the ticket or permit.
|
|
123
126
|
*/
|
|
@@ -134,15 +137,9 @@ export interface ITicket {
|
|
|
134
137
|
*/
|
|
135
138
|
ticketedSeat?: ISeat;
|
|
136
139
|
/**
|
|
137
|
-
*
|
|
138
|
-
*/
|
|
139
|
-
/**
|
|
140
|
-
* The number or id of the ticket.
|
|
140
|
+
* The unique identifier for the ticket.
|
|
141
141
|
*/
|
|
142
142
|
ticketNumber?: string;
|
|
143
|
-
/**
|
|
144
|
-
* Where the ticket can be printed.
|
|
145
|
-
*/
|
|
146
143
|
/**
|
|
147
144
|
* If the barcode image is hosted on your site, the value of the field is URL of the image, or a barcode or QR URI,
|
|
148
145
|
* such as "barcode128:AB34" (ISO-15417 barcodes), "qrCode:AB34" (QR codes),
|
|
@@ -150,11 +147,7 @@ export interface ITicket {
|
|
|
150
147
|
*/
|
|
151
148
|
ticketToken?: string;
|
|
152
149
|
/**
|
|
153
|
-
*
|
|
154
|
-
* ルートのunderNameに統合(2022-12-19~)
|
|
155
|
-
*/
|
|
156
|
-
/**
|
|
157
|
-
* 券種
|
|
150
|
+
* オファー
|
|
158
151
|
*/
|
|
159
152
|
ticketType: ITicketType;
|
|
160
153
|
/**
|
|
@@ -204,7 +197,7 @@ export interface IProvider {
|
|
|
204
197
|
* For offers of tickets, restaurant reservations, flights, or rental cars, use Offer.
|
|
205
198
|
* {@link https://schema.org/Reservation}
|
|
206
199
|
*/
|
|
207
|
-
export interface IReservation<T extends Omit<IPriceSpecification, 'project'>>
|
|
200
|
+
export interface IReservation<T extends Omit<IPriceSpecification, 'project'>> {
|
|
208
201
|
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
209
202
|
/**
|
|
210
203
|
* type of object
|