@chevre/factory 6.1.0 → 6.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.
@@ -105,7 +105,7 @@ export interface IEventReservatonAsItemOfferedServiceOutput {
105
105
  * /^[0-9a-zA-Z]{8,16}$/
106
106
  */
107
107
  identifier?: string;
108
- issuedBy?: ReservationFactory.IUnderName;
108
+ issuedBy?: Pick<ReservationFactory.ITicketIssuedBy, 'name' | 'typeOf'>;
109
109
  typeOf: ReservationFactory.TicketType;
110
110
  /**
111
111
  * 座席指定
@@ -310,7 +310,17 @@ export type IEventReservationAsSubReservation = Pick<IEventReservation, 'additio
310
310
  };
311
311
  export type IObjectSubReservation = IEventReservationAsSubReservation;
312
312
  export type IIssuedThrough = IEventReservationIssuedThrough;
313
- export interface IObject extends Pick<IReservationPackage, 'broker' | 'provider' | 'reservationStatus' | 'underName' | 'typeOf'> {
313
+ /**
314
+ * 予約取引に保管される予約者情報
315
+ */
316
+ export type IUnderName = Pick<ReservationFactory.IUnderName, 'email' | 'givenName' | 'familyName' | 'id' | 'identifier' | 'name' | 'telephone' | 'typeOf'> & {
317
+ address?: string;
318
+ age?: string;
319
+ gender?: string;
320
+ url?: string;
321
+ };
322
+ export interface IObject extends Pick<IReservationPackage, 'broker' | 'provider' | 'reservationStatus' | 'typeOf'> {
323
+ underName?: IUnderName;
314
324
  acceptedOffer?: IAcceptedOffer4object[];
315
325
  issuedThrough?: IIssuedThrough;
316
326
  reservationFor?: IReservationFor;
@@ -1,5 +1,4 @@
1
1
  import { CreativeWorkType } from './creativeWorkType';
2
- import { IMultilingualString } from './multilingualString';
3
2
  import { OrganizationType } from './organizationType';
4
3
  import { PersonType } from './personType';
5
4
  import * as SeatFactory from './place/seat';
@@ -23,22 +22,22 @@ export type IUnderNameType = CreativeWorkType.WebApplication | PersonType.Person
23
22
  */
24
23
  export interface IUnderName {
25
24
  typeOf: IUnderNameType;
25
+ id?: string;
26
26
  name: string;
27
- additionalName?: string;
28
- address?: string;
29
- age?: string;
30
- description?: string | IMultilingualString;
31
- email?: string;
32
27
  familyName?: string;
33
- gender?: string;
34
28
  givenName?: string;
35
- id?: string;
29
+ email?: string;
30
+ telephone?: string;
36
31
  /**
37
32
  * システム利用識別子のみ継承
38
33
  */
39
34
  identifier?: IPropertyValue<string>[];
40
- telephone?: string;
41
- url?: string;
35
+ additionalName?: never;
36
+ address?: never;
37
+ age?: never;
38
+ description?: never;
39
+ gender?: never;
40
+ url?: never;
42
41
  }
43
42
  /**
44
43
  * seat interface
@@ -1,13 +1,12 @@
1
1
  import { IInvoice } from '../invoice';
2
2
  import { IMultilingualString } from '../multilingualString';
3
+ import { OrganizationType } from '../organizationType';
3
4
  import { IPermit } from '../permit';
4
5
  import { IPotentialInformAction as IPotentialInformActionTemplate } from '../potentialAction';
5
6
  import { IAvailableChannel as IProductAvailableChannel, IServiceType } from '../product';
6
7
  import { IProject } from '../project';
7
8
  import { IPropertyValue } from '../propertyValue';
8
- import { ISeller } from '../seller';
9
9
  import { SortType } from '../sortType';
10
- import { IThing } from '../thing';
11
10
  export declare enum PaymentServiceType {
12
11
  CreditCard = "CreditCard",
13
12
  FaceToFace = "FaceToFace",
@@ -25,7 +24,7 @@ export interface IPaymentUrlSettings {
25
24
  use3DS?: boolean;
26
25
  }
27
26
  export type ICallbackType3ds = 'GET' | 'POST';
28
- export interface IProviderCredentials {
27
+ export interface IProviderCredentialsCreditCard {
29
28
  /**
30
29
  * ショップID
31
30
  */
@@ -46,7 +45,14 @@ export interface IProviderCredentials {
46
45
  * 3Dセキュアコールバック方法
47
46
  */
48
47
  callbackType3ds?: ICallbackType3ds;
48
+ /**
49
+ * 外部決済URL設定
50
+ */
49
51
  paymentUrl?: IPaymentUrlSettings;
52
+ kgygishCd?: never;
53
+ stCd?: never;
54
+ }
55
+ export interface IProviderCredentialsMovieTicket {
50
56
  /**
51
57
  * 決済カード興行会社コード
52
58
  */
@@ -55,8 +61,19 @@ export interface IProviderCredentials {
55
61
  * 決済カードサイトコード
56
62
  */
57
63
  stCd?: string;
64
+ shopId?: never;
65
+ shopPass?: never;
66
+ tokenizationCode?: never;
67
+ returnUrls3ds?: never;
68
+ callbackType3ds?: never;
69
+ paymentUrl?: never;
58
70
  }
59
- export interface IProvider extends Pick<ISeller, 'typeOf'> {
71
+ export type IProviderCredentials = IProviderCredentialsCreditCard | IProviderCredentialsMovieTicket;
72
+ /**
73
+ * 決済方法提供者
74
+ */
75
+ export interface IProvider {
76
+ typeOf: OrganizationType.Corporation;
60
77
  /**
61
78
  * 販売者ID
62
79
  */
@@ -66,16 +83,26 @@ export interface IProvider extends Pick<ISeller, 'typeOf'> {
66
83
  */
67
84
  credentials?: IProviderCredentials;
68
85
  }
69
- export type IAvailableChannel = Pick<IProductAvailableChannel, 'typeOf'> & {
86
+ export interface IAvailableChannelCreditCard {
87
+ typeOf: IProductAvailableChannel['typeOf'];
70
88
  /**
71
89
  * add paymentServiceChannel ID(2025-02-21~)
72
90
  */
73
- id?: string;
91
+ id: string;
92
+ credentials?: never;
93
+ totalPaymentDue?: never;
94
+ }
95
+ export interface IAvailableChannelMovieTicket {
96
+ typeOf: IProductAvailableChannel['typeOf'];
97
+ /**
98
+ * add paymentServiceChannel ID(2025-02-21~)
99
+ */
100
+ id: string;
74
101
  credentials?: never;
75
102
  totalPaymentDue?: {
76
103
  maxValue?: number;
77
104
  };
78
- };
105
+ }
79
106
  /**
80
107
  * CreditCardIF決済サービスのカード属性
81
108
  * ポイントカード情報など
@@ -112,15 +139,9 @@ export type IPermitAsServiceOutput = Pick<IPermit, 'typeOf'> & {
112
139
  export type IServiceOutput = (IInvoiceAsServiceOutput | IPermitAsServiceOutput)[];
113
140
  export type IPotentialInformAction = Pick<IPotentialInformActionTemplate, 'id' | 'typeOf'>;
114
141
  export type IPotentialAction = IPotentialInformAction;
115
- /**
116
- * 決済サービス
117
- * {@link https://schema.org/Service}
118
- */
119
- export interface IService extends Pick<IThing, 'name' | 'description'> {
142
+ export interface ICommonAttributes {
120
143
  project: Pick<IProject, 'id' | 'typeOf'>;
121
- typeOf: PaymentServiceType;
122
144
  id?: string;
123
- availableChannel?: IAvailableChannel;
124
145
  description?: Pick<IMultilingualString, 'en' | 'ja'>;
125
146
  name?: Pick<IMultilingualString, 'en' | 'ja'>;
126
147
  /**
@@ -139,8 +160,22 @@ export interface IService extends Pick<IThing, 'name' | 'description'> {
139
160
  */
140
161
  serviceType: IServiceType;
141
162
  additionalProperty?: IPropertyValue<string>[];
142
- potentialAction?: IPotentialAction[];
143
163
  }
164
+ export type ICreditCardPaymentMethod = ICommonAttributes & {
165
+ typeOf: PaymentServiceType.CreditCard;
166
+ availableChannel?: IAvailableChannelCreditCard;
167
+ potentialAction?: IPotentialAction[];
168
+ };
169
+ export type IMovieTicketPaymentMethod = ICommonAttributes & {
170
+ typeOf: PaymentServiceType.MovieTicket;
171
+ availableChannel?: IAvailableChannelMovieTicket;
172
+ potentialAction?: IPotentialAction[];
173
+ };
174
+ /**
175
+ * 決済サービス
176
+ * {@link https://schema.org/PaymentService}
177
+ */
178
+ export type IService = ICreditCardPaymentMethod | IMovieTicketPaymentMethod;
144
179
  export interface ISortOrder {
145
180
  productID?: SortType;
146
181
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "6.1.0",
3
+ "version": "6.2.0-alpha.1",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",