@chevre/factory 4.174.0 → 4.177.0-alpha.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/chevre.d.ts CHANGED
@@ -380,6 +380,7 @@ export declare namespace reservation {
380
380
  type ISearchConditions<T extends ReservationType> = T extends ReservationType.EventReservation ? EventReservationFactory.ISearchConditions : T extends ReservationType.ReservationPackage ? ReservationPackageFactory.ISearchConditions : ReservationPackageFactory.ISearchConditions;
381
381
  type ISortOrder<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ISortOrder : ReservationFactory.ISortOrder;
382
382
  type ISeat<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ISeat : ReservationFactory.ISeat;
383
+ type ISubReservation<T extends ReservationType> = T extends ReservationType.EventReservation ? EventReservationFactory.ISubReservation : T extends ReservationType.ReservationPackage ? ReservationPackageFactory.ISubReservation : any;
383
384
  type ITicket<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ITicket<IPriceSpecification<T>> : ReservationFactory.ITicket<IPriceSpecification<T>>;
384
385
  type IUnderName<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.IUnderName : ReservationFactory.IUnderName;
385
386
  type TicketType<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.TicketType : ReservationFactory.TicketType;
@@ -23,6 +23,10 @@ export interface IObjectWithoutDetail {
23
23
  fromLocation: TransactionFactory.ISimpleAccount;
24
24
  toLocation?: IAnonymousLocation;
25
25
  description?: string;
26
+ /**
27
+ * 利用可能金額確認をしない場合、force: true
28
+ */
29
+ force?: boolean;
26
30
  }
27
31
  /**
28
32
  * 取引対象物インターフェース
@@ -17,7 +17,7 @@ export interface IObject {
17
17
  */
18
18
  amount: number;
19
19
  /**
20
- * 入金先口座番号
20
+ * 入金先カード番号
21
21
  */
22
22
  toAccountNumber: string;
23
23
  /**
@@ -1,5 +1,6 @@
1
1
  import * as ActionFactory from '../../../action';
2
2
  import ActionType from '../../../actionType';
3
+ import * as RegisterServiceTransactionFactory from '../../../assetTransaction/registerService';
3
4
  import { IOffer } from '../../../offer';
4
5
  import * as OrderFactory from '../../../order';
5
6
  import PriceCurrency from '../../../priceCurrency';
@@ -10,6 +11,7 @@ import * as AuthorizeActionFactory from '../../authorize';
10
11
  export declare type IAgent = ActionFactory.IParticipant;
11
12
  export declare type IRecipient = ActionFactory.IParticipant;
12
13
  export declare type IService = IProduct;
14
+ export declare type IAcceptedOfferWithoutDetail = RegisterServiceTransactionFactory.IAcceptedOfferWithoutDetail;
13
15
  export interface IAcceptedOffer extends IOffer {
14
16
  /**
15
17
  * オファー対象アイテム
@@ -20,6 +22,7 @@ export interface IAcceptedOffer extends IOffer {
20
22
  */
21
23
  seller: ISeller;
22
24
  }
25
+ export declare type IObjectWithoutDetail = IAcceptedOfferWithoutDetail[];
23
26
  export declare type IObject = IAcceptedOffer[];
24
27
  export declare type IResultAcceptedOffer = OrderFactory.IAcceptedOffer<OrderFactory.IPermit>[];
