@chevre/factory 4.274.0-alpha.2 → 4.274.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/authorize/offer/product.d.ts +1 -2
- package/lib/action/authorize/offer/seatReservation.d.ts +4 -4
- package/lib/event/screeningEvent.d.ts +0 -19
- package/lib/offer.d.ts +0 -1
- package/lib/order.d.ts +16 -6
- package/lib/product.d.ts +23 -2
- package/lib/project.d.ts +4 -0
- package/lib/reservation/event.d.ts +1 -1
- package/lib/unitPriceOffer.d.ts +1 -15
- package/package.json +1 -1
|
@@ -2,12 +2,11 @@ import * as ActionFactory from '../../../action';
|
|
|
2
2
|
import { ActionType } from '../../../actionType';
|
|
3
3
|
import * as RegisterServiceTransactionFactory from '../../../assetTransaction/registerService';
|
|
4
4
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
5
|
-
import { ITicketPriceSpecification } from '../../../event/screeningEvent';
|
|
6
5
|
import { IOffer } from '../../../offer';
|
|
7
6
|
import * as OrderFactory from '../../../order';
|
|
8
7
|
import { IPermit } from '../../../permit';
|
|
9
8
|
import { PriceCurrency } from '../../../priceCurrency';
|
|
10
|
-
import { IProduct, IServiceOutput as IProductServiceOutput } from '../../../product';
|
|
9
|
+
import { IProduct, IServiceOutput as IProductServiceOutput, ITicketPriceSpecification } from '../../../product';
|
|
11
10
|
import { ISeller } from '../../../seller';
|
|
12
11
|
import { TransactionType } from '../../../transactionType';
|
|
13
12
|
import * as AuthorizeActionFactory from '../../authorize';
|
|
@@ -8,9 +8,9 @@ import * as ScreeningEventFactory from '../../../event/screeningEvent';
|
|
|
8
8
|
import * as OfferFactory from '../../../offer';
|
|
9
9
|
import * as OrderFactory from '../../../order';
|
|
10
10
|
import { PriceCurrency } from '../../../priceCurrency';
|
|
11
|
+
import { ITicketOffer, ITicketPriceSpecification } from '../../../product';
|
|
11
12
|
import * as WebAPIFactory from '../../../service/webAPI';
|
|
12
13
|
import { TransactionType } from '../../../transactionType';
|
|
13
|
-
import { ITicketPriceSpecification } from '../../../unitPriceOffer';
|
|
14
14
|
import * as AuthorizeActionFactory from '../../authorize';
|
|
15
15
|
import * as COAReservationOfferFactory from './seatReservation/coa';
|
|
16
16
|
export declare type IAgent = ActionFactory.IParticipantAsSeller;
|
|
@@ -50,7 +50,7 @@ export interface IResult<T extends WebAPIFactory.Identifier> {
|
|
|
50
50
|
responseBody: IResponseBody<T>;
|
|
51
51
|
acceptedOffers?: IResultAcceptedOffer[];
|
|
52
52
|
}
|
|
53
|
-
export declare type IAcceptedOfferPriceSpecification =
|
|
53
|
+
export declare type IAcceptedOfferPriceSpecification = ITicketPriceSpecification & {
|
|
54
54
|
/**
|
|
55
55
|
* 複合価格仕様に、指定された適用決済カード情報を付加できるように
|
|
56
56
|
*/
|
|
@@ -59,7 +59,7 @@ export declare type IAcceptedOfferPriceSpecification = ScreeningEventFactory.ITi
|
|
|
59
59
|
/**
|
|
60
60
|
* 受け入れられたチケットオファー
|
|
61
61
|
*/
|
|
62
|
-
export declare type IAcceptedOffer4chevre = Pick<
|
|
62
|
+
export declare type IAcceptedOffer4chevre = Pick<ITicketOffer, 'id' | 'identifier' | 'typeOf' | 'priceCurrency' | 'itemOffered' | 'addOn' | 'additionalProperty'> & Pick<ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail, 'id' | 'addOn' | 'additionalProperty' | 'paymentMethod'> & {
|
|
63
63
|
itemOffered?: ReserveTransactionFactory.IAcceptedTicketOfferItemOffered;
|
|
64
64
|
priceSpecification: IAcceptedOfferPriceSpecification;
|
|
65
65
|
};
|
|
@@ -77,7 +77,7 @@ export declare type IAcceptedOffer4COA = Pick<ReserveTransactionFactory.IAccepte
|
|
|
77
77
|
* COAイベントでは、priceSpecificationで価格を表現しきれないので、numberとしてのpriceが必要
|
|
78
78
|
*/
|
|
79
79
|
price: number;
|
|
80
|
-
priceSpecification?: ITicketPriceSpecification;
|
|
80
|
+
priceSpecification?: OrderFactory.ITicketPriceSpecification;
|
|
81
81
|
};
|
|
82
82
|
export declare type IAcceptedOfferWithoutDetail4COA = COAReservationOfferFactory.IOffer;
|
|
83
83
|
export interface IObjectWithoutDetail4COA {
|
|
@@ -8,10 +8,6 @@ import { OfferType } from '../offerType';
|
|
|
8
8
|
import { OrganizationType } from '../organizationType';
|
|
9
9
|
import { PlaceType } from '../placeType';
|
|
10
10
|
import { PriceCurrency } from '../priceCurrency';
|
|
11
|
-
import { IPriceSpecification as ICategoryCodeChargeSpecification } from '../priceSpecification/categoryCodeChargeSpecification';
|
|
12
|
-
import { IPriceSpecification as ICompoundPriceSpecification } from '../priceSpecification/compoundPriceSpecification';
|
|
13
|
-
import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from '../priceSpecification/movieTicketTypeChargeSpecification';
|
|
14
|
-
import { IPriceSpecification as IUnitPriceSpecification } from '../priceSpecification/unitPriceSpecification';
|
|
15
11
|
import { IServiceType as IProductServiceType } from '../product';
|
|
16
12
|
import { IProject } from '../project';
|
|
17
13
|
import { IQuantitativeValue } from '../quantitativeValue';
|
|
@@ -20,7 +16,6 @@ import { ReservationType } from '../reservationType';
|
|
|
20
16
|
import * as WebAPIFactory from '../service/webAPI';
|
|
21
17
|
import { IThing } from '../thing';
|
|
22
18
|
import { UnitCode } from '../unitCode';
|
|
23
|
-
import * as UnitPriceOfferFactory from '../unitPriceOffer';
|
|
24
19
|
/**
|
|
25
20
|
* 予約集計
|
|
26
21
|
*/
|
|
@@ -149,20 +144,6 @@ export interface IOffer {
|
|
|
149
144
|
seller: ISeller;
|
|
150
145
|
}
|
|
151
146
|
export declare type IOffer4COA = Pick<IOffer, 'project' | 'typeOf' | 'offeredThrough' | 'priceCurrency'>;
|
|
152
|
-
export declare type ITicketUnitPriceComponent = Omit<IUnitPriceSpecification, 'project'>;
|
|
153
|
-
export declare type ITicketPriceComponent = Omit<ICategoryCodeChargeSpecification, 'project'> | Omit<IMovieTicketTypeChargeSpecification, 'project'> | ITicketUnitPriceComponent;
|
|
154
|
-
/**
|
|
155
|
-
* 興行オファーの価格仕様
|
|
156
|
-
*/
|
|
157
|
-
export declare type ITicketPriceSpecification = Omit<ICompoundPriceSpecification<ITicketPriceComponent>, 'project'>;
|
|
158
|
-
/**
|
|
159
|
-
* 興行オファー
|
|
160
|
-
*/
|
|
161
|
-
export interface ITicketOffer extends Omit<OfferFactory.IOffer, 'priceSpecification'> {
|
|
162
|
-
identifier: string;
|
|
163
|
-
priceSpecification: ITicketPriceSpecification;
|
|
164
|
-
itemOffered?: UnitPriceOfferFactory.IItemOffered;
|
|
165
|
-
}
|
|
166
147
|
export interface ICOAInfo {
|
|
167
148
|
theaterCode: string;
|
|
168
149
|
dateJouei: string;
|
package/lib/offer.d.ts
CHANGED
package/lib/order.d.ts
CHANGED
|
@@ -15,6 +15,9 @@ import { IPerson, IProfile } from './person';
|
|
|
15
15
|
import { PersonType } from './personType';
|
|
16
16
|
import { PlaceType } from './placeType';
|
|
17
17
|
import { PriceCurrency } from './priceCurrency';
|
|
18
|
+
import { IPriceSpecification as ICategoryCodeChargeSpecification } from './priceSpecification/categoryCodeChargeSpecification';
|
|
19
|
+
import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
|
|
20
|
+
import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from './priceSpecification/movieTicketTypeChargeSpecification';
|
|
18
21
|
import { IProduct, ProductType } from './product';
|
|
19
22
|
import { IPropertyValue } from './propertyValue';
|
|
20
23
|
import { IProgramMembershipUsedSearchConditions, ITicket, ITicketType } from './reservation';
|
|
@@ -22,7 +25,7 @@ import * as EventReservationFactory from './reservation/event';
|
|
|
22
25
|
import { ReservationType } from './reservationType';
|
|
23
26
|
import { SortType } from './sortType';
|
|
24
27
|
import { IThing } from './thing';
|
|
25
|
-
import {
|
|
28
|
+
import { IUnitPriceOfferPriceSpecification } from './unitPriceOffer';
|
|
26
29
|
export interface IProject {
|
|
27
30
|
typeOf: OrganizationType.Project;
|
|
28
31
|
id: string;
|
|
@@ -130,7 +133,18 @@ export interface IMoneyTransfer {
|
|
|
130
133
|
* 注文アイテム
|
|
131
134
|
*/
|
|
132
135
|
export declare type IItemOffered = IMoneyTransfer | IReservation | IPermit;
|
|
133
|
-
export declare type IOfferOptimized4acceptedOffer = Pick<IOffer, '
|
|
136
|
+
export declare type IOfferOptimized4acceptedOffer = Pick<IOffer, 'typeOf' | 'id' | 'itemOffered' | 'offeredThrough' | 'priceCurrency'>;
|
|
137
|
+
export declare type ICategoryChargePriceComponent = Omit<ICategoryCodeChargeSpecification, 'project'>;
|
|
138
|
+
export declare type IMovieTicketTypeChargePriceComponent = Omit<IMovieTicketTypeChargeSpecification, 'project'>;
|
|
139
|
+
export declare type IUnitPriceComponent = Pick<IUnitPriceOfferPriceSpecification, 'accounting' | 'appliesToMovieTicket' | 'appliesToAddOn' | 'name' | 'price' | 'priceCurrency' | 'referenceQuantity' | 'typeOf' | 'valueAddedTaxIncluded'>;
|
|
140
|
+
/**
|
|
141
|
+
* 承認時に提供される価格仕様要素
|
|
142
|
+
*/
|
|
143
|
+
export declare type ITicketPriceComponent = ICategoryChargePriceComponent | IMovieTicketTypeChargePriceComponent | IUnitPriceComponent;
|
|
144
|
+
/**
|
|
145
|
+
* 承認時に提供される価格仕様
|
|
146
|
+
*/
|
|
147
|
+
export declare type ITicketPriceSpecification = Omit<ICompoundPriceSpecification<ITicketPriceComponent>, 'project'>;
|
|
134
148
|
/**
|
|
135
149
|
* 受け入れオファー
|
|
136
150
|
*/
|
|
@@ -143,10 +157,6 @@ export interface IAcceptedOffer<T extends IItemOffered> extends IOfferOptimized4
|
|
|
143
157
|
* 販売者
|
|
144
158
|
*/
|
|
145
159
|
seller: {
|
|
146
|
-
project: {
|
|
147
|
-
id: string;
|
|
148
|
-
typeOf: OrganizationType.Project;
|
|
149
|
-
};
|
|
150
160
|
typeOf: OrganizationType.Corporation;
|
|
151
161
|
name?: string | IMultilingualString;
|
|
152
162
|
};
|
package/lib/product.d.ts
CHANGED
|
@@ -3,11 +3,16 @@ import { ICategoryCode } from './categoryCode';
|
|
|
3
3
|
import { IMonetaryAmount } from './monetaryAmount';
|
|
4
4
|
import { IOffer as IBaseOffer } from './offer';
|
|
5
5
|
import { IPermit } from './permit';
|
|
6
|
+
import { IPriceSpecification as ICategoryCodeChargeSpecification } from './priceSpecification/categoryCodeChargeSpecification';
|
|
7
|
+
import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
|
|
8
|
+
import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from './priceSpecification/movieTicketTypeChargeSpecification';
|
|
9
|
+
import { IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
|
|
6
10
|
import { IProject } from './project';
|
|
7
11
|
import { IPropertyValue } from './propertyValue';
|
|
8
12
|
import { IQuantitativeValue } from './quantitativeValue';
|
|
9
13
|
import { SortType } from './sortType';
|
|
10
14
|
import { IThing } from './thing';
|
|
15
|
+
import * as UnitPriceOfferFactory from './unitPriceOffer';
|
|
11
16
|
/**
|
|
12
17
|
* プロダクトタイプ
|
|
13
18
|
*/
|
|
@@ -40,7 +45,7 @@ export declare type IServiceOutput = Pick<IPermit, 'typeOf' | 'amount'> & {
|
|
|
40
45
|
};
|
|
41
46
|
export declare type IPointAwardAmount = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'>;
|
|
42
47
|
/**
|
|
43
|
-
*
|
|
48
|
+
* ポイント特典
|
|
44
49
|
*/
|
|
45
50
|
export interface IPointAward {
|
|
46
51
|
typeOf: ActionType.MoneyTransfer;
|
|
@@ -92,7 +97,7 @@ export declare type IOffer = Pick<IBaseOffer, 'project' | 'typeOf' | 'priceCurre
|
|
|
92
97
|
};
|
|
93
98
|
};
|
|
94
99
|
/**
|
|
95
|
-
*
|
|
100
|
+
* プロダクト
|
|
96
101
|
* {@link https://schema.org/Product}
|
|
97
102
|
*/
|
|
98
103
|
export interface IProduct extends Pick<IThing, 'name' | 'description'> {
|
|
@@ -238,3 +243,19 @@ export interface IServiceOutputSearchConditions {
|
|
|
238
243
|
$eq?: string;
|
|
239
244
|
};
|
|
240
245
|
}
|
|
246
|
+
export declare type ICategoryCodeChargePriceComponent = Omit<ICategoryCodeChargeSpecification, 'project'>;
|
|
247
|
+
export declare type IMovieTicketTypeChargePriceComponent = Omit<IMovieTicketTypeChargeSpecification, 'project'>;
|
|
248
|
+
export declare type ITicketUnitPriceComponent = Omit<IUnitPriceSpecification, 'project'>;
|
|
249
|
+
export declare type ITicketPriceComponent = ICategoryCodeChargePriceComponent | IMovieTicketTypeChargePriceComponent | ITicketUnitPriceComponent;
|
|
250
|
+
/**
|
|
251
|
+
* プロダクトオファーの価格仕様
|
|
252
|
+
*/
|
|
253
|
+
export declare type ITicketPriceSpecification = Omit<ICompoundPriceSpecification<ITicketPriceComponent>, 'project'>;
|
|
254
|
+
/**
|
|
255
|
+
* プロダクトオファー
|
|
256
|
+
*/
|
|
257
|
+
export interface ITicketOffer extends Omit<IBaseOffer, 'priceSpecification' | 'project'> {
|
|
258
|
+
identifier: string;
|
|
259
|
+
priceSpecification: ITicketPriceSpecification;
|
|
260
|
+
itemOffered?: UnitPriceOfferFactory.IItemOffered;
|
|
261
|
+
}
|
package/lib/project.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import { ICOAInfo, ILocation as IEventLocation, IName as IEventName, ISuperEvent
|
|
|
2
2
|
import { EventStatusType } from '../eventStatusType';
|
|
3
3
|
import { EventType } from '../eventType';
|
|
4
4
|
import { IMultilingualString } from '../multilingualString';
|
|
5
|
+
import { ITicketPriceComponent, ITicketPriceSpecification } from '../order';
|
|
5
6
|
import { IProject } from '../project';
|
|
6
7
|
import * as ReservationFactory from '../reservation';
|
|
7
8
|
import { ReservationStatusType } from '../reservationStatusType';
|
|
8
9
|
import { ReservationType } from '../reservationType';
|
|
9
|
-
import { ITicketPriceComponent, ITicketPriceSpecification } from '../unitPriceOffer';
|
|
10
10
|
export declare type IOptimizedWorkPerformed = Omit<IWorkPerformed, 'name'> & {
|
|
11
11
|
name?: string | IMultilingualString;
|
|
12
12
|
};
|
package/lib/unitPriceOffer.d.ts
CHANGED
|
@@ -2,9 +2,6 @@ import { ActionType } from './actionType';
|
|
|
2
2
|
import { IAddOn, IOffer } from './offer';
|
|
3
3
|
import { OfferType } from './offerType';
|
|
4
4
|
import { IAmount as IPermitAmount, IDepositAmount, IPaymentAmount } from './permit';
|
|
5
|
-
import { IPriceSpecification as ICategoryCodeChargeSpecification } from './priceSpecification/categoryCodeChargeSpecification';
|
|
6
|
-
import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
|
|
7
|
-
import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from './priceSpecification/movieTicketTypeChargeSpecification';
|
|
8
5
|
import { IAppliesToMovieTicket, IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
|
|
9
6
|
import { IPointAwardAmount, IProduct, ProductType } from './product';
|
|
10
7
|
import { SortType } from './sortType';
|
|
@@ -56,7 +53,7 @@ export declare type IUnitPriceOfferPriceSpecification = Omit<IUnitPriceSpecifica
|
|
|
56
53
|
};
|
|
57
54
|
export interface IAddOnItemOffered extends Pick<IProduct, 'typeOf' | 'id' | 'name'> {
|
|
58
55
|
}
|
|
59
|
-
export interface IAddOn4unitPriceOffer extends Pick<IAddOn, '
|
|
56
|
+
export interface IAddOn4unitPriceOffer extends Pick<IAddOn, 'typeOf' | 'priceCurrency'> {
|
|
60
57
|
itemOffered: IAddOnItemOffered;
|
|
61
58
|
}
|
|
62
59
|
/**
|
|
@@ -205,14 +202,3 @@ export interface ISearchConditions {
|
|
|
205
202
|
};
|
|
206
203
|
};
|
|
207
204
|
}
|
|
208
|
-
export declare type ICategoryChargePriceComponent = Omit<ICategoryCodeChargeSpecification, 'project'>;
|
|
209
|
-
export declare type IMovieTicketTypeChargePriceComponent = Omit<IMovieTicketTypeChargeSpecification, 'project'>;
|
|
210
|
-
export declare type IUnitPriceComponent = Pick<IUnitPriceOfferPriceSpecification, 'accounting' | 'appliesToMovieTicket' | 'appliesToAddOn' | 'name' | 'price' | 'priceCurrency' | 'referenceQuantity' | 'typeOf' | 'valueAddedTaxIncluded'>;
|
|
211
|
-
/**
|
|
212
|
-
* 承認時に提供される価格仕様要素
|
|
213
|
-
*/
|
|
214
|
-
export declare type ITicketPriceComponent = ICategoryChargePriceComponent | IMovieTicketTypeChargePriceComponent | IUnitPriceComponent;
|
|
215
|
-
/**
|
|
216
|
-
* 承認時に提供される価格仕様
|
|
217
|
-
*/
|
|
218
|
-
export declare type ITicketPriceSpecification = Omit<ICompoundPriceSpecification<ITicketPriceComponent>, 'project'>;
|