@chevre/factory 4.375.0-alpha.4 → 4.375.0-alpha.6
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/eventService.d.ts +23 -14
- package/lib/action/authorize/offer/moneyTransfer.d.ts +0 -1
- package/lib/action/authorize/offer/product.d.ts +0 -1
- package/lib/action/authorize/paymentMethod/any.d.ts +1 -1
- package/lib/transaction/placeOrder.d.ts +1 -1
- package/package.json +1 -1
|
@@ -5,8 +5,10 @@ import * as ReserveTransactionFactory from '../../../assetTransaction/reserve';
|
|
|
5
5
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
6
6
|
import * as ScreeningEventFactory from '../../../event/screeningEvent';
|
|
7
7
|
import * as OfferFactory from '../../../offer';
|
|
8
|
+
import { OfferType } from '../../../offerType';
|
|
8
9
|
import * as OrderFactory from '../../../order';
|
|
9
10
|
import { PriceCurrency } from '../../../priceCurrency';
|
|
11
|
+
import { IPriceSpecification as IUnitPriceSpecification } from '../../../priceSpecification/unitPriceSpecification';
|
|
10
12
|
import { ICategoryCodeChargePriceComponent, IMovieTicketTypeChargePriceComponent, ITicketOffer, ITicketPriceSpecification, ITicketUnitPriceComponent } from '../../../product';
|
|
11
13
|
import * as WebAPIFactory from '../../../service/webAPI';
|
|
12
14
|
import { TransactionType } from '../../../transactionType';
|
|
@@ -48,10 +50,25 @@ export type IInstrumentAsAssetTransaction<T extends WebAPIFactory.Identifier> =
|
|
|
48
50
|
export type IRequestBody<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? COA.factory.reserve.IUpdTmpReserveSeatArgs : T extends WebAPIFactory.Identifier.Chevre ? {} : never;
|
|
49
51
|
export type IResponseBody<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? COA.factory.reserve.IUpdTmpReserveSeatResult : T extends WebAPIFactory.Identifier.Chevre ? {} : never;
|
|
50
52
|
export type IResultAcceptedOffer = OrderFactory.IAcceptedOffer<OrderFactory.IReservation>;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
export interface IAcceptedOfferInResult extends Pick<ITicketOffer, 'acceptedPaymentMethod' | 'id' | 'typeOf'> {
|
|
54
|
+
typeOf: OfferType.Offer;
|
|
55
|
+
id: string;
|
|
56
|
+
includesObject: {
|
|
57
|
+
amountOfThisGood: number;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* 取引確定時の検証に必要な情報のみ保管する
|
|
61
|
+
*/
|
|
62
|
+
priceSpecification?: Pick<IUnitPriceSpecification, 'eligibleQuantity' | 'eligibleTransactionVolume'>;
|
|
63
|
+
}
|
|
64
|
+
export interface IResultAsAggregateOffer {
|
|
65
|
+
typeOf?: OfferType.AggregateOffer;
|
|
66
|
+
/**
|
|
67
|
+
* オファーIDごとの集計
|
|
68
|
+
*/
|
|
69
|
+
offers?: IAcceptedOfferInResult[];
|
|
70
|
+
}
|
|
71
|
+
export interface IResult extends IResultAsAggregateOffer {
|
|
55
72
|
/**
|
|
56
73
|
* 決済金額
|
|
57
74
|
* オファー未指定の場合、金額非確定なので、この属性は存在しない
|
|
@@ -63,13 +80,6 @@ export interface IResult {
|
|
|
63
80
|
* currencyを口座タイプとして扱う
|
|
64
81
|
*/
|
|
65
82
|
amount: OrderFactory.ITotalPaymentDue[];
|
|
66
|
-
/**
|
|
67
|
-
* 外部サービスへのリクエスト
|
|
68
|
-
*/
|
|
69
|
-
/**
|
|
70
|
-
* 外部サービスからのレスポンス
|
|
71
|
-
*/
|
|
72
|
-
acceptedOffers?: IResultAcceptedOffer[];
|
|
73
83
|
}
|
|
74
84
|
export type ExcludedFieldsFromTicketPriceComponent = 'accounting' | 'id' | 'name' | 'priceCurrency' | 'valueAddedTaxIncluded';
|
|
75
85
|
export type ITicketPriceComponent = Omit<ICategoryCodeChargePriceComponent, ExcludedFieldsFromTicketPriceComponent> | Omit<IMovieTicketTypeChargePriceComponent, ExcludedFieldsFromTicketPriceComponent> | Omit<ITicketUnitPriceComponent, ExcludedFieldsFromTicketPriceComponent>;
|
|
@@ -86,8 +96,7 @@ export type IAcceptedOfferPriceSpecification = Pick<ITicketPriceSpecification, '
|
|
|
86
96
|
/**
|
|
87
97
|
* 受け入れられたチケットオファー
|
|
88
98
|
*/
|
|
89
|
-
export type IAcceptedOffer4chevre = Pick<ITicketOffer, 'acceptedPaymentMethod' |
|
|
90
|
-
'id' | 'identifier' | 'typeOf' | 'priceCurrency' | 'itemOffered' | 'additionalProperty'> & Pick<ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail, 'id' | 'addOn' | 'additionalProperty'> & {
|
|
99
|
+
export type IAcceptedOffer4chevre = Pick<ITicketOffer, 'acceptedPaymentMethod' | 'id' | 'identifier' | 'typeOf' | 'priceCurrency' | 'itemOffered' | 'additionalProperty'> & Pick<ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail, 'id' | 'addOn' | 'additionalProperty'> & {
|
|
91
100
|
addOn?: ReserveTransactionFactory.IAcceptedAddOn[];
|
|
92
101
|
itemOffered?: ReserveTransactionFactory.IAcceptedTicketOfferItemOffered;
|
|
93
102
|
priceSpecification: IAcceptedOfferPriceSpecification;
|
|
@@ -137,7 +146,7 @@ export interface IObjectWithoutDetail4COA {
|
|
|
137
146
|
id: string;
|
|
138
147
|
};
|
|
139
148
|
}
|
|
140
|
-
export type IAcceptedOffer<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IAcceptedOffer4COA : T extends WebAPIFactory.Identifier.Chevre ? IAcceptedOffer4chevre : never;
|
|
149
|
+
export type IAcceptedOffer<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IAcceptedOffer4COA : T extends WebAPIFactory.Identifier.Chevre ? Pick<IAcceptedOffer4chevre, 'acceptedPaymentMethod' | 'id' | 'priceSpecification' | 'typeOf'> : never;
|
|
141
150
|
export type IAcceptedOfferWithoutDetail<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IAcceptedOfferWithoutDetail4COA : T extends WebAPIFactory.Identifier.Chevre ? IAcceptedOfferWithoutDetail4chevre : never;
|
|
142
151
|
export type IObjectWithoutDetail<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IObjectWithoutDetail4COA : T extends WebAPIFactory.Identifier.Chevre ? IObjectWithoutDetail4chevre : never;
|
|
143
152
|
export type ICOAPendingTransaction = Pick<COA.factory.reserve.IDelTmpReserveArgs, 'theaterCode' | 'dateJouei' | 'titleCode' | 'titleBranchNum' | 'timeBegin' | 'tmpReserveNum'> & {
|
|
@@ -18,7 +18,6 @@ export interface IResult {
|
|
|
18
18
|
priceCurrency: PriceCurrency;
|
|
19
19
|
requestBody?: IRequestBody;
|
|
20
20
|
responseBody: IResponseBody;
|
|
21
|
-
acceptedOffers: IResultAcceptedOffer[];
|
|
22
21
|
}
|
|
23
22
|
export import IItemOffered = OrderFactory.IMoneyTransfer;
|
|
24
23
|
export interface IAcceptedOffer extends Omit<IOffer, 'addOn' | 'availability' | 'availableAtOrFrom'> {
|
|
@@ -43,7 +43,6 @@ export type IResultAcceptedOffer = OrderFactory.IAcceptedOffer<OrderFactory.IPer
|
|
|
43
43
|
export interface IResult {
|
|
44
44
|
price: number;
|
|
45
45
|
priceCurrency: PriceCurrency;
|
|
46
|
-
acceptedOffers: IResultAcceptedOffer;
|
|
47
46
|
requestBody: RegisterServiceTransactionFactory.IStartParamsWithoutDetail;
|
|
48
47
|
responseBody: RegisterServiceTransactionFactory.ITransaction;
|
|
49
48
|
}
|
|
@@ -135,7 +135,7 @@ export interface IResultAsInvoice {
|
|
|
135
135
|
}
|
|
136
136
|
export type IResult = IResultAsInvoice | IResultAsInvoice[];
|
|
137
137
|
export interface IPurpose {
|
|
138
|
-
typeOf: TransactionType;
|
|
138
|
+
typeOf: TransactionType.PlaceOrder;
|
|
139
139
|
id: string;
|
|
140
140
|
}
|
|
141
141
|
export declare enum ServiceIdentifier {
|
|
@@ -156,7 +156,7 @@ export interface IConfirmParams {
|
|
|
156
156
|
*/
|
|
157
157
|
result?: IResultParams;
|
|
158
158
|
}
|
|
159
|
-
export type IOrderAsResult = Pick<OrderFactory.IOrder, 'confirmationNumber' | '
|
|
159
|
+
export type IOrderAsResult = Pick<OrderFactory.IOrder, 'confirmationNumber' | 'orderedItem' | 'identifier' | 'orderDate' | 'orderNumber' | 'orderStatus' | 'price' | 'priceCurrency' | 'typeOf' | 'url'>;
|
|
160
160
|
export interface IAuthorizeActionAsResult {
|
|
161
161
|
id: string;
|
|
162
162
|
}
|