@chevre/factory 8.2.0-alpha.0 → 8.2.0-alpha.1
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,5 +1,5 @@
|
|
|
1
1
|
import { IAction as IReturnOrderAction } from '../action/transfer/return/order';
|
|
2
|
-
import { IAcceptedOffer, IOrder } from '../order';
|
|
2
|
+
import { IAcceptedOffer, IOrder, ITicketPriceSpecification } from '../order';
|
|
3
3
|
import { OrderStatus } from '../orderStatus';
|
|
4
4
|
/**
|
|
5
5
|
* 返品通知
|
|
@@ -19,7 +19,12 @@ export type IProcessingOrder4inform = Pick<IOrder, 'project' | 'typeOf' | 'selle
|
|
|
19
19
|
* 配送中通知
|
|
20
20
|
*/
|
|
21
21
|
export type IInTransitOrder4inform = Pick<IOrder, 'project' | 'typeOf' | 'orderNumber'> & {
|
|
22
|
-
acceptedOffers: IAcceptedOffer
|
|
22
|
+
acceptedOffers: (Omit<IAcceptedOffer, 'priceSpecification'> & {
|
|
23
|
+
/**
|
|
24
|
+
* COA以外では注文ドキュメントにpriceSpecificationが存在しないのでIFを補完
|
|
25
|
+
*/
|
|
26
|
+
priceSpecification?: ITicketPriceSpecification;
|
|
27
|
+
})[];
|
|
23
28
|
id?: string;
|
|
24
29
|
orderStatus: OrderStatus.OrderInTransit;
|
|
25
30
|
};
|
package/lib/chevre/order.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ import { IReservation as IRawReservation, IReservedTicket as IRawReservedTicket
|
|
|
23
23
|
import { ReservationType } from './reservationType';
|
|
24
24
|
import { ISeller as IBaseSeller } from './seller';
|
|
25
25
|
import { IPaymentMethodAsServiceOutput, PaymentServiceType } from './service/paymentService';
|
|
26
|
+
import { IService, Identifier } from './service/webAPI';
|
|
26
27
|
import { SortType } from './sortType';
|
|
27
28
|
import { UnitCode } from './unitCode';
|
|
28
29
|
export { OrderType };
|
|
@@ -221,20 +222,40 @@ export type ITicketPriceComponent = ICategoryChargePriceComponent | IMovieTicket
|
|
|
221
222
|
*/
|
|
222
223
|
export type ITicketPriceSpecification = Pick<ICompoundPriceSpecification<ITicketPriceComponent>, 'priceComponent' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'>;
|
|
223
224
|
export type IOfferOptimized4acceptedOffer = Pick<IOffer, 'typeOf' | 'id' | 'itemOffered' | 'offeredThrough' | 'name'>;
|
|
224
|
-
|
|
225
|
-
* 受け入れオファー
|
|
226
|
-
*/
|
|
227
|
-
export interface IAcceptedOffer extends IOfferOptimized4acceptedOffer {
|
|
225
|
+
export interface ICOAAcceptedOffer extends IOfferOptimized4acceptedOffer {
|
|
228
226
|
/**
|
|
229
227
|
* オファー対象アイテム
|
|
230
228
|
*/
|
|
231
|
-
itemOffered:
|
|
229
|
+
itemOffered: ICOAEventReservation;
|
|
230
|
+
offeredThrough: Pick<IService<Identifier>, 'typeOf'> & {
|
|
231
|
+
identifier: Identifier.COA;
|
|
232
|
+
};
|
|
232
233
|
priceSpecification?: ITicketPriceSpecification;
|
|
233
234
|
/**
|
|
234
|
-
*
|
|
235
|
+
* 資産取引番号
|
|
236
|
+
* 2024-01-30~
|
|
235
237
|
*/
|
|
236
|
-
serialNumber
|
|
238
|
+
serialNumber: string;
|
|
237
239
|
}
|
|
240
|
+
export interface IOptimizedAcceptedOffer extends IOfferOptimized4acceptedOffer {
|
|
241
|
+
/**
|
|
242
|
+
* オファー対象アイテム
|
|
243
|
+
*/
|
|
244
|
+
itemOffered: IEventReservation;
|
|
245
|
+
offeredThrough: Pick<IService<Identifier>, 'typeOf'> & {
|
|
246
|
+
identifier: Identifier.Chevre;
|
|
247
|
+
};
|
|
248
|
+
priceSpecification?: ITicketPriceSpecification;
|
|
249
|
+
/**
|
|
250
|
+
* 資産取引番号
|
|
251
|
+
* 2024-01-30~
|
|
252
|
+
*/
|
|
253
|
+
serialNumber: string;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* 受け入れオファー
|
|
257
|
+
*/
|
|
258
|
+
export type IAcceptedOffer = ICOAAcceptedOffer | IOptimizedAcceptedOffer;
|
|
238
259
|
/**
|
|
239
260
|
* 販売者
|
|
240
261
|
*/
|