@chevre/factory 6.0.0-alpha.3 → 6.0.0-alpha.4

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.
@@ -9,7 +9,7 @@ import { PermitType } from '../permit';
9
9
  import { ProductType } from '../product';
10
10
  import { IPropertyValue } from '../propertyValue';
11
11
  import * as ReservationFactory from '../reservation';
12
- import { IIssuedThrough as IEventReservationIssuedThrough, IReservation as IEventReservation, IReservationFor as IEventReservationReservationFor, ISubReservation as ISubReservation4eventReservation } from '../reservation/event';
12
+ import { IIssuedThrough as IEventReservationIssuedThrough, IPrice as IReservationPrice, IReservation as IEventReservation, IReservationFor as IEventReservationReservationFor, ISubReservation as ISubReservation4eventReservation } from '../reservation/event';
13
13
  import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
14
14
  import { ReservationStatusType } from '../reservationStatusType';
15
15
  import { ReservationType } from '../reservationType';
@@ -298,7 +298,9 @@ export interface IObjectWithoutDetail {
298
298
  };
299
299
  }
300
300
  export type IReservationFor = IEventReservationReservationFor;
301
- export type IEventReservationAsSubReservation = Pick<IEventReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'numSeats' | 'price' | 'priceCurrency' | 'programMembershipUsed' | 'reservedTicket' | 'subReservation' | 'typeOf'>;
301
+ export type IEventReservationAsSubReservation = Pick<IEventReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'numSeats' | 'priceCurrency' | 'programMembershipUsed' | 'reservedTicket' | 'subReservation' | 'typeOf'> & {
302
+ price?: IReservationPrice;
303
+ };
302
304
  export type IObjectSubReservation = IEventReservationAsSubReservation;
303
305
  export type IIssuedThrough = IEventReservationIssuedThrough;
304
306
  export interface IObject extends Pick<IReservationPackage, 'broker' | 'provider' | 'reservationStatus' | 'underName' | 'typeOf'> {
package/lib/invoice.d.ts CHANGED
@@ -6,7 +6,6 @@ import { IAccounting } from './priceSpecification';
6
6
  import { IPriceSpecification as ICategoryCodeChargeSpecification } from './priceSpecification/categoryCodeChargeSpecification';
7
7
  import { IAppliesToMovieTicket, IPriceSpecification as IMovieTicketTypeChargeSpecification } from './priceSpecification/movieTicketTypeChargeSpecification';
8
8
  import { IAppliesToAddOn as IUnitPriceSpecAppliesToAddOn, IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
9
- import { IPriceSpecification } from './reservation/event';
10
9
  import { ISeller } from './seller';
11
10
  import { PaymentServiceType } from './service/paymentService';
12
11
  export type IBroker = Pick<ISeller, 'id' | 'typeOf'> | IPerson;
@@ -22,7 +21,7 @@ export type IMinimizedUnitPriceSpecification = Pick<IUnitPriceSpecification, 'ty
22
21
  appliesToAddOn?: IAppliesToAddOn[];
23
22
  };
24
23
  export type IPriceComponentSpecification = IMinimizedCategoryCodeChargeSpecification | IMinimizedMovieTicketTypeChargeSpecification | IMinimizedUnitPriceSpecification;
25
- export type IReservationPriceSpecification = Pick<IPriceSpecification, 'typeOf'> & {
24
+ export type IReservationPriceSpecification = Pick<OrderFactory.ITicketPriceSpecification, 'typeOf'> & {
26
25
  priceComponent: IPriceComponentSpecification[];
27
26
  };
28
27
  export interface IReservation {
@@ -39,7 +39,8 @@ export type ICategoryChargePriceComponent = Pick<ICategoryCodeChargeSpecificatio
39
39
  export type IMovieTicketTypeChargePriceComponent = Pick<IMovieTicketTypeChargeSpecification, 'accounting' | 'appliesToMovieTicket' | 'appliesToVideoFormat' | 'name' | 'price' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'>;
40
40
  export type IUnitPriceComponent = Pick<IUnitPriceOfferPriceSpecification, 'accounting' | 'appliesToMovieTicket' | 'appliesToAddOn' | 'name' | 'price' | 'priceCurrency' | 'referenceQuantity' | 'typeOf' | 'valueAddedTaxIncluded'>;
41
41
  export type ITicketPriceComponent = ICategoryChargePriceComponent | IMovieTicketTypeChargePriceComponent | IUnitPriceComponent;
42
- export type IPriceSpecification = Pick<ICompoundPriceSpecification<ITicketPriceComponent>, 'priceComponent' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'>;
42
+ export type IPrice = Pick<ICompoundPriceSpecification<ITicketPriceComponent>, 'priceComponent' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'>;
43
+ export type IPriceSpecification = Pick<ICompoundPriceSpecification<ITicketPriceComponent>, 'priceComponent' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'> | never;
43
44
  export interface ISubReservation {
44
45
  reservedTicket: {
45
46
  typeOf: ReservationFactory.TicketType;
@@ -206,7 +206,7 @@ export interface IIssuedThrough {
206
206
  * プロダクト管理をしている場合のみ
207
207
  */
208
208
  id?: string;
209
- availableChannel: IServiceChannel;
209
+ availableChannel?: IServiceChannel;
210
210
  }
211
211
  export type IAvailableReservationStatusType = ReservationStatusType.ReservationCancelled | ReservationStatusType.ReservationConfirmed | ReservationStatusType.ReservationPending;
212
212
  export interface IProvider {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "6.0.0-alpha.3",
3
+ "version": "6.0.0-alpha.4",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",