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

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
@@ -119,7 +119,7 @@ export type ITripAsReservationFor = BusReservationFactory.IReservationFor;
119
119
  export type IEventAsReservationFor = Omit<EventReservationFactory.IReservationFor, 'superEvent'> & {
120
120
  superEvent: ISuperEvent;
121
121
  };
122
- export type IReservedTicket = Pick<ITicket, 'typeOf' | 'ticketedSeat' | 'dateIssued' | 'ticketNumber' | 'ticketToken' | 'coaTicketInfo' | 'coaReserveAmount'> & {
122
+ export type IReservedTicket = Pick<ITicket, 'typeOf' | 'ticketedSeat' | 'ticketNumber' | 'dateIssued' | 'ticketToken' | 'coaTicketInfo' | 'coaReserveAmount'> & {
123
123
  ticketType: ITicketType;
124
124
  };
125
125
  export type IBusReservation = Pick<BusReservationFactory.IReservation, 'additionalProperty' | 'additionalTicketText' | 'id' | 'issuedThrough' | 'programMembershipUsed' | 'reservationNumber' | 'typeOf'> & {
@@ -1,23 +1,42 @@
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
9
  /**
10
10
  * 予約対象イベント
11
11
  */
12
- reservationFor: IReservationFor;
12
+ reservationFor: IMovieTicketReservationFor;
13
13
  /**
14
14
  * 予約チケット
15
15
  */
16
16
  reservedTicket: {
17
+ /**
18
+ * チケット識別子
19
+ * 指定された場合、予約のチケット識別子と関連付けされます
20
+ */
21
+ ticketNumber?: string;
17
22
  ticketedSeat: ISeat;
18
23
  };
19
24
  }
20
- export interface IAttributes extends IPaymentCard {
25
+ /**
26
+ * 決済カード
27
+ */
28
+ export interface IMovieTicketPaymentCard extends Pick<IPaymentCard, 'accessCode' | 'amount' | 'serviceOutput' | 'serviceType' | 'identifier' | 'typeOf'> {
29
+ /**
30
+ * 決済方法区分コード
31
+ */
32
+ typeOf: string;
33
+ category: {
34
+ /**
35
+ * 前売券(カード)の種類
36
+ * 全国券,劇場券など
37
+ */
38
+ codeValue: string;
39
+ };
21
40
  /**
22
41
  * 購入管理番号
23
42
  */
@@ -33,21 +52,5 @@ export interface IAttributes extends IPaymentCard {
33
52
  /**
34
53
  * 利用対象予約
35
54
  */
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
- };
55
+ serviceOutput: IMovieTicketServiceOutput;
53
56
  }
@@ -19,7 +19,6 @@ import { IPropertyValue } from './propertyValue';
19
19
  import { ReservationStatusType } from './reservationStatusType';
20
20
  import { ReservationType } from './reservationType';
21
21
  import { SortType } from './sortType';
22
- import { IThing } from './thing';
23
22
  export type TicketType = 'Ticket';
24
23
  export interface ITicketType {
25
24
  additionalProperty?: IPropertyValue<string>[];
@@ -134,15 +133,10 @@ export interface ITicket {
134
133
  */
135
134
  ticketedSeat?: ISeat;
136
135
  /**
137
- * Where the ticket can be downloaded.
138
- */
139
- /**
140
- * The number or id of the ticket.
136
+ * チケット識別子
137
+ * The unique identifier for the ticket.
141
138
  */
142
139
  ticketNumber?: string;
143
- /**
144
- * Where the ticket can be printed.
145
- */
146
140
  /**
147
141
  * If the barcode image is hosted on your site, the value of the field is URL of the image, or a barcode or QR URI,
148
142
  * such as "barcode128:AB34" (ISO-15417 barcodes), "qrCode:AB34" (QR codes),
@@ -150,11 +144,7 @@ export interface ITicket {
150
144
  */
151
145
  ticketToken?: string;
152
146
  /**
153
- * The person or organization the reservation is for.
154
- * ルートのunderNameに統合(2022-12-19~)
155
- */
156
- /**
157
- * 券種
147
+ * オファー
158
148
  */
159
149
  ticketType: ITicketType;
160
150
  /**
@@ -204,7 +194,7 @@ export interface IProvider {
204
194
  * For offers of tickets, restaurant reservations, flights, or rental cars, use Offer.
205
195
  * {@link https://schema.org/Reservation}
206
196
  */
207
- export interface IReservation<T extends Omit<IPriceSpecification, 'project'>> extends Pick<IThing, 'identifier' | 'name'> {
197
+ export interface IReservation<T extends Omit<IPriceSpecification, 'project'>> {
208
198
  project: Pick<IProject, 'id' | 'typeOf'>;
209
199
  /**
210
200
  * type of object
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.3",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",