25
28
  export interface IResult {
@@ -48,10 +48,10 @@ export interface IResult<T extends WebAPIFactory.Identifier> {
48
48
  responseBody: IResponseBody<T>;
49
49
  acceptedOffers?: IResultAcceptedOffer[];
50
50
  }
51
- export declare type IAcceptedOffer4chevre = ScreeningEventFactory.IAcceptedTicketOffer;
52
- export declare type IAcceptedOfferWithoutDetail4chevre = ScreeningEventFactory.IAcceptedTicketOfferWithoutDetail;
51
+ export declare type IAcceptedOffer4chevre = ReserveTransactionFactory.IAcceptedTicketOffer;
52
+ export declare type IAcceptedOfferWithoutDetail4chevre = ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail;
53
53
  export declare type IObjectWithoutDetail4chevre = ReserveTransactionFactory.IObjectWithoutDetail;
54
- export declare type IAcceptedOffer4COA = ScreeningEventFactory.IAcceptedTicketOfferWithoutDetail & OfferFactory.seatReservation.IOfferWithDetails;
54
+ export declare type IAcceptedOffer4COA = ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail & OfferFactory.seatReservation.IOfferWithDetails;
55
55
  export declare type IAcceptedOfferWithoutDetail4COA = OfferFactory.seatReservation.IOffer;
56
56
  export interface IObjectWithoutDetail4COA {
57
57
  acceptedOffer: IAcceptedOfferWithoutDetail4COA[];
@@ -4,7 +4,7 @@ import * as TransactionFactory from '../assetTransaction';
4
4
  import AssetTransactionType from '../assetTransactionType';
5
5
  import { IExtendId } from '../autoGenerated';
6
6
  import OfferType from '../offerType';
7
- import { IProduct } from '../product';
7
+ import { IProduct, IServiceOutput } from '../product';
8
8
  import { IInformParams } from '../project';
9
9
  export declare type IStartParamsWithoutDetail = TransactionFactory.IStartParams<AssetTransactionType.RegisterService, IAgent, undefined, IObjectWithoutDetail>;
10
10
  /**
@@ -41,12 +41,37 @@ export interface IResult {
41
41
  * エラーインターフェース
42
42
  */
43
43
  export declare type IError = any;
44
+ export interface IAcceptedPointAward {
45
+ purpose?: {
46
+ identifier?: string;
47
+ };
48
+ recipient?: any;
49
+ /**
50
+ * 特典付与先
51
+ */
52
+ toLocation?: {
53
+ /**
54
+ * カード番号
55
+ */
56
+ identifier?: string;
57
+ };
58
+ }
59
+ export interface IAcceptedItemOffered {
60
+ id?: string;
61
+ pointAward?: IAcceptedPointAward;
62
+ serviceOutput?: IServiceOutput;
63
+ }
64
+ export interface IAcceptedOfferWithoutDetail {
65
+ typeOf: OfferType.Offer;
66
+ id: string;
67
+ itemOffered: IAcceptedItemOffered;
68
+ }
44
69
  export interface IAcceptedOffer {
45
70
  typeOf: OfferType.Offer;
46
71
  id: string;
47
72
  itemOffered: IProduct;
48
73
  }
49
- export declare type IObjectWithoutDetail = IAcceptedOffer[];
74
+ export declare type IObjectWithoutDetail = IAcceptedOfferWithoutDetail[];
50
75
  export declare type IObject = IAcceptedOffer[];
51
76
  export interface IPotentialActions {
52
77
  moneyTransfer: IMoneyTransferActionAttributes[];
@@ -2,12 +2,15 @@ import * as ReserveActionFactory from '../action/reserve';
2
2
  import * as TransactionFactory from '../assetTransaction';
3
3
  import AssetTransactionType from '../assetTransactionType';
4
4
  import { IExtendId } from '../autoGenerated';
5
- import { IAcceptedTicketOfferWithoutDetail } from '../event/screeningEvent';
5
+ import { ITicketOffer } from '../event/screeningEvent';
6
+ import { IMovieTicket } from '../paymentMethod/paymentCard/movieTicket';
7
+ import { IPointAward } from '../product';
6
8
  import { IInformParams, IOnReservationStatusChanged } from '../project';
7
9
  import { IPropertyValue } from '../propertyValue';
8
10
  import * as ReservationFactory from '../reservation';
9
- import { IReservation as IEventReservation, IReservationFor as IEventReservationReservationFor } from '../reservation/event';
11
+ import { IReservation as IEventReservation, IReservationFor as IEventReservationReservationFor, ISubReservation as ISubReservation4eventReservation } from '../reservation/event';
10
12
  import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
13
+ import ReservationType from '../reservationType';
11
14
  export declare type IStartParamsWithoutDetail = TransactionFactory.IStartParams<AssetTransactionType.Reserve, IAgent, undefined, IObjectWithoutDetail>;
12
15
  /**
13
16
  * 取引開始パラメーターインターフェース
@@ -19,6 +22,103 @@ export interface IAgent {
19
22
  name: string;
20
23
  url?: string;
21
24
  }
25
+ export interface IAcceptedProgramMembershipUsedAsObject {
26
+ accessCode?: string;
27
+ identifier?: string;
28
+ }
29
+ /**
30
+ * トークン化された適用メンバーシップ
31
+ */
32
+ export declare type ITokenizedAcceptedProgramMembershipUsed = string;
33
+ /**
34
+ * 適用メンバーシップ
35
+ */
36
+ export declare type IAcceptedProgramMembershipUsed = IAcceptedProgramMembershipUsedAsObject | ITokenizedAcceptedProgramMembershipUsed;
37
+ export declare type IAcceptedSubReservation = ISubReservation4eventReservation;
38
+ export interface IAcceptedPointAward {
39
+ recipient?: any;
40
+ /**
41
+ * 特典付与先
42
+ */
43
+ toLocation?: {
44
+ /**
45
+ * カード番号
46
+ */
47
+ identifier?: string;
48
+ };
49
+ }
50
+ /**
51
+ * 受け入れられたオファーのアイテムインターフェース
52
+ */
53
+ export interface IAcceptedTicketOfferItemOffered {
54
+ pointAward?: IAcceptedPointAward;
55
+ serviceOutput?: {
56
+ typeOf: ReservationType.EventReservation;
57
+ /**
58
+ * 追加特性
59
+ */
60
+ additionalProperty?: IPropertyValue<string>[];
61
+ /**
62
+ * 予約追加テキスト
63
+ */
64
+ additionalTicketText?: string;
65
+ programMembershipUsed?: IAcceptedProgramMembershipUsed;
66
+ reservedTicket?: {
67
+ issuedBy?: ReservationFactory.IUnderName;
68
+ typeOf: ReservationFactory.TicketType;
69
+ /**
70
+ * 予約座席指定
71
+ * 指定席イベントの場合、座席を指定
72
+ * 自由席イベントの場合、あるいは、最大収容人数がないイベントの場合は、座席指定不要
73
+ */
74
+ ticketedSeat?: ReservationFactory.ISeat;
75
+ };
76
+ subReservation?: IAcceptedSubReservation[];
77
+ };
78
+ }
79
+ export interface IAcceptedTicketOfferItemOffered4object {
80
+ pointAward?: IPointAward;
81
+ serviceOutput: {
82
+ id: string;
83
+ };
84
+ }
85
+ export interface IAcceptedAddOn {
86
+ /**
87
+ * アドオンID
88
+ */
89
+ id?: string;
90
+ }
91
+ export declare type IAcceptedPaymentMethod = IMovieTicket;
92
+ /**
93
+ * 受け入れられたチケットオファー(詳細なし)
94
+ */
95
+ export interface IAcceptedTicketOfferWithoutDetail {
96
+ /**
97
+ * オファーID
98
+ */
99
+ id: string;
100
+ /**
101
+ * アイテム情報
102
+ * 予約の詳細指定など
103
+ */
104
+ itemOffered?: IAcceptedTicketOfferItemOffered;
105
+ /**
106
+ * 受け入れるアドオン
107
+ */
108
+ addOn?: IAcceptedAddOn[];
109
+ paymentMethod?: IAcceptedPaymentMethod;
110
+ additionalProperty?: IPropertyValue<string>[];
111
+ }
112
+ /**
113
+ * 受け入れられたチケットオファー
114
+ */
115
+ export declare type IAcceptedTicketOffer = IAcceptedTicketOfferWithoutDetail & ITicketOffer & {
116
+ itemOffered?: IAcceptedTicketOfferItemOffered;
117
+ };
118
+ export interface IAcceptedOffer4object {
119
+ id: string;
120
+ itemOffered: IAcceptedTicketOfferItemOffered4object;
121
+ }
22
122
  /**
23
123
  * 確定時予約インターフェース
24
124
  * 指定することで、予約属性を確定時に上書きすることができる
@@ -94,6 +194,7 @@ export interface ISubReservation extends IEventReservationWithAnyReservationFor
94
194
  * 取引対象物インターフェース
95
195
  */
96
196
  export interface IObject extends IReservationPackage {
197
+ acceptedOffer?: IAcceptedOffer4object[];
97
198
  reservationFor?: IReservationFor;
98
199
  subReservation?: ISubReservation[];
99
200
  onReservationStatusChanged?: IOnReservationStatusChanged;
@@ -5,14 +5,12 @@ import EventType from '../eventType';
5
5
  import IMultilingualString from '../multilingualString';
6
6
  import * as OfferFactory from '../offer';
7
7
  import OfferType from '../offerType';
8
- import { IMovieTicket } from '../paymentMethod/paymentCard/movieTicket';
9
8
  import { PlaceType } from '../placeType';
10
9
  import { IPriceSpecification as ICategoryCodeChargeSpecification } from '../priceSpecification/categoryCodeChargeSpecification';
11
10
  import { IPriceSpecification as ICompoundPriceSpecification } from '../priceSpecification/compoundPriceSpecification';
12
11
  import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from '../priceSpecification/movieTicketTypeChargeSpecification';
13
12
  import { IPriceSpecification as IUnitPriceSpecification } from '../priceSpecification/unitPriceSpecification';
14
13
  import { IProject } from '../project';
15
- import { IPropertyValue } from '../propertyValue';
16
14
  import { IQuantitativeValue } from '../quantitativeValue';
17
15
  import * as ReservationFactory from '../reservation';
18
16
  import ReservationType from '../reservationType';
@@ -73,7 +71,7 @@ export interface IAggregateEntranceGate {
73
71
  places: IPlaceWithAggregateOffer[];
74
72
  }
75
73
  export interface IServiceOutput {
76
- typeOf: ReservationType;
74
+ typeOf: ReservationType.EventReservation;
77
75
  reservedTicket?: {
78
76
  typeOf: ReservationFactory.TicketType;
79
77
  /**
@@ -143,88 +141,6 @@ export interface ITicketOffer extends OfferFactory.IOffer {
143
141
  priceSpecification: ITicketPriceSpecification;
144
142
  itemOffered?: OfferFactory.IItemOffered;
145
143
  }
146
- export interface IAcceptedAddOn {
147
- /**
148
- * アドオンID
149
- */
150
- id?: string;
151
- }
152
- export interface IAcceptedSubReservation {
153
- reservedTicket?: {
154
- typeOf: ReservationFactory.TicketType;
155
- /**
156
- * 予約座席指定
157
- */
158
- ticketedSeat?: ReservationFactory.ISeat;
159
- };
160
- }
161
- export interface IAcceptedProgramMembershipUsedAsObject {
162
- accessCode?: string;
163
- identifier?: string;
164
- }
165
- /**
166
- * トークン化された適用メンバーシップ
167
- */
168
- export declare type ITokenizedAcceptedProgramMembershipUsed = string;
169
- /**
170
- * 適用メンバーシップ
171
- */
172
- export declare type IAcceptedProgramMembershipUsed = IAcceptedProgramMembershipUsedAsObject | ITokenizedAcceptedProgramMembershipUsed;
173
- /**
174
- * 受け入れられたオファーのアイテムインターフェース
175
- */
176
- export interface IAcceptedTicketOfferItemOffered {
177
- serviceOutput?: {
178
- typeOf: ReservationType;
179
- /**
180
- * 追加特性
181
- */
182
- additionalProperty?: IPropertyValue<string>[];
183
- /**
184
- * 予約追加テキスト
185
- */
186
- additionalTicketText?: string;
187
- programMembershipUsed?: IAcceptedProgramMembershipUsed;
188
- reservedTicket?: {
189
- issuedBy?: ReservationFactory.IUnderName;
190
- typeOf: ReservationFactory.TicketType;
191
- /**
192
- * 予約座席指定
193
- * 指定席イベントの場合、座席を指定
194
- * 自由席イベントの場合、あるいは、最大収容人数がないイベントの場合は、座席指定不要
195
- */
196
- ticketedSeat?: ReservationFactory.ISeat;
197
- };
198
- subReservation?: IAcceptedSubReservation[];
199
- };
200
- }
201
- export declare type IAcceptedPaymentMethod = IMovieTicket;
202
- /**
203
- * 受け入れられたチケットオファー(詳細なし)
204
- */
205
- export interface IAcceptedTicketOfferWithoutDetail {
206
- /**
207
- * オファーID
208
- */
209
- id: string;
210
- /**
211
- * アイテム情報
212
- * 予約の詳細指定など
213
- */
214
- itemOffered?: IAcceptedTicketOfferItemOffered;
215
- /**
216
- * 受け入れるアドオン
217
- */
218
- addOn?: IAcceptedAddOn[];
219
- paymentMethod?: IAcceptedPaymentMethod;
220
- additionalProperty?: IPropertyValue<string>[];
221
- }
222
- /**
223
- * 受け入れられたチケットオファー
224
- */
225
- export declare type IAcceptedTicketOffer = IAcceptedTicketOfferWithoutDetail & ITicketOffer & {
226
- itemOffered?: IAcceptedTicketOfferItemOffered;
227
- };
228
144
  export interface ICOAInfo {
229
145
  theaterCode: string;
230
146
  dateJouei: string;
@@ -54,6 +54,14 @@ export interface ISeller extends IThing {
54
54
  id?: string;
55
55
  }
56
56
  export declare type IOfferedThrough = WebAPIFactory.IService<WebAPIFactory.Identifier>;
57
+ /**
58
+ * レート制限インターフェース
59
+ * どのスコープで何秒に1席までか
60
+ */
61
+ export interface IValidRateLimit {
62
+ scope: string;
63
+ unitInSeconds: number;
64
+ }
57
65
  /**
58
66
  * offer interface
59
67
  * An offer to transfer some rights to an item or to provide a service
@@ -168,7 +176,7 @@ export interface IOffer extends IThing {
168
176
  /**
169
177
  * レート制限
170
178
  */
171
- validRateLimit?: any;
179
+ validRateLimit?: IValidRateLimit;
172
180
  /**
173
181
  * A property-value pair representing an additional characteristics of the entitity,
174
182
  * e.g. a product feature or another characteristic for which there is no matching property in schema.org.
@@ -47,11 +47,11 @@ export interface IPointAward {
47
47
  */
48
48
  toLocation?: {
49
49
  /**
50
- * 口座種別
50
+ * Permit
51
51
  */
52
52
  typeOf?: string;
53
53
  /**
54
- * 口座番号
54
+ * カード番号
55
55
  */
56
56
  identifier?: string;
57
57
  };
@@ -32,15 +32,21 @@ export interface IReservationFor {
32
32
  }
33
33
  export declare type IPriceComponentSpecification = ICategoryCodeChargeSpecification | IMovieTicketTypeChargeSpecification | IUnitPriceSpecification;
34
34
  export declare type IPriceSpecification = ICompoundPriceSpecification<IPriceComponentSpecification>;
35
+ export interface ISubReservation {
36
+ reservedTicket: {
37
+ typeOf: ReservationFactory.TicketType;
38
+ ticketedSeat: ReservationFactory.ISeat;
39
+ };
40
+ }
35
41
  /**
36
42
  * イベント予約インターフェース
37
- * どんなタイプのイベントに対する予約か
38
43
  */
39
44
  export interface IReservation extends ReservationFactory.IReservation<IPriceSpecification> {
40
45
  id: string;
41
46
  reservationFor: IReservationFor;
42
47
  reservationNumber: string;
43
48
  reservedTicket: ReservationFactory.ITicket<IPriceSpecification>;
49
+ subReservation?: ISubReservation[];
44
50
  typeOf: ReservationType.EventReservation;
45
51
  }
46
52
  export interface IReservationForSearchConditions {
@@ -30,7 +30,7 @@ export interface ITicketType {
30
30
  priceSpecification?: IUnitPriceSpecification;
31
31
  project: IProject;
32
32
  typeOf: OfferType;
33
- validRateLimit?: any;
33
+ validRateLimit?: OfferFactory.IValidRateLimit;
34
34
  }
35
35
  export declare type IPriceSpecification = IGenericPriceSpecification<PriceSpecificationType>;
36
36
  export declare type ISeatingType = SeatFactory.ISeatingType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.174.0",
3
+ "version": "4.177.0-alpha.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",