@chevre/factory 4.377.0-alpha.4 → 4.377.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.
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import type * as COA from '@motionpicture/coa-service';
|
|
2
2
|
import * as ActionFactory from '../../../action';
|
|
3
3
|
import { ActionType } from '../../../actionType';
|
|
4
|
-
import
|
|
4
|
+
import { IAcceptedTicketOfferItemOffered, IAcceptedTicketOfferWithoutDetail as IAcceptedOfferWithoutDetail4chevre, IObjectWithoutDetail as IObjectWithoutDetail4chevre } from '../../../assetTransaction/reserve';
|
|
5
5
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
6
6
|
import { IEvent } from '../../../event/screeningEvent';
|
|
7
|
-
import
|
|
7
|
+
import { IOffer } from '../../../offer';
|
|
8
8
|
import { OfferType } from '../../../offerType';
|
|
9
9
|
import * as OrderFactory from '../../../order';
|
|
10
10
|
import { PriceCurrency } from '../../../priceCurrency';
|
|
11
11
|
import { IPriceSpecification as IUnitPriceSpecification } from '../../../priceSpecification/unitPriceSpecification';
|
|
12
|
-
import {
|
|
12
|
+
import { ITicketOffer } from '../../../product';
|
|
13
13
|
import * as WebAPIFactory from '../../../service/webAPI';
|
|
14
14
|
import { TransactionType } from '../../../transactionType';
|
|
15
15
|
import * as AuthorizeActionFactory from '../../authorize';
|
|
16
|
-
import
|
|
16
|
+
import { IAcceptedCOAOffer, ICOATicketInfo, ICOATicketInfoWithDetails } from './eventService/coa';
|
|
17
17
|
export type IAgent = ActionFactory.IParticipantAsSeller;
|
|
18
18
|
export type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
|
|
19
19
|
export declare enum ObjectType {
|
|
@@ -35,8 +35,8 @@ export type IInstrumentAsAssetTransaction<T extends WebAPIFactory.Identifier> =
|
|
|
35
35
|
*/
|
|
36
36
|
transactionNumber: string;
|
|
37
37
|
} : never;
|
|
38
|
-
export type IRequestBody<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? COA.factory.reserve.IUpdTmpReserveSeatArgs :
|
|
39
|
-
export type IResponseBody<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? COA.factory.reserve.IUpdTmpReserveSeatResult :
|
|
38
|
+
export type IRequestBody<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? COA.factory.reserve.IUpdTmpReserveSeatArgs : never;
|
|
39
|
+
export type IResponseBody<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? COA.factory.reserve.IUpdTmpReserveSeatResult : never;
|
|
40
40
|
export type IResultAcceptedOffer = OrderFactory.IAcceptedOffer<OrderFactory.IReservation>;
|
|
41
41
|
export interface IAcceptedOfferInResult extends Pick<ITicketOffer, 'acceptedPaymentMethod' | 'id' | 'typeOf'> {
|
|
42
42
|
typeOf: OfferType.Offer;
|
|
@@ -69,35 +69,17 @@ export interface IResult extends IResultAsAggregateOffer {
|
|
|
69
69
|
*/
|
|
70
70
|
amount: OrderFactory.ITotalPaymentDue[];
|
|
71
71
|
}
|
|
72
|
-
export type ExcludedFieldsFromTicketPriceComponent = 'accounting' | 'id' | 'name' | 'priceCurrency' | 'valueAddedTaxIncluded';
|
|
73
|
-
export type ITicketPriceComponent = Omit<ICategoryCodeChargePriceComponent, ExcludedFieldsFromTicketPriceComponent> | Omit<IMovieTicketTypeChargePriceComponent, ExcludedFieldsFromTicketPriceComponent> | Omit<ITicketUnitPriceComponent, ExcludedFieldsFromTicketPriceComponent>;
|
|
74
|
-
export type IAcceptedOfferPriceSpecification = Pick<ITicketPriceSpecification, 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'> & {
|
|
75
|
-
/**
|
|
76
|
-
* 承認アクションobjectに不要な属性を除外して再定義(2024-04-09~)
|
|
77
|
-
*/
|
|
78
|
-
priceComponent: ITicketPriceComponent[];
|
|
79
|
-
/**
|
|
80
|
-
* 複合価格仕様に、指定された適用決済カード情報を付加できるように
|
|
81
|
-
*/
|
|
82
|
-
appliesToMovieTicket?: ReserveTransactionFactory.IAcceptedAppliesToMovieTicket;
|
|
83
|
-
};
|
|
84
72
|
/**
|
|
85
73
|
* 受け入れられたチケットオファー
|
|
74
|
+
* optimize(2024-07-03~)
|
|
86
75
|
*/
|
|
87
|
-
export type IAcceptedOffer4chevre = Pick<
|
|
88
|
-
|
|
89
|
-
itemOffered?: ReserveTransactionFactory.IAcceptedTicketOfferItemOffered;
|
|
90
|
-
priceSpecification: IAcceptedOfferPriceSpecification;
|
|
91
|
-
};
|
|
92
|
-
export type IAcceptedOfferWithoutDetail4chevre = ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail;
|
|
93
|
-
export type IObjectWithoutDetail4chevre = ReserveTransactionFactory.IObjectWithoutDetail;
|
|
94
|
-
export import ICOATicketInfo = COAReservationOfferFactory.ICOATicketInfo;
|
|
95
|
-
export import ICOATicketInfoWithDetails = COAReservationOfferFactory.ICOATicketInfoWithDetails;
|
|
76
|
+
export type IAcceptedOffer4chevre = Pick<IAcceptedOfferWithoutDetail4chevre, 'id' | 'addOn' | 'additionalProperty' | 'priceSpecification' | 'itemOffered'>;
|
|
77
|
+
export { ICOATicketInfo, ICOATicketInfoWithDetails };
|
|
96
78
|
/**
|
|
97
79
|
* 受入COA興行オファー
|
|
98
80
|
*/
|
|
99
|
-
export type IAcceptedOffer4COA = Pick<
|
|
100
|
-
itemOffered:
|
|
81
|
+
export type IAcceptedOffer4COA = Pick<IAcceptedOfferWithoutDetail4chevre, 'id' | 'itemOffered' | 'additionalProperty'> & Pick<IOffer, 'typeOf' | 'id' | 'identifier' | 'name' | 'priceCurrency' | 'additionalProperty' | 'eligibleMonetaryAmount'> & {
|
|
82
|
+
itemOffered: IAcceptedTicketOfferItemOffered;
|
|
101
83
|
ticketInfo: ICOATicketInfoWithDetails;
|
|
102
84
|
/**
|
|
103
85
|
* COAイベントでは、priceSpecificationで価格を表現しきれないので、numberとしてのpriceが必要
|
|
@@ -120,12 +102,12 @@ export interface IAppliesToSurfrock {
|
|
|
120
102
|
export interface IPriceSpecification4COA {
|
|
121
103
|
appliesToSurfrock?: IAppliesToSurfrock;
|
|
122
104
|
}
|
|
123
|
-
export type IAcceptedOfferBeforeAuthorize4COA = Pick<
|
|
124
|
-
itemOffered:
|
|
105
|
+
export type IAcceptedOfferBeforeAuthorize4COA = Pick<IAcceptedOfferWithoutDetail4chevre, 'itemOffered' | 'additionalProperty'> & Pick<IOffer, 'name' | 'additionalProperty'> & {
|
|
106
|
+
itemOffered: IAcceptedTicketOfferItemOffered;
|
|
125
107
|
ticketInfo: Omit<ICOATicketInfoWithDetails, 'salePrice' | 'usePoint'>;
|
|
126
108
|
priceSpecification: IPriceSpecification4COA;
|
|
127
109
|
};
|
|
128
|
-
export type IAcceptedOfferWithoutDetail4COA =
|
|
110
|
+
export type IAcceptedOfferWithoutDetail4COA = IAcceptedCOAOffer & {
|
|
129
111
|
priceSpecification?: IPriceSpecification4COA;
|
|
130
112
|
};
|
|
131
113
|
export interface IObjectWithoutDetail4COA {
|
|
@@ -134,7 +116,6 @@ export interface IObjectWithoutDetail4COA {
|
|
|
134
116
|
id: string;
|
|
135
117
|
};
|
|
136
118
|
}
|
|
137
|
-
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;
|
|
138
119
|
export type IAcceptedOfferWithoutDetail<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IAcceptedOfferWithoutDetail4COA : T extends WebAPIFactory.Identifier.Chevre ? IAcceptedOfferWithoutDetail4chevre : never;
|
|
139
120
|
export type IObjectWithoutDetail<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IObjectWithoutDetail4COA : T extends WebAPIFactory.Identifier.Chevre ? IObjectWithoutDetail4chevre : never;
|
|
140
121
|
export type ICOAPendingTransaction = Pick<COA.factory.reserve.IDelTmpReserveArgs, 'theaterCode' | 'dateJouei' | 'titleCode' | 'titleBranchNum' | 'timeBegin' | 'tmpReserveNum'> & {
|