@chevre/factory 4.367.0-alpha.1 → 4.367.0-alpha.2

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,7 +1,7 @@
1
1
  import type * as surfrock from '@surfrock/sdk';
2
2
  import * as ActionFactory from '../../../action';
3
3
  import { OrganizationType } from '../../../organizationType';
4
- import { IMovieTicket as IMovieTicketPaymentCard, IServiceOutput as IMovieTicketServiceOutput } from '../../../paymentMethod/paymentCard/movieTicket';
4
+ import { IMovieTicketPaymentCard, IMovieTicketServiceOutput } from '../../../paymentMethod/paymentCard/movieTicket';
5
5
  import { TransactionType } from '../../../transactionType';
6
6
  import * as CheckActionFactory from '../../check';
7
7
  import * as PayActionFactory from '../../trade/pay';
@@ -7,7 +7,7 @@ import { AssetTransactionType } from '../../assetTransactionType';
7
7
  import { CreativeWorkType } from '../../creativeWorkType';
8
8
  import { IPaymentServiceOutput } from '../../invoice';
9
9
  import { ITotalPaymentDue, OrderType } from '../../order';
10
- import { IMovieTicket as IMovieTicketPaymentCard } from '../../paymentMethod/paymentCard/movieTicket';
10
+ import { IMovieTicketPaymentCard } from '../../paymentMethod/paymentCard/movieTicket';
11
11
  import { IPropertyValue } from '../../propertyValue';
12
12
  import { PaymentServiceType } from '../../service/paymentService';
13
13
  import { IAttributes as IInformActionAttributes } from '../interact/inform';
package/lib/index.d.ts CHANGED
@@ -340,7 +340,7 @@ export import organizationType = OrganizationType;
340
340
  export import ownershipInfo = OwnershipInfoFactory;
341
341
  export declare namespace paymentMethod {
342
342
  type ISearchConditions = any;
343
- type IPaymentMethod = CreditCardFactory.ICheckedCard | MovieTicketFactory.IMovieTicket;
343
+ type IPaymentMethod = CreditCardFactory.ICheckedCard | MovieTicketFactory.IMovieTicketPaymentCard;
344
344
  namespace paymentCard {
345
345
  export import IPaymentCard = PaymentCardFactory.IPaymentCard;
346
346
  export import creditCard = CreditCardFactory;
package/lib/order.d.ts CHANGED
@@ -122,11 +122,13 @@ export type IEventAsReservationFor = Omit<EventReservationFactory.IReservationFo
122
122
  export type IReservedTicket = Pick<ITicket, 'typeOf' | 'ticketedSeat' | 'dateIssued' | 'ticketNumber' | 'ticketToken' | 'coaTicketInfo' | 'coaReserveAmount'> & {
123
123
  ticketType: ITicketType;
124
124
  };
125
- export type IBusReservation = Pick<BusReservationFactory.IReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'issuedThrough' | 'programMembershipUsed' | 'reservationNumber' | 'typeOf'> & {
125
+ export type IBusReservation = Pick<BusReservationFactory.IReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'identifier' | // 追加(2024-04-15~)
126
+ 'issuedThrough' | 'programMembershipUsed' | 'reservationNumber' | 'typeOf'> & {
126
127
  reservationFor: ITripAsReservationFor;
127
128
  reservedTicket: IReservedTicket;
128
129
  };
129
- export type IEventReservation = Pick<EventReservationFactory.IReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'issuedThrough' | 'programMembershipUsed' | 'reservationNumber' | 'typeOf'> & {
130
+ export type IEventReservation = Pick<EventReservationFactory.IReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'identifier' | // 追加(2024-04-15~)
131
+ 'issuedThrough' | 'programMembershipUsed' | 'reservationNumber' | 'typeOf'> & {
130
132
  reservationFor: IEventAsReservationFor;
131
133
  reservedTicket: IReservedTicket;
132
134
  };
@@ -1,15 +1,19 @@
1
1
  import { EventType } from '../../eventType';
2
2
  import { ISeat } from '../../reservation';
3
3
  import { IPaymentCard } from '../paymentCard';
4
- export interface IReservationFor {
4
+ export interface IMovieTicketReservationFor {
5
5
  typeOf: EventType.ScreeningEvent;
6
6
  id: string;
7
7
  }
8
- export interface IServiceOutput {
8
+ export interface IMovieTicketServiceOutput {
9
+ /**
10
+ * 予約識別子
11
+ */
12
+ identifier?: string;
9
13
  /**
10
14
  * 予約対象イベント
11
15
  */
12
- reservationFor: IReservationFor;
16
+ reservationFor: IMovieTicketReservationFor;
13
17
  /**
14
18
  * 予約チケット
15
19
  */
@@ -17,7 +21,21 @@ export interface IServiceOutput {
17
21
  ticketedSeat: ISeat;
18
22
  };
19
23
  }
20
- export interface IAttributes extends IPaymentCard {
24
+ /**
25
+ * 決済カード
26
+ */
27
+ export interface IMovieTicketPaymentCard extends Pick<IPaymentCard, 'accessCode' | 'amount' | 'serviceOutput' | 'serviceType' | 'identifier' | 'typeOf'> {
28
+ /**
29
+ * 決済方法区分コード
30
+ */
31
+ typeOf: string;
32
+ category: {
33
+ /**
34
+ * 前売券(カード)の種類
35
+ * 全国券,劇場券など
36
+ */
37
+ codeValue: string;
38
+ };
21
39
  /**
22
40
  * 購入管理番号
23
41
  */
@@ -33,21 +51,5 @@ export interface IAttributes extends IPaymentCard {
33
51
  /**
34
52
  * 利用対象予約
35
53
  */
36
- serviceOutput: IServiceOutput;
37
- }
38
- /**
39
- * MovieTicket決済カード
40
- */
41
- export interface IMovieTicket extends IAttributes {
42
- /**
43
- * 決済方法区分コード
44
- */
45
- typeOf: string;
46
- category: {
47
- /**
48
- * 前売券(カード)の種類
49
- * 全国券,劇場券など
50
- */
51
- codeValue: string;
52
- };
54
+ serviceOutput: IMovieTicketServiceOutput;
53
55
  }
@@ -27,6 +27,10 @@ export interface IIssuedThrough extends ReservationFactory.IIssuedThrough {
27
27
  export interface IReservation extends ReservationFactory.IReservation<IPriceSpecification> {
28
28
  bookingTime: Date;
29
29
  id: string;
30
+ /**
31
+ * 予約識別子
32
+ */
33
+ identifier?: string;
30
34
  issuedThrough: IIssuedThrough;
31
35
  reservationFor: IReservationFor;
32
36
  reservationNumber: string;
@@ -51,6 +51,10 @@ export interface IIssuedThrough extends ReservationFactory.IIssuedThrough {
51
51
  export interface IReservation extends ReservationFactory.IReservation<IPriceSpecification> {
52
52
  bookingTime: Date;
53
53
  id: string;
54
+ /**
55
+ * 予約識別子
56
+ */
57
+ identifier?: string;
54
58
  issuedThrough: IIssuedThrough;
55
59
  reservationFor: IReservationFor;
56
60
  reservationNumber: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.367.0-alpha.1",
3
+ "version": "4.367.0-alpha.2",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